EC_KEY_set_private_key

Sets the private key of a EC_KEY object.

extern (C) nothrow @nogc
int
EC_KEY_set_private_key

Parameters

key .EC_KEY*

EC_KEY object

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

BIGNUM with the private key (note: the EC_KEY object will use an own copy of the BIGNUM).

Return Value

Type: int

1 on success and 0 if an error occurred.

Meta