1. 17 Dec, 2014 1 commit
    • Chih-Hung Hsieh's avatar
      Disable clang optimization that has segmentation fault. · c83d3a3b
      Chih-Hung Hsieh authored
      When compiling for aosp_fugu-userdebug, clang aborted in pass:
      
        Running pass 'Function Pass Manager' on module 'system/core/libmincrypt/p256_ec.c'.
        Running pass 'X86 DAG->DAG Instruction Selection' on function '@felem_square'
      
      BUG: 18790528
      Change-Id: I416c07cae4c1a9743655bc45bd33c10a5cc9b41f
      c83d3a3b
  2. 12 May, 2014 1 commit
  3. 07 May, 2014 1 commit
  4. 10 Oct, 2013 1 commit
    • Kenny Root's avatar
      Add support for ECDSA P-256 with SHA256 · db0850c3
      Kenny Root authored
      This adds a small EC library that is capable of verifying a signature of
      SHA256 with ECDSA on the NIST P-256 curve.
      
      Change-Id: I2a16639c92a77e8e4783c47ffbc56676de56eb59
      db0850c3
  5. 25 Sep, 2013 2 commits
    • Doug Zongker's avatar
      mincrypt: merge the two RSA verifiers · 0a862dcd
      Doug Zongker authored
      The e=3 and e=65537 implementations are nearly identical, refactor
      them down into one.
      
      (cherry picked from commit 8fdbf976)
      
      Change-Id: I9f858204d52a0ae880170d955bf8f29fed57ee94
      0a862dcd
    • Doug Zongker's avatar
      mincrypt: support SHA-256 hash algorithm · 8e5b63d0
      Doug Zongker authored
      - adds a library to compute the SHA-256 hash
      
      - updates the RSA verifier to take an argument specifying either SHA-1
        or SHA-256
      
      - updates DumpPublicKey to with new "key" version numbers for
        specifying SHA-256
      
      - adds new argument to adb auth code to maintain existing behavior
      
      (cherry picked from commit 515e1639)
      
      Change-Id: Ib35643b3d864742e817ac6e725499b451e45afcf
      8e5b63d0
  6. 11 Apr, 2013 1 commit
  7. 10 Apr, 2013 1 commit
    • Doug Zongker's avatar
      mincrypt: support SHA-256 hash algorithm · 515e1639
      Doug Zongker authored
      - adds a library to compute the SHA-256 hash
      
      - updates the RSA verifier to take an argument specifying either SHA-1
        or SHA-256
      
      - updates DumpPublicKey to with new "key" version numbers for
        specifying SHA-256
      
      - adds new argument to adb auth code to maintain existing behavior
      
      Change-Id: I5b1406cf57c2b8993f6032eda3e29139f7740839
      515e1639
  8. 20 Sep, 2012 1 commit
    • Doug Zongker's avatar
      remove unneeded import · ede5cf65
      Doug Zongker authored
      DumpPublicKey doesn't need a base64 encoder for anything; remove the
      import to avoid deprecation warnings.
      
      Change-Id: I7e01b9d77bb66bb99cb3357c886cc4e2e63de6ae
      ede5cf65
  9. 25 Jul, 2012 1 commit
    • Doug Zongker's avatar
      support e=65537 for libmincrypt, DumpPublicKey · 35d9ad5a
      Doug Zongker authored
      The output produced by DumpPublicKey now has a version tag on each
      line (ie, each key).  The existing keys are retroactively dubbed
      "version 1", and we add a version 2 for 2048-bit e=65537 keys.
      
      Change-Id: I204ec615c8f2346670220a1aeb99269e4abd5f81
      35d9ad5a
  10. 29 Jan, 2010 1 commit
    • Doug Zongker's avatar
      make DumpPublicKeys write 32-bit values as unsigned · 5e12d739
      Doug Zongker authored
      Write the 32-bit chunks of N and RR as unsigned, so we get:
      
        {64,0xc926ad21,{1795090719,2141396315,950055447,2581568430,4268923165,...
      
      instead of:
      
        {64,0xc926ad21,{1795090719,2141396315,950055447,-1713398866,-26044131,...
      
      Change-Id: I575224fd7f7c34e06a1b6ae976eaa0bef41d2942
      5e12d739
  11. 13 Nov, 2009 1 commit
  12. 21 Aug, 2009 1 commit
  13. 17 Aug, 2009 1 commit
    • Doug Zongker's avatar
      add optimized SHA1 algorithm · a6de77de
      Doug Zongker authored
      This optimized implementation of the SHA1 algorithm is about 28%
      faster than the old one (on sapphire hardware) but assumes
      little-endianness.  Add it, but continue using the old implementation
      on big-endian hardware.
      a6de77de
  14. 25 Mar, 2009 2 commits
  15. 20 Mar, 2009 1 commit
  16. 04 Mar, 2009 2 commits
  17. 20 Jan, 2009 1 commit
  18. 21 Oct, 2008 1 commit