Commit Graph

68 Commits (c19e3f0fa12f5f4bcefc4dbe9c439aaaefcbbeba)

Author SHA1 Message Date
Chris Conlon c19e3f0fa1 F-5033: grow update() buffer by doubling in WolfCryptCipher 2026-07-30 17:17:53 -06:00
Chris Conlon 0cf08c9d15 F-5032: accumulate AES-GCM/CCM AAD with amortized growth in engineUpdateAAD 2026-07-29 15:06:09 -06:00
Chris Conlon 97842c5087 F-5798: reject non-byte-aligned AES-GCM/CCM tag lengths at Cipher init 2026-07-24 15:52:25 -06:00
Chris Conlon 98fbe75412 License: change license from GPLv2 to GPLv3 to match native wolfSSL 2026-07-22 13:43:57 -06:00
Chris Conlon 64a4214531 JCE: match SunJCE certpath disabledAlgorithms and AES-GCM IV reuse behavior, add PQ/DH key constraints 2026-07-16 10:35:03 -06:00
Chris Conlon d6a4e0d9a2 F-5066: use a uniform exception for RSA PKCS#1 v1.5 unwrap failures 2026-07-07 15:59:54 -06:00
Chris Conlon 1e6bcb17cc F-5030: use constant-time PKCS#7 unpadding and uniform BadPaddingException 2026-07-07 15:59:53 -06:00
Chris Conlon abb9ae8071 F-5029: reject AES-GCM key and IV reuse for encryption in WolfCryptCipher 2026-07-07 15:59:53 -06:00
Chris Conlon 0da3d0846d JCE: throw BadPaddingException on RSA/ECB/PKCS1Padding decrypt failure 2026-05-12 16:09:52 -06:00
Chris Conlon ea9d616e6c Suppress JDK 24 deprecation/removal warnings 2026-05-01 15:05:45 -06:00
Ruby Martin 596fa9f651 JCE: zero WolfCryptCipher encodedKey buffers after use 2026-04-24 15:33:58 -06:00
Chris Conlon 3958625983 JCE: remove redundant RSA struct allocation from InitializeNativeStructs() 2026-03-31 17:51:50 -06:00
Chris Conlon b4099e142a JCE: lazy-init Rng in WolfCryptCipher, only allocate for RSA 2026-03-31 16:25:34 -06:00
Chris Conlon 93fa4c7f86 JCE: add missing aesCtr/aesOfb cleanup in WolfCryptCipher.finalize() (F-1520) 2026-03-30 16:40:02 -06:00
Chris Conlon 85b3662a7a JCE: return defensive copy of IV in engineGetIV to prevent internal state mutation 2026-03-20 11:10:42 -06:00
Chris Conlon 32f7724515 JCE: add Cipher WRAP_MODE and UNWRAP_MODE support 2026-02-05 15:41:21 -07:00
Chris Conlon 035e8b72b5 JCE: add Cipher RSA/ECB/OAEPWithSHA-1AndMGF1Padding support 2026-01-28 16:09:08 -07:00
Chris Conlon 5e5b65379f JCE: add RSA/ECB/OAEPWithSHA-256AndMGF1Padding Cipher support 2026-01-21 10:55:37 -07:00
Chris Conlon 8baf896daa Update copyright dates to 2026 2026-01-08 10:12:29 -07:00
Chris Conlon 181a802afa JNI/JCE: adjust AES-CTS to allow for single block operation 2025-11-13 14:32:31 -07:00
Chris Conlon 9ef4bb5530 JCE: add RSA KeyFactory implementation 2025-11-10 13:53:15 -07:00
Chris Conlon 9168f9b0d2 JCE: reset buffered data in Cipher.engineInit() 2025-10-31 16:57:35 -06:00
Chris Conlon 6d4a406ea5 JNI/JCE: add AesCts to JNI and Cipher.AES/CTS/NoPadding to wolfJCE 2025-10-27 15:58:12 -06:00
Chris Conlon f67b0f4057 JCE: WolfCryptCipher with RSA only supports RSAPrivateCrtKey for PrivateKey usage, throw exception if passed something else 2025-09-05 10:36:57 -06:00
Chris Conlon 2508cd23f8 JCE: correct Cipher.getOutputSize() for modes that do not require block size boundaries 2025-09-03 11:45:46 -06:00
Chris Conlon b95683948b Fix ArrayIndexOutOfBoundsException in AES-GCM/CCM with zero-length input, correct CCM arg sanitization 2025-09-03 11:45:42 -06:00
Chris Conlon 2f5b0a8646 JCE: improve Cipher input validation, output buffer sizing, and update behavior 2025-08-28 10:28:19 -06:00
Chris Conlon 794be08089 JNI/JCE: fix AES-GCM edge cases to allow for null input or output arrays, add test cases 2025-08-26 17:58:32 -06:00
Chris Conlon 3307403bb9 JCE: fix expected pad size for decrypt operations, output size should not increase 2025-08-26 15:25:20 -06:00
Chris Conlon 2b7fce81a8 JCE: implement AlgorithmParameters.getInstance("GCM") 2025-08-25 16:26:39 -06:00
Chris Conlon 1e7ef775c1 JCE: set default AES-GCM/CCM tag length to 128 bits, add unit tests for regression 2025-08-21 17:22:22 -06:00
Chris Conlon 6f2434a0c8 JCE: throw correct InvalidParameterException from Cipher.init() if mode is unsupported or incorrect 2025-08-21 14:21:14 -06:00
Ruby Martin 8bdce7cc7f
Merge pull request #141 from cconlon/CipherNullParamsFix
Fix Cipher.engineInit() with null parameters
2025-08-21 12:39:00 -06:00
Chris Conlon 262d1e3bed JCE: fix Cipher.engineInit() with null parameters, add regression test 2025-08-20 11:44:19 -06:00
Ruby Martin 777a564330
Merge pull request #140 from cconlon/CipherEngineGetParameters
Implement `Cipher.engineGetParameters()` and add unit tests
2025-08-20 11:30:04 -06:00
Ruby Martin 3fc54cb262
Merge pull request #139 from cconlon/GcmAeadException
Throw AEADBadTagException on AES-GCM Cipher decrypt failure
2025-08-20 10:52:27 -06:00
Chris Conlon 8e52e647b9 JCE: implement Cipher.engineGetParameters() and add associated unit tests 2025-08-20 10:21:02 -06:00
Chris Conlon 816fcfed4a JCE: fix Cipher.engineGetOutputSize() to account for buffered data, fixes Cipher ByteBuffer method usage cases 2025-08-19 17:48:44 -06:00
Chris Conlon ea114dac0a JCE: throw AEADBadTagException on AES-GCM Cipher decrypt failure 2025-08-19 15:18:45 -06:00
Chris Conlon 17321eaffc JCE: Fix AES-CTR IV consistency and add regression tests for CTR and other modes 2025-08-18 14:00:36 -06:00
Chris Conlon 968cf09723 JCE: add Cipher AES/CCM/NoPadding support 2025-07-17 10:47:35 -06:00
Chris Conlon 04c250d079 JCE: add Cipher AES/OFB/NoPadding support 2025-07-17 10:47:35 -06:00
Chris Conlon add2c83efd JCE: add Cipher AES/CTR/NoPadding support 2025-07-17 10:47:35 -06:00
Chris Conlon bf77c474d9 JCE: add Cipher AES/ECB/NoPadding and AES/ECB/PKCS5Padding support 2025-07-17 10:47:35 -06:00
Chris Conlon 3a91ddb811 JCE: switch WolfCryptDebug to use Java Logging 2025-05-07 11:36:52 -06:00
Chris Conlon dbfbe28cab JCE: fix Cipher.getOutputSize() for AES/GCM/NoPadding in DECRYPT mode, should remove tag from length 2025-03-19 16:55:14 -06:00
Chris Conlon 3484adef93 JNI/JCE: fix unused imports and variable warnings reported by Cursor/VSCode 2025-02-24 15:23:34 -07:00
Chris Conlon 6ccdf43175 JNI/JCE: update copyright to 2025 2025-01-20 15:15:14 -07:00
Chris Conlon 4b96ee8b84 JCE: clean up WolfCryptDebug log() methods across classes 2024-10-11 14:38:47 -06:00
Chris Conlon 9bd93de973 JCE: add Cipher support for AES/GCM/NoPadding 2024-02-09 16:59:18 -07:00