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

Name

Description

sig

Signature object to update.

r

New r value; ownership transferred to sig (must not be NULL).

s

New s value; ownership transferred to sig (must not be NULL).

Created with MrDocs