otPlatCryptoEcdsaSign() function
Calculate the ECDSA signature for a hashed message using the private key from the input context. Uses the deterministic digital signature generation procedure from RFC 6979.
Arguments
aKeyPair
A pointer to an ECDSA key-pair structure where the key-pair is stored.
aHash
A pointer to a SHA-256 hash structure where the hash value for signature calculation is stored.
aSignature
A pointer to an ECDSA signature structure to output the calculated signature.
Return value
OT_ERROR_NONE The signature was calculated successfully, @p aSignature was updated. OT_ERROR_PARSE The key-pair DER format could not be parsed (invalid format). OT_ERROR_NO_BUFS Failed to allocate buffer for signature calculation. OT_ERROR_INVALID_ARGS The @p aContext is NULL.
otPlatCryptoEcdsaSign() calls 16 functions:
![]()
otPlatCryptoEcdsaSign()
otPlatCryptoEcdsaSign() reads 12 variables:
![]()
otPlatCryptoEcdsaSign()