openthread_sys

Function otPlatCryptoEcdsaGenerateKey

Source
pub unsafe extern "C" fn otPlatCryptoEcdsaGenerateKey(
    aKeyPair: *mut otPlatCryptoEcdsaKeyPair,
) -> otError
Expand description

Generate and populate the output buffer with a new ECDSA key-pair.

@param[out] aKeyPair A pointer to an ECDSA key-pair structure to store the generated key-pair.

@retval OT_ERROR_NONE A new key-pair was generated successfully. @retval OT_ERROR_NO_BUFS Failed to allocate buffer for key generation. @retval OT_ERROR_NOT_CAPABLE Feature not supported. @retval OT_ERROR_FAILED Failed to generate key-pair.