Initialize an HMAC context with a key and digest (legacy).
Declared in <openssl/hmac.h>
[[deprecated]]
int
HMAC_Init(
HMAC_CTX* ctx,
void const* key,
int len,
EVP_MD const* md);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | HMAC context to initialize. |
| key | HMAC key material. |
| len | Length of key in bytes. |
| md | Message digest to use, or NULL to keep the current digest. |