HMAC_CTX_copy

Copy the HMAC state from sctx into dctx (deprecated).

Synopsis

Declared in <openssl/hmac.h>

[[deprecated]]
int
HMAC_CTX_copy(
    HMAC_CTX* dctx,
    HMAC_CTX* sctx);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
dctxDestination context; must already be allocated with HMAC_CTX_new().
sctxSource context whose digest, key, and intermediate state are copied.