EVP_MAC_init - specify the hash algorithm
Thomas Dwyer III
tomiii at tomiii.com
Tue Jul 13 22:48:01 UTC 2021
This seems to work for me in 3.0, passing the EVP_MD to
EVP_DigestSignInit():
pkey = EVP_PKEY_new_mac_key()
EVP_DigestSignInit()
EVP_DigestSignUpdate()
EVP_DigestSignUpdate()
.
.
.
EVP_DigestSignFinal()
Regards,
Tom.III
On Tue, Jul 13, 2021 at 11:02 AM Ken Goldman <kgoldman at us.ibm.com> wrote:
> Porting to 3.0 ... HMAC_Init_ex() had a place for
> the hash algorithm. EVP_MAC_init() does not,
> unless it's embedded in the 'params' parameter.
>
> Any advice? Or a sample for doing an
> HMAC with 3.0?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20210713/a7651b20/attachment-0001.html>
More information about the openssl-users
mailing list