aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed sanity check bug where (plen <= alen) in ccm_mode is incorrect. Plen ↵Constanza Heath2016-12-161-4/+2
| | | | | | and alen are independent. Bug caused decryptions to incorrectly fail. Signed-off-by: Constanza Heath <[email protected]>
* ecc_dh: Fix discrepancy of ecc_make_key definition and declarationFlavio Santes2016-11-211-4/+2
| | | | | | | | | | ecc_make_key declaration has random size of NUM_ECC_DIGITS * 2 but definition has (and use) only NUM_ECC_DIGITS. See: https://gerrit.zephyrproject.org/r/#/c/1982 Change-Id: I696d1ecfca439545ac4a7995500bfb7cb8ed2db5 Signed-off-by: Flavio Santes <[email protected]>
* tinycrypt/hmac: Array compared to NULL has no effectFlavio Santes2016-11-181-5/+3
| | | | | | | | | | | | This commit fixes the issue reported by Coverity/Zephyr: an array compared against NULL is always false. Coverity-CID: 143687 Coverity-CID: 143737 Coverity-CID: 143740 Change-Id: If6234b4b3d169a4023b7adaa545be79f48ac3dea Signed-off-by: Flavio Santes <[email protected]>
* tinycrypt/sha256: Array compared to NULL has no effectFlavio Santes2016-11-181-3/+1
| | | | | | | | | | | This commit fixes the issue reported by Coverity/Zephyr: an array compared against NULL is always false. Coverity-CID: 143715 Coverity-CID: 143730 Change-Id: Ia502736f605774b71c1a41a850b84663c78fc7d0 Signed-off-by: Flavio Santes <[email protected]>
* Fix bug in CTR PRNG reseed function to correctly use the seed materialChris Morrison2016-10-151-1/+1
|
* Makefile updates for MinGWFlorin Iucha2016-04-271-19/+9
|
* Adding ECC_DH, ECC_DSA, ECC_UTILS, and CMAC test cases. Adjusting ↵Constanza Heath2016-04-1825-169/+170
| | | | | | namespacing to clarify when TC_ is for TinyCrypt vs Test Case. Signed-off-by: Constanza Heath <[email protected]>
* Minor typographical fixes to ctr_prng.h commentsChris Morrison2016-02-261-2/+2
|
* fixing usage of additional input when generating ctr prng outputChris Morrison2016-02-191-1/+1
|
* Adding support for additional input when reseeding/generating ctr prngs. ↵Chris Morrison2016-02-192-33/+246
| | | | Also added documentation
* fixing key setup during ctr_prng_initChris Morrison2016-02-191-1/+2
|
* initial commit of ctr_prngChris Morrison2016-02-193-0/+260
|
* Updating TinyCrypt v2 primitives to add ECC, CCM, and CMAC.Constanza Heath2016-02-1636-1290/+3919
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Fixing Makefile tabs and test's make cleanConstanza Heath2015-12-111-8/+1
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Updating version and modifying MakefilesConstanza Heath2015-12-111-0/+9
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Remove /bin/rm for Windows compatibilityConstanza Heath2015-12-111-2/+0
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Fix whitespace, update comments, remove unused headers and variablesConstanza Heath2015-10-0615-862/+794
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Change macro of ROTWORD to inline functionConstanza Heath2015-08-282-1/+5
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Change includes to use predefined header file format for libraryConstanza Heath2015-08-2811-22/+21
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Fix bug in conversion from macro to inlineConstanza Heath2015-08-281-6/+11
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Turn ROTR macro into inline functionConstanza Heath2015-08-282-2/+4
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Separate sanity test for consistent coding style in if blockConstanza Heath2015-08-281-1/+3
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Remove whitespaceConstanza Heath2015-08-282-10/+10
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Add doxygen style comments to public functionsConstanza Heath2015-08-286-215/+208
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Specify all magic numbers with macro labels and commentsConstanza Heath2015-08-289-45/+55
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Add preface of tc_ to public functions, structs, and macrosConstanza Heath2015-08-2814-243/+242
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Add space to line1 of all files, remove punctuation, add space on line2, ↵Constanza Heath2015-08-2815-20/+28
| | | | | | remove ws from license Signed-off-by: Constanza Heath <[email protected]>
* Move header namespace macros under license commentsConstanza Heath2015-08-287-14/+21
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Add filename and description comment to top of filesConstanza Heath2015-08-2815-15/+15
| | | | Signed-off-by: Constanza Heath <[email protected]>
* Initial commitConstanza Heath2015-08-2016-0/+2007