1.3.2.3 DRV_CRYPTO_ECDSA_Sign()

CRYPTO_PKE_RESULT DRV_CRYPTO_ECDSA_Sign (PKE_CONFIG * eccData, uint8_t * outputSignature, uint32_t signatureLength)

Generates a signature and sets the output to an input signature buffer.

Parameters:
eccData

Configuration structure to store ECDSA information.

outputSignature

Buffer to contain the signature.

signatureLength

Length of the signature

Returns:

CRYPTO_PKE_RESULT_SUCCESS on success. CRYPTO_PKE_RESULT_ERROR_FAIL on failure.

Note:

DRV_CRYPTO_ECDSA_InitEccParamsSign must be called before this function can be called.