Parent topic:MPLAB® Harmony Crypto Library
int CRYPT_ECC_Initialize(
CRYPT_ECC_CTX* ecc
);
This function initializes the context used for Elliptic Curve Cryptography (ECC). The context is then passed to calls to perform key building, encryption, decryption, etc.
None.
Parameters | Description |
---|---|
ecc | Pointer to context to initialize. |
-
BAD_FUNC_ARG - An invalid pointer was passed to the function.
-
-1 - Unable to allocate memory for the keys.
-
0 - An invalid pointer was not passed to the function.
None.
CRYPT_ECC_CTX userA;
int ret;
ret = CRYPT_ECC_Initialize(&userA);