pub unsafe extern "C" fn otPlatCryptoEcdsaGenerateAndImportKey(
    aKeyRef: otCryptoKeyRef
) -> otError
Expand description

Generate and import a new ECDSA key-pair at reference passed.

@param[in] aKeyRef Key Reference to the slot where the key-pair is stored.

@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.

@note This API is only used by OT core when OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE is enabled.