ot::Crypto::Ecdsa::P256::KeyPair::Sign() const method
Calculates the ECDSA signature for a hashed message using the private key from `KeyPair`. Uses the deterministic digital signature generation procedure from RFC 6979.
Arguments
aHash
The SHA-256 hash value of the message to use for signature calculation.
aSignature
A reference to a `Signature` to output the calculated signature value.
Return value
kErrorNone The signature was calculated successfully and @p aSignature was updated. kErrorParse The key-pair DER format could not be parsed (invalid format). kErrorInvalidArgs The @p aHash is invalid. kErrorNoBufs Failed to allocate buffer for signature calculation.
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const is called by 1 function:
![]()
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const