Merge pull request #1058 from waleed-elmelegy-arm/check-set_padding-is-called

Check set_padding has been called in mbedtls_cipher_finish
This commit is contained in:
Gilles Peskine 2023-09-25 17:12:36 +02:00 committed by GitHub
commit ffe590d197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 365 additions and 256 deletions

View file

@ -852,7 +852,6 @@ int mbedtls_cipher_setkey(mbedtls_cipher_context_t *ctx,
* \brief This function sets the padding mode, for cipher modes
* that use padding.
*
* The default passing mode is PKCS7 padding.
*
* \param ctx The generic cipher context. This must be initialized and
* bound to a cipher information structure.