summaryrefslogtreecommitdiffstats
path: root/libmincrypt
Commit message (Collapse)AuthorAgeFilesLines
* Disable clang optimization that has segmentation fault.Chih-Hung Hsieh2014-12-171-0/+2
| | | | | | | | | | 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
* Remove declaration of unused static variableBernhard Rosenkraenzer2014-05-121-2/+0
| | | | | | | | The declaration is useless and triggers a warning with clang 3.5 (in code that's built with -Werror) Change-Id: I8fc42178df264509dcce6e1f1ba318bf849307e3 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
* libmincrypt: suppress warning messagesMark Salyzyn2014-05-073-6/+17
| | | | | | | - deal with implict declaration issue - deal with some -Wunused issues Change-Id: I253f1412a696c4811ade70a931fb1c01b31c62a5
* Add support for ECDSA P-256 with SHA256Kenny Root2013-10-099-13/+2233
| | | | | | | 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
* mincrypt: merge the two RSA verifiersDoug Zongker2013-09-256-522/+1118
| | | | | | | | | The e=3 and e=65537 implementations are nearly identical, refactor them down into one. (cherry picked from commit 8fdbf97652b76b19b4faff522ddcf4a9da543a86) Change-Id: I9f858204d52a0ae880170d955bf8f29fed57ee94
* mincrypt: support SHA-256 hash algorithmDoug Zongker2013-09-257-220/+379
| | | | | | | | | | | | | | | | - 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 515e1639ef0ab5e3149fafeffce826cf654d616f) Change-Id: Ib35643b3d864742e817ac6e725499b451e45afcf
* remove unneeded importDoug Zongker2012-09-201-1/+0
| | | | | | | DumpPublicKey doesn't need a base64 encoder for anything; remove the import to avoid deprecation warnings. Change-Id: I7e01b9d77bb66bb99cb3357c886cc4e2e63de6ae
* support e=65537 for libmincrypt, DumpPublicKeyDoug Zongker2012-07-255-176/+451
| | | | | | | | 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
* make DumpPublicKeys write 32-bit values as unsignedDoug Zongker2010-01-291-2/+2
| | | | | | | | | | | | 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
* only use faster SHA-1 code on machines with good libcDoug Zongker2009-08-211-6/+8
| | | | | Macs don't have byteswap.h or endian.h. Change conditionals to only use the faster SHA-1 code on little-endian machines with byteswap.h.
* add optimized SHA1 algorithmDoug Zongker2009-08-171-14/+177
| | | | | | | 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.
* Automated import from //branches/master/...@140824,140824Dianne Hackborn2009-03-241-0/+23
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-036-0/+510
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-036-510/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-0/+7
|
* Initial ContributionThe Android Open Source Project2008-10-216-0/+503