diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-10-12 11:30:56 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-11 16:56:37 +0100 |
commit | d90a4c7d5a18300153340a6d54e7aba03eebe268 (patch) | |
tree | fbb3ac2b281f33b122a9c086f157718c9cb713ea /doc/man7/EVP_MAC-CMAC.pod | |
parent | 66c4f141369f29b61159a9f77e33e15b9d1c6638 (diff) |
cmac_set_ctx_params(): Fail if cipher mode is not CBC
Also add negative test cases for CMAC and GMAC using
a cipher with wrong mode.
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19401)
(cherry picked from commit 94976a1e8d9b127999df14c2e0c38e918c2badda)
Diffstat (limited to 'doc/man7/EVP_MAC-CMAC.pod')
-rw-r--r-- | doc/man7/EVP_MAC-CMAC.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/man7/EVP_MAC-CMAC.pod b/doc/man7/EVP_MAC-CMAC.pod index cf80586f02..3fb530c4cf 100644 --- a/doc/man7/EVP_MAC-CMAC.pod +++ b/doc/man7/EVP_MAC-CMAC.pod @@ -38,7 +38,8 @@ Setting this parameter is identical to passing a I<key> to L<EVP_MAC_init(3)>. =item "cipher" (B<OSSL_MAC_PARAM_CIPHER>) <UTF8 string> -Sets the name of the underlying cipher to be used. +Sets the name of the underlying cipher to be used. The mode of the cipher +must be CBC. =item "properties" (B<OSSL_MAC_PARAM_PROPERTIES>) <UTF8 string> |