1.3.2.1 DRV_CRYPTO_ECDSA_InitEccParamsSign()
CRYPTO_PKE_RESULT DRV_CRYPTO_ECDSA_InitEccParamsSign (PKE_CONFIG * eccData, uint8_t * inputHash, uint32_t hashLength, uint8_t * privateKey, uint32_t privateKeyLength, PKE_ECC_CURVE eccCurve)
Initialize the ECDSA parameters used for signature generation.
eccData |
Configuration structure to store ECDSA information. |
inputHash |
Hash input to use for the signature generation. |
hashLength |
Length of the Hash input. |
privateKey |
Private Key input for signature generation. |
privateKeyLength |
Length of the private key. |
eccCurve |
ECC Curve used for generation. |
CRYPTO_PKE_RESULT_SUCCESS on success. CRYPTO_PKE_RESULT_ERROR_CURVE on failure. |
Note:
This function initializes eccData with ECDSA parameters and sets up the Hardware Crypto Engine.