On Mon, Aug 19, 2013, Leon Brits wrote:

> Hi all,
> 
> I've been (re)implementing all the ciphers we use to make use of EVP
> structures. On the wiki
> (http://wiki.openssl.org/index.php/EVP_Key_and_Parameter_Generation) there
> is an example to use EVP_PKEY for CMAC.  I am a bit confused on the
> intention of this: Basically, how do I use this generated "key" with the
> EVP_Encrypt/Decrypt Init/Update/Final functions since they require an
> EVP_CIPHER structure to work on the message data for which I want to
> calculate a tag.
> 

The EVP interface for MACs (including HMAC and CMAC) is EVP_DigestSign*().

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to