F-9321 / F-9322: correct key state precondition in AesCcm and AesGcm javadoc

pull/258/head
Chris Conlon 2026-08-14 16:16:10 -06:00
parent 377b1ae5b7
commit 145c212625
2 changed files with 6 additions and 6 deletions

View File

@ -217,10 +217,10 @@ public class AesCcm extends NativeStruct {
* @param authIn additional data to be authenticated but not encrypted,
* can be null if no additional data desired or available.
*
* @return encrypted cipertext buffer
* @return encrypted ciphertext buffer
*
* @throws WolfCryptException if native operation fails
* @throws IllegalStateException if key has already been set, if object
* @throws IllegalStateException if key has not been set, if object
* fails to initialize, or if releaseNativeStruct() has been
* called and object has been released.
*/
@ -251,7 +251,7 @@ public class AesCcm extends NativeStruct {
* @return decrypted plaintext buffer
*
* @throws WolfCryptException if native operation fails
* @throws IllegalStateException if key has already been set, if object
* @throws IllegalStateException if key has not been set, if object
* fails to initialize, or if releaseNativeStruct() has been
* called and object has been released.
*/

View File

@ -218,10 +218,10 @@ public class AesGcm extends NativeStruct {
* @param authIn additional data to be authenticated but not encrypted,
* can be null if no additional data desired or available.
*
* @return encrypted cipertext buffer
* @return encrypted ciphertext buffer
*
* @throws WolfCryptException if native operation fails
* @throws IllegalStateException if key has already been set, if object
* @throws IllegalStateException if key has not been set, if object
* fails to initialize, or if releaseNativeStruct() has been
* called and object has been released.
*/
@ -252,7 +252,7 @@ public class AesGcm extends NativeStruct {
* @return decrypted plaintext buffer
*
* @throws WolfCryptException if native operation fails
* @throws IllegalStateException if key has already been set, if object
* @throws IllegalStateException if key has not been set, if object
* fails to initialize, or if releaseNativeStruct() has been
* called and object has been released.
*/