ECDSA_SIG_set0

Set the r and s components of an ECDSA signature, transferring ownership.

Synopsis

Declared in <openssl/ec.h>

int
ECDSA_SIG_set0(
    ECDSA_SIG* sig,
    BIGNUM* r,
    BIGNUM* s);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
sigSignature object to update.
rNew r value; ownership transferred to sig (must not be NULL).
sNew s value; ownership transferred to sig (must not be NULL).