summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/merge.c
diff options
context:
space:
mode:
authortb <>2023-12-15 13:45:05 +0000
committertb <>2023-12-15 13:45:05 +0000
commit33938838e6871c50d612d2a8ed137a1557e9c72f (patch)
treef6269f6174e016baf81421c67ac58bbae6d9385a /src/lib/libc/stdlib/merge.c
parent150cb2d757cac1a44068bbda820f9aefd1c67494 (diff)
downloadopenbsd-33938838e6871c50d612d2a8ed137a1557e9c72f.tar.gz
openbsd-33938838e6871c50d612d2a8ed137a1557e9c72f.tar.bz2
openbsd-33938838e6871c50d612d2a8ed137a1557e9c72f.zip
Disallow ciphers with EVP_CIPH_FLAG_CUSTOM_CIPHER in CMAC
These are usually AEAD ciphers, for which CMAC makes little sense (if you need a MAC and all you have is an AEAD, you don't need CMAC, you can just use a zero length cipher text). Also, since the CMAC implementation only allows 64 and 128 bit block sizes, the AEADs would error out later anyway. The only family of ciphers this effectively excludes is AES key wrap, for which CMAC makes little sense. One notable side effect of doing this is that the EVP_Cipher() return value checks in the CMAC code magically become correct. EVP. What's not to love about it. ok jsing
Diffstat (limited to 'src/lib/libc/stdlib/merge.c')
0 files changed, 0 insertions, 0 deletions