(Re)initialize an HMAC_CTX with key and digest (deprecated; prefer EVP_MAC).

Synopsis

Declared in <openssl/hmac.h>

[[deprecated]]
int
HMAC_Init_ex(
    HMAC_CTX* ctx,
    void const* key,
    int len,
    EVP_MD const* md,
    ENGINE* impl);
Warning

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

HMAC context to initialize.

key

HMAC key bytes, or NULL to reuse the previous key when only md changes.

len

Length of key in bytes (ignored when key is NULL).

md

Message digest used as the HMAC hash, or NULL to keep the previous digest.

impl

Optional ENGINE implementing md, or NULL.

Created with MrDocs