mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 20:58:26 +00:00
aes: Clarify IV requirements for OFB mode
Combine the two "must be unique" phrases into one for clarity. An IV that is universally unique is also unique for each encryption operation.
This commit is contained in:
parent
5db13621ec
commit
cb2c935a54
1 changed files with 3 additions and 3 deletions
|
@ -324,9 +324,9 @@ int mbedtls_aes_crypt_cfb8( mbedtls_aes_context *ctx,
|
|||
* you must either save it manually or use the cipher module
|
||||
* instead.
|
||||
*
|
||||
* \warning For the OFB mode, the initiallisation vector must be unique and
|
||||
* must be unique for every encryption operation. Reuse of an
|
||||
* initialisation vector will compromise security.
|
||||
* \warning For the OFB mode, the initialisation vector must be unique
|
||||
* every encryption operation. Reuse of an initialisation vector
|
||||
* will compromise security.
|
||||
*
|
||||
* \param ctx The AES context to use for encryption or decryption.
|
||||
* \param length The length of the input data.
|
||||
|
|
Loading…
Reference in a new issue