AES-CMAC digest with EVP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have two buffers, one with a key and one with some data. The objective is to calculate the AES-CMAC of the data with this key. I managed to compute the AES-CMAC using type `EVP_aes_128_cbc()` with the low-level interface:

1. CMAC_CTX *ctx = CMAC_CTX_new()
2. CMAC_Init
3. CMAC_Update
4. CMAC_Final
5. CMAC_CTX_free

Can this be done with the high-level EVP interface?

The EVP_DigestSign* set of functions expects a type EVP_MD, but EVP_aes_128_cbc() is of type EVP_CIPHER.

Daniel
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux