Commit Graph

176 Commits (master)

Author SHA1 Message Date
Chris Conlon 4fa8642264 JNI: get ASN algo enum values dynamically in static class block, more flexible if native enum values change 2025-05-08 14:41:01 -06:00
Chris Conlon 920c92117c JNI: add negative sanity checks for offset and len in jni_sha.c 2025-03-05 15:26:25 -07:00
Chris Conlon 53a40020f7 JNI: wrap native SHA-3 support in com.wolfssl.wolfcrypt.Hmac class 2025-03-05 15:21:23 -07:00
Chris Conlon 00f2b1c318 JNI: wrap native SHA-3 support in com.wolfssl.wolfcrypt.Sha3 class 2025-03-05 15:18:05 -07:00
Chris Conlon dcddf92aaf JCE: add HmacSHA224 support to Mac implementation 2025-03-05 09:16:32 -07:00
Chris Conlon bcbc411bb1 JNI: add SHA-224 to com.wolfssl.wolfcrypt.Sha224 class 2025-03-05 09:16:32 -07:00
Chris Conlon 6ccdf43175 JNI/JCE: update copyright to 2025 2025-01-20 15:15:14 -07:00
Chris Conlon 68bc76f4e1 JNI/JCE: call wc_RunAllCast_fips() for HAVE_FIPS_VERSION >= 6 2024-12-30 16:28:27 -07:00
Chris Conlon fa4995b324 JNI: check and run FIPS CASTs if needed in com.wolfssl.wolfcrypt.Fips class methods 2024-12-13 11:58:37 -07:00
Chris Conlon acbad58f17 JNI/JCE: only run FIPS CASTs once up front, for JCE run once when WolfCryptProvider is created 2024-12-13 11:58:35 -07:00
Chris Conlon c112d0d47c JNI/JCE: fix build compatibility with latest FIPS versions > 5 2024-11-08 15:16:05 -07:00
Chris Conlon d8ed437f3b JNI/JCE: fix pointer use in JNI X509CheckPrivateKey() 2024-10-23 10:27:47 -06:00
Chris Conlon 2e8a380e3b JNI: fix warnings from Android gradle build, lots related to potential incomplete object initialization in constructors 2024-10-11 14:38:47 -06:00
Chris Conlon e4da66fb4a JNI/JSSE: account for native RSA_MIN_SIZE in JUnit tests, add Rsa.RSA_MIN_SIZE helper 2024-09-18 14:54:47 -06:00
Chris Conlon 8f254f67b3 JCE: add WolfSSLKeyStore (WKS) KeyStore implementation 2024-07-15 15:50:06 -06:00
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