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

Name

Description

dctx

Destination context; must already be allocated with HMAC_CTX_new().

sctx

Source context whose digest, key, and intermediate state are copied.

Created with MrDocs