Parent topic:MPLABĀ® Harmony Crypto Library
int CRYPT_ECC_KeySizeGet(
    CRYPT_ECC_CTX* ecc
);
This function returns the size of the ECC key, in octets.
The ECC context must have been initialized with a call to CRYPT_ECC_Initialize. The key must have been imported or created prior to calling this function.
| Parameters | Description | 
|---|---|
| ecc | Pointer to context which saves state between calls and contains the key. | 
BAD_FUNC_ARG - An invalid pointer was passed to the function.
int - The size of the key, in octets.
None.
CRYPT_ECC_CTX userA; 
int           ret;
byte          sig[100];
unsigned int  sigSz = (unsigned int)sizeof(sig);
unsigned int  usedA = 0;
ret = CRYPT_ECC_Initialize(&userA);
...
// Import or generate private key
...
ret = CRYPT_ECC_KeySizeGet(&userA);