(Re)initialize an HMAC_CTX with key and digest (deprecated; prefer EVP_MAC).
Declared in <openssl/hmac.h>
[[deprecated]]
int
HMAC_Init_ex(
HMAC_CTX* ctx,
void const* key,
int len,
EVP_MD const* md,
ENGINE* impl);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| 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. |