Fix EVP_DigestSign interface when used with DES CMAC
authorPatrick Steuer <patrick.steuer@de.ibm.com>
Thu, 9 Apr 2020 17:58:02 +0000 (19:58 +0200)
committerPatrick Steuer <patrick.steuer@de.ibm.com>
Fri, 10 Apr 2020 22:31:57 +0000 (00:31 +0200)
commitabfc73f374c2b80e15f6c9d0b3a7437b3e94afa8
tree783be6935ef526392d31db6686c08fea08619502
parentcc572c25647f6ab0c026a4a3057dc706e4a4a412
Fix EVP_DigestSign interface when used with DES CMAC

DES implementations were missing the dup/copy ctx routines
required by CMAC implementation. A regression test is added.

Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11498)
providers/implementations/ciphers/cipher_des.c
providers/implementations/ciphers/cipher_des_hw.c
providers/implementations/ciphers/cipher_desx_hw.c
providers/implementations/ciphers/cipher_tdes.h
providers/implementations/ciphers/cipher_tdes_common.c
providers/implementations/ciphers/cipher_tdes_hw.c
test/recipes/30-test_evp_data/evpmac.txt