Commit Graph

161 Commits (e25d43d0b74bd31d0c94c7edba922dcb2953f45d)

Author SHA1 Message Date
Chris Conlon 30a1916233 JNI: synchronize wc_ecc_sign_hash() on rngLock, add sanity check for wc_ecc_sig_size() 2024-04-16 17:53:40 -06:00
Chris Conlon ac4f1bfdc2 JNI: call wc_RunAllCast_fips() when used with FIPS 140-3 pilot 2024-04-16 17:53:40 -06:00
Chris Conlon 5f094107a0 JNI: correctly return JNI_TRUE/FALSE from native wc_ecc_verify_hash() wrapper instead of int 2024-04-16 17:53:40 -06:00
Chris Conlon bd85cba527 JNI: fix feature detect for HMAC-SHA224 2024-04-09 15:15:12 -06:00
Chris Conlon c6d4819d8a JCE: add SecretKeyFactory implementation for PBKDF2 2024-03-21 17:11:56 -06:00
Chris Conlon 627e5c1d70 JCE: add implementation of CertPathValidator (PKIX) 2024-02-21 13:37:44 -07:00
Chris Conlon 9bd93de973 JCE: add Cipher support for AES/GCM/NoPadding 2024-02-09 16:59:18 -07:00
Chris Conlon a5434c8c38 JNI: add JNI-level AES-GCM support in com.wolfssl.wolfcrypt.AesGcm 2024-02-09 15:37:24 -07:00
Chris Conlon 0e521059a6 update copyright to 2024 2024-01-16 15:41:15 -07:00
Chris Conlon d31cde3ad0 JCE: adjust feature detection for native HMAC to check for NO_HMAC 2023-10-27 15:56:08 -06:00
Chris Conlon e6f3a9e823 JCE: remove HMAC-MD5 from wolfJCE provider if not available in underlying FIPS library 2023-10-27 15:56:05 -06:00
Chris Conlon adf00d6409 JNI/JSSE: add calls to PRIVATE_KEY_LOCK/UNLOCK and FIPS_CAST_ECC_CDH for wolfCrypt FIPS 140-3 compatibility 2023-10-27 14:17:13 -06:00
Chris Conlon a81fe465da Switch CyaSSL header includes to wolfSSL, remove FIPSv1 build instructions now that FIPS #2425 is historical and CyaSSL headers/sources have been removed from wolfSSL proper 2023-10-17 14:11:23 -06:00
Chris Conlon f6ffb7489e JNI: add synchronization around native ecc_key/RsaKey/DhKey pointer access in Ecc/Rsa/Dh class 2023-08-10 13:32:59 -06:00
Chris Conlon 8606e9e14e JNI/JCE: add synchronization around native BlockCipher pointer access 2023-08-07 11:24:50 -06:00
Chris Conlon f63d9a1b0d JNI: cleanup XMALLOC usage, call XMEMSET where needed 2023-08-07 11:24:50 -06:00
Chris Conlon 1fe2ad65fd JNI/JCE: add synchronization around native MessageDigest pointer access 2023-08-07 11:24:45 -06:00
Chris Conlon a2e7643464 JNI: compile in 3DES FIPS APIs for FIPSv2 2023-07-07 16:06:05 -06:00
Chris Conlon 836223f7a3 JCE: add support for Cipher AES/CBC/PKCS5Padding support 2023-06-15 10:04:34 -06:00
Chris Conlon 6822bb5cb8 get ECC curve OID before calling wc_CreatePKCS8Key for size 2023-06-09 11:54:03 -06:00
Chris Conlon 5e2a1eb364 JNI: native ECC code cleanup and typo fixes 2023-06-05 10:43:52 -06:00
Chris Conlon 9401c82d31 JCE: add RSA support in KeyPairGenerator, Rsa supporting methods, native cleanup 2023-06-05 10:43:09 -06:00
JacobBarthelmeh ba34804e15
Merge pull request #46 from cconlon/windows
Add Windows Support (Visual Studio)
2023-05-05 14:47:54 -06:00
Chris Conlon e1eb1d3cfd Des3_fips() API not available in wolfCrypt FIPSv5 2023-05-03 11:18:06 -06:00
Chris Conlon 05091926cb fix build errors and warnings for Visual Studio on Windows 2023-05-03 10:06:41 -06:00
Chris Conlon 3f7cb19759 add uintptr_t cast in Md5 mallocNativeStruct 2022-11-11 16:21:00 -07:00
Chris Conlon 9a7b7263c3 add MessageDigest.clone() support and underlying wolfCrypt class object copy methods 2022-11-10 14:22:15 -07:00
Chris Conlon 93db26daa5 fix casting warning in LogStr of jni_native_struct.c 2022-07-29 16:30:46 -06:00
Chris Conlon 03b7797304 throw exception when Chacha.process() input array is null 2022-07-29 14:09:45 -06:00
Chris Conlon c51d6122a9 cleanup ChaCha native wrapper, fix double free of ChaCha pointer 2022-07-29 14:00:52 -06:00
Chris Conlon 11874b3199 use wc_XXX names for Md5 and Sha structs, adds wolfSSL compatibility with --enable-engine 2022-07-19 10:40:18 -06:00
Chris Conlon 0aff7b3e63 update copyright to 2022 2022-01-18 09:29:36 -07:00
Chris Conlon 1f5d20460e convert tabs to 4 spaces, remove trailing whitespace 2022-01-18 09:17:51 -07:00
Chris Conlon 9c64fd108e run FIPS tests on ant test, wrap AES-GCM SetExtIV, fix Fips.RsaSSL_Sign() 2022-01-05 14:02:45 -07:00
Chris Conlon f20c2e4b2a fix compatibility with no old names 2021-11-15 14:39:21 -07:00
Chris Conlon 4e477cdc1b update copyright to 2021, minor comment updates 2021-11-15 10:17:00 -07:00
Chris Conlon 1f2181e68b fix build with WOLFCRYPT_JNI_DEBUG_ON defined 2021-11-15 09:50:48 -07:00
Chris Conlon e11bc558a2 add FIPS 140-3 compatibility 2021-11-15 09:50:45 -07:00
Chris Conlon 74317c53a3 fix unused warning for rng in jni_ecc.c 2020-08-26 15:48:16 -07:00
Chris Conlon b6277811e1 call wc_ecc_set_rng() when needed 2020-08-26 10:09:14 -07:00
Chris Conlon b6d982a7fc remove BLAKE2b, fix hash algo conditional compiles 2020-01-09 10:51:22 -07:00
Maxime Vincent e0821c5bce Fix bug in wc_Chacha_SetIV parameter usage (was wrongly using IV length as block offset) 2018-07-26 20:32:58 +02:00
Chris Conlon b77ccff718
Merge pull request #4 from danielinux/chacha-ed25519-curve25519
Added wrappers for ed25519, curve25519, chacha.
2018-07-26 11:31:14 -06:00
Aaron Jense 79fec8325f return 0 if no FIPS, return 1 if v1, return HAVE_FIPS_VERSION for all other versions 2018-07-16 15:57:12 -06:00
Aaron Jense 0ac485039a Create getFipsVersion JNI method to allow for Java level access to HAVE_FIPS_VERSION 2018-07-12 14:00:35 -06:00
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
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
Aaron Jense 9c65cae351 Add WC* to match wolfssl and wolfssl-fips 2018-06-29 14:32:43 -06:00
Aaron Jense f23dbb7fbe change <hash type> to WC_<hash type> 2018-06-29 13:33:39 -06:00