1.3.2.2 DRV_CRYPTO_ECDH_InitEccParams()
CRYPTO_PKE_RESULT DRV_CRYPTO_ECDH_InitEccParams (PKE_CONFIG * eccData, uint8_t * privateKey, uint32_t privateKeyLength, uint8_t * publicKey, uint32_t publicKeyLength, PKE_ECC_CURVE hwEccCurve)
This function initializes the ECDH parameters and sets up the Hardware Crypto Engine for the shared secret generation.
| eccData |
Configuration structure to store ECDH information. |
| privateKey |
Private key input for the shared secret generation. |
| privateKeyLength |
Length of the private key. |
| publicKey |
Public key input for the shared secret generation. |
| publicKeyLength |
Length of the public key. |
| hwEccCurve |
ECC curve used for the generation. |
| CRYPTO_PKE_RESULT_SUCCESS |
Success. |
| CRYPTO_PKE_RESULT_ERROR_FAIL |
ECC initialization failure. |
