mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-11 05:16:27 +00:00
Restrict cipher_update() for GCM
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user