otPlatCryptoEcdsaGenerateKey() function
Generate and populate the output buffer with a new ECDSA key-pair.
Arguments
aKeyPair
A pointer to an ECDSA key-pair structure to store the generated key-pair.
Return value
OT_ERROR_NONE A new key-pair was generated successfully. OT_ERROR_NO_BUFS Failed to allocate buffer for key generation. OT_ERROR_NOT_CAPABLE Feature not supported. OT_ERROR_FAILED Failed to generate key-pair.