ica_ec_get_public_key
Purpose
Obtains the public key (X,Y) of the given
ICA_EC_KEY data structure.
Format
int ica_ec_key_get_public_key(const ICA_EC_KEY *key,
unsigned char *q,
unsigned int *q_len);
Required hardware support
None.
Parameters
- const ICA_EC_KEY *key
- Pointer to a previously allocated
ICA_EC_KEYdata structure. - unsigned char *q
- Pointer to a writable buffer where (
X,Y) is returned. - unsigned int *q_len
- Pointer to an unsigned integer where the length of (
X,Y) in bytes is returned.
Return codes
- 0
- Success
- EINVAL
- If at least one invalid parameter is given.
For return codes indicating exceptions, see Return codes.