mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Restrict cipher_update() for GCM
This commit is contained in:
parent
226d5da1fc
commit
b8bd593741
4 changed files with 18 additions and 67 deletions
|
|
@ -512,6 +512,10 @@ int cipher_update_ad( cipher_context_t *ctx,
|
|||
* POLARSSL_ERR_CIPHER_FEATURE_UNAVAILABLE on an
|
||||
* unsupported mode for a cipher or a cipher specific
|
||||
* error code.
|
||||
*
|
||||
* \note If the underlying cipher is GCM, all calls to this
|
||||
* function, except the last one before cipher_finish(),
|
||||
* must have ilen a multiple of the block size.
|
||||
*/
|
||||
int cipher_update( cipher_context_t *ctx, const unsigned char *input, size_t ilen,
|
||||
unsigned char *output, size_t *olen );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue