ica_ec_get_private_key
Purpose
Obtains the private key (D) of the given ICA_EC_KEY data
structure.
Format
int ica_ec_key_get_private_key(const ICA_EC_KEY *key,
unsigned char *d,
unsigned int *d_len);
Required hardware support
None.
Parameters
- const ICA_EC_KEY *key
- Pointer to a previously allocated
ICA_EC_KEYdata structure. - unsigned char *d
- Pointer to a writable buffer where
Dis returned. - unsigned int *d_len
- Pointer to an unsigned integer where the length of
Din bytes is returned.
Return codes
- 0
- Success
- EINVAL
- If at least one invalid parameter is given.
For return codes indicating exceptions, see Return codes.