Commit Graph

524 Commits (master)

Author SHA1 Message Date
Aaron Jense 6e895a73c8 remove _fips if using FIPS v2 and above 2018-07-12 12:52:38 -06:00
Aaron Jense 2d2546d45b WC prefix for FIPS v2 2018-07-12 12:49:37 -06:00
Chris Conlon 390c5ad7ba
Merge pull request #14 from aaronjense/remove-WC_INLINE-redefine
Removed redefine of WC_INLINE if using FIPS.
2018-07-06 15:53:51 -06:00
Aaron Jense c42f321e81 Removed redefine of WC_INLINE if using FIPS. This was defined in wolfssl proper. 2018-07-05 11:25:17 -06:00
Chris Conlon 5a4240e157
Merge pull request #13 from aaronjense/update-error-codes
Updated Error Codes
2018-06-29 17:29:32 -06:00
Chris Conlon 8cdedfc591
Merge pull request #12 from aaronjense/dynamic-hash-codes-hmac
Dynamic hash codes hmac
2018-06-29 17:28:56 -06:00
Aaron Jense 3cd5f255a6 Updated Error Codes 2018-06-29 15:36:50 -06:00
Aaron Jense 44d872ad16 replace tab with 4 spaces 2018-06-29 15:33:30 -06:00
Aaron Jense b0839d524f Add WolfCrypt.FAILURE 2018-06-29 15:27:47 -06:00
Aaron Jense c5d78b2d58 <hash> to <hash>type and simplify getHashCode switch statement 2018-06-29 15:26:14 -06:00
Aaron Jense 9c65cae351 Add WC* to match wolfssl and wolfssl-fips 2018-06-29 14:32:43 -06:00
Aaron Jense 450141b8b2 Merge remote-tracking branch 'upstream/master' into dynamic-hash-codes-hmac 2018-06-29 13:40:52 -06:00
Aaron Jense f23dbb7fbe change <hash type> to WC_<hash type> 2018-06-29 13:33:39 -06:00
Chris Conlon d934d322e0
Merge pull request #11 from aaronjense/different-error-if-fips
wolfssl-fips throws a different error message. Change expected error message if fips.
2018-06-29 11:13:48 -06:00
Aaron Jense 02e8e3ec78 Change INLINE to WC_INLINE to match that of wolfssl. Fixes compile failure. 2018-06-29 10:49:30 -06:00
Aaron Jense 713d61f757 wolfssl-fips throws a different error message. Check if using fips and assertEquals on the proper expected error message. 2018-06-29 10:40:56 -06:00
Aaron Jense 64b8e3a418 Add dynamic defines for the different hash types depending on their enum code. This fixes the error where the unintended hash type is chosen when switching between different version of wolfssl where the enum codes are different 2018-06-29 10:29:22 -06:00
Chris Conlon 842fefdebc
Merge pull request #8 from aaronjense/add-override-for-makefile-flags
override allows for CC/LD flags to be given as command line arguement…
2018-06-27 09:31:43 -06:00
Chris Conlon c49a62d42f
Merge pull request #10 from aaronjense/fix-out-of-bounds-check
out of bounds check changed from using len(bytes to be hashes) to bufSz(size of array)
2018-06-26 15:54:55 -06:00
Chris Conlon 4214e72083
Merge pull request #7 from aaronjense/dont-trip-jenkins-warning-check
change "WARNING" to "NOTICE"
2018-06-26 15:50:07 -06:00
Aaron Jense 260f62939d This change allows for the amount of bytes to be hashed(len) to be greater than offset and still checks that offset won't go out of bounds of array. 2018-06-26 12:34:44 -06:00
Aaron Jense a737e93dce change warning to notice so that internal warning check isnt tripped while testing 2018-06-26 11:05:07 -06:00
Aaron Jense 7199986d01 override allows for CC/LD flags to be given as command line arguement. This was needed for Jenkins environment and to keep portability of makefile. 2018-06-26 11:01:25 -06:00
Daniele Lacamera c406ea2dc0 Added wrappers for ed25519, curve25519, chacha.
Added maven pom.xml build file.
2018-04-17 20:16:31 +02:00
JacobBarthelmeh b1866b3577 Merge pull request #1 from cconlon/master
Prep for wolfCrypt JNI 1.0.0 release
2017-07-12 09:12:44 -06:00
Chris Conlon 0fb775bb88 update README for 1.0.0 release 2017-07-10 15:08:08 -06:00
Chris Conlon 99a7b3095a add .gitignore 2017-07-06 11:42:33 -06:00
Chris Conlon 99d740243e add title, vendor, version info to JAR manifest 2017-07-06 11:42:23 -06:00
Chris Conlon 6f7e2cf2cd JNI/JCE: update README 2017-06-23 11:14:44 -06:00
Chris Conlon f51f024817 JNI/JCE: add DEBUG/RELEASE targets to build.xml 2017-06-23 10:26:05 -06:00
Chris Conlon 01afb5321b JNI/JCE: create lib dir during make if needed 2017-06-23 09:55:31 -06:00
Chris Conlon 0b7ba574cc JNI/JCE: delete/create test and report dir on build.xml test target 2017-06-23 09:45:25 -06:00
Chris Conlon 3e0870c64b JNI/JCE: add conditional building of JCE 2017-06-22 17:10:55 -06:00
Chris Conlon 9f0a651744 JNI: cleanup hard tabs, spacing in build.xml 2017-06-22 11:44:57 -06:00
Chris Conlon 9615fe0d7c JCE: code review fixes, cleanup 2017-06-15 11:47:56 -06:00
Chris Conlon aed7a9d787 JCE: spacing and cleanup 2017-06-15 09:44:50 -06:00
Chris Conlon d8ae69a322 JCE: throw exception on bad IV length in Cipher class 2017-06-15 09:20:10 -06:00
Chris Conlon df6569090c JCE: Allow Signature object to be initialized multiple times before free 2017-06-15 09:20:10 -06:00
Chris Conlon 08dfab0d3a JCE: fix Cipher test for 3DES 2017-06-15 09:20:10 -06:00
Chris Conlon 622b5ed1b6 JCE: reset state in Cipher on doFinal, add more Cipher tests 2017-06-15 09:20:10 -06:00
Chris Conlon 6c2ab6976a JCE: fix Cipher.update on multi block operations 2017-06-15 09:20:10 -06:00
Chris Conlon 1696c909f8 JCE: only release native structs when not null 2017-06-15 09:20:10 -06:00
Chris Conlon 69b42b64fb JCE: fix Cipher update with offset 2017-06-15 09:20:10 -06:00
Chris Conlon 2a38c5684b JCE: remove comments from WolfCryptDebug 2017-06-15 09:20:10 -06:00
Chris Conlon 7b489dd7b9 JCE: add debug logging with wolfjce.debug system property 2017-06-15 09:20:10 -06:00
Chris Conlon eccb8f512b JCE: remove getL() dependency from DH 2017-06-15 09:20:10 -06:00
Chris Conlon 5f0d62fea0 JCE: remove extra debug functions in test classes 2017-06-15 09:20:10 -06:00
Chris Conlon cb9dc47d61 JCE: remove unimplemented KeyFactory stub 2017-06-15 09:20:10 -06:00
Chris Conlon 90ed9f33d1 JCE: update Cipher.update to match expected return 2017-06-15 09:20:10 -06:00
Chris Conlon f4066c7ede JCE: set verified to false instead of throwing exception on error 2017-06-15 09:20:10 -06:00