Skip to content

Commit

Permalink
Update include/aws/cal/symmetric_cipher.h
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Graeb <[email protected]>
  • Loading branch information
DmitriyMusatkin and graebm authored Jun 20, 2024
1 parent 62c3f14 commit 42b8f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/aws/cal/symmetric_cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ AWS_CAL_API int aws_symmetric_cipher_finalize_decryption(struct aws_symmetric_ci
* Note: GCM tag is not preserved between operations. If you intend to do encrypt followed directly by decrypt, make
* sure to make a copy of tag before reseting the cipher and pass that copy for decryption.
*
* Warning: In most cases its a really bad idea to reset a cipher and perform another operation using that cipher.
* Warning: In most cases it's a really bad idea to reset a cipher and perform another operation using that cipher.
* Key and IV should not be reused for different operations. Instead of reseting the cipher, destroy the cipher
* and create new one with a new key/iv pair. Use reset at your own risk, and only after careful consideration.
*
Expand Down

0 comments on commit 42b8f50

Please sign in to comment.