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:54:50 +0100 |
commit | 94976a1e8d9b127999df14c2e0c38e918c2badda (patch) | |
tree | 334d92294784fad3dc0348650725988a69db1bb7 /doc/man7 | |
parent | demos/mac/cmac-aes256: Clarify the cipher algorithm used (diff) | |
download | openssl-94976a1e8d9b127999df14c2e0c38e918c2badda.tar.xz openssl-94976a1e8d9b127999df14c2e0c38e918c2badda.zip |
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)
Diffstat (limited to 'doc/man7')
-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> |