ECDSA_sign

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
(
int type
,
const(ubyte)* dgst
,,
ubyte* sig
,
uint* siglen
,)

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*

memory for the DER encoded created signature

siglen uint*

pointer to the length of the returned signature

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