mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 15:55:37 +01:00
- Clarified use of AES and Camellia in CFB and CTR modes
This commit is contained in:
parent
490ecc8c3e
commit
ca6f3e24a4
@ -9,6 +9,9 @@ Features
|
|||||||
supported version to a server to help buggy server implementations.
|
supported version to a server to help buggy server implementations.
|
||||||
(Closes ticket #36)
|
(Closes ticket #36)
|
||||||
|
|
||||||
|
Changes
|
||||||
|
* Documentation for AES and Camellia in modes CTR and CFB128 clarified.
|
||||||
|
|
||||||
= Version 1.0.0 released on 2011-07-27
|
= Version 1.0.0 released on 2011-07-27
|
||||||
Features
|
Features
|
||||||
* Expanded cipher layer with support for CFB128 and CTR mode
|
* Expanded cipher layer with support for CFB128 and CTR mode
|
||||||
|
@ -111,6 +111,11 @@ int aes_crypt_cbc( aes_context *ctx,
|
|||||||
/**
|
/**
|
||||||
* \brief AES-CFB128 buffer encryption/decryption.
|
* \brief AES-CFB128 buffer encryption/decryption.
|
||||||
*
|
*
|
||||||
|
* Note: Due to the nature of CFB you should use the same key schedule for
|
||||||
|
* both encryption and decryption. So a context initialized with
|
||||||
|
* aes_setkey_enc() for both AES_ENCRYPT and AES_DECRYPT.
|
||||||
|
*
|
||||||
|
* both
|
||||||
* \param ctx AES context
|
* \param ctx AES context
|
||||||
* \param mode AES_ENCRYPT or AES_DECRYPT
|
* \param mode AES_ENCRYPT or AES_DECRYPT
|
||||||
* \param length length of the input data
|
* \param length length of the input data
|
||||||
@ -134,6 +139,10 @@ int aes_crypt_cfb128( aes_context *ctx,
|
|||||||
*
|
*
|
||||||
* Warning: You have to keep the maximum use of your counter in mind!
|
* Warning: You have to keep the maximum use of your counter in mind!
|
||||||
*
|
*
|
||||||
|
* Note: Due to the nature of CTR you should use the same key schedule for
|
||||||
|
* both encryption and decryption. So a context initialized with
|
||||||
|
* aes_setkey_enc() for both AES_ENCRYPT and AES_DECRYPT.
|
||||||
|
*
|
||||||
* \param length The length of the data
|
* \param length The length of the data
|
||||||
* \param nc_off The offset in the current stream_block (for resuming
|
* \param nc_off The offset in the current stream_block (for resuming
|
||||||
* within current cipher stream). The offset pointer to
|
* within current cipher stream). The offset pointer to
|
||||||
|
@ -117,6 +117,10 @@ int camellia_crypt_cbc( camellia_context *ctx,
|
|||||||
/**
|
/**
|
||||||
* \brief CAMELLIA-CFB128 buffer encryption/decryption
|
* \brief CAMELLIA-CFB128 buffer encryption/decryption
|
||||||
*
|
*
|
||||||
|
* Note: Due to the nature of CFB you should use the same key schedule for
|
||||||
|
* both encryption and decryption. So a context initialized with
|
||||||
|
* camellia_setkey_enc() for both CAMELLIA_ENCRYPT and CAMELLIE_DECRYPT.
|
||||||
|
*
|
||||||
* \param ctx CAMELLIA context
|
* \param ctx CAMELLIA context
|
||||||
* \param mode CAMELLIA_ENCRYPT or CAMELLIA_DECRYPT
|
* \param mode CAMELLIA_ENCRYPT or CAMELLIA_DECRYPT
|
||||||
* \param length length of the input data
|
* \param length length of the input data
|
||||||
@ -140,6 +144,10 @@ int camellia_crypt_cfb128( camellia_context *ctx,
|
|||||||
*
|
*
|
||||||
* Warning: You have to keep the maximum use of your counter in mind!
|
* Warning: You have to keep the maximum use of your counter in mind!
|
||||||
*
|
*
|
||||||
|
* Note: Due to the nature of CTR you should use the same key schedule for
|
||||||
|
* both encryption and decryption. So a context initialized with
|
||||||
|
* camellia_setkey_enc() for both CAMELLIA_ENCRYPT and CAMELLIA_DECRYPT.
|
||||||
|
*
|
||||||
* \param length The length of the data
|
* \param length The length of the data
|
||||||
* \param nc_off The offset in the current stream_block (for resuming
|
* \param nc_off The offset in the current stream_block (for resuming
|
||||||
* within current cipher stream). The offset pointer to
|
* within current cipher stream). The offset pointer to
|
||||||
|
Loading…
Reference in New Issue
Block a user