ECDSA_sign_ex

Computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory).

extern (C) nothrow @nogc
int
ECDSA_sign_ex

Parameters

type int

this parameter is ignored

dgst const(ubyte)*

pointer to the hash value to sign

dgstlen int

length of the hash value

sig ubyte*

buffer to hold the DER encoded signature

siglen uint*

pointer to the length of the returned signature

kinv const(libressl_d.openssl.ossl_typ.BIGNUM)*

BIGNUM with a pre-computed inverse k (optional)

rp const(libressl_d.openssl.ossl_typ.BIGNUM)*

BIGNUM with a pre-computed rp value (optioanl), see ECDSA_sign_setup

eckey libressl_d.openssl.ec.EC_KEY*

EC_KEY object containing a private EC key

Return Value

Type: int

1 on success and 0 otherwise

Meta