Home
last modified time | relevance | path

Searched refs:aKeyPair (Results 1 – 3 of 3) sorted by relevance

/openthread-latest/src/core/crypto/
Dcrypto_platform.cpp496 OT_TOOL_WEAK otError otPlatCryptoEcdsaGenerateKey(otPlatCryptoEcdsaKeyPair *aKeyPair) in otPlatCryptoEcdsaGenerateKey() argument
509 ret = mbedtls_pk_write_key_der(&pk, aKeyPair->mDerBytes, OT_CRYPTO_ECDSA_MAX_DER_SIZE); in otPlatCryptoEcdsaGenerateKey()
512 aKeyPair->mDerLength = static_cast<uint8_t>(ret); in otPlatCryptoEcdsaGenerateKey()
514 …memmove(aKeyPair->mDerBytes, aKeyPair->mDerBytes + OT_CRYPTO_ECDSA_MAX_DER_SIZE - aKeyPair->mDerLe… in otPlatCryptoEcdsaGenerateKey()
515 aKeyPair->mDerLength); in otPlatCryptoEcdsaGenerateKey()
523 OT_TOOL_WEAK otError otPlatCryptoEcdsaGetPublicKey(const otPlatCryptoEcdsaKeyPair *aKeyPair, in otPlatCryptoEcdsaGetPublicKey() argument
536 VerifyOrExit(mbedtls_pk_parse_key(&pk, aKeyPair->mDerBytes, aKeyPair->mDerLength, nullptr, 0, in otPlatCryptoEcdsaGetPublicKey()
540 …VerifyOrExit(mbedtls_pk_parse_key(&pk, aKeyPair->mDerBytes, aKeyPair->mDerLength, nullptr, 0) == 0, in otPlatCryptoEcdsaGetPublicKey()
559 OT_TOOL_WEAK otError otPlatCryptoEcdsaSign(const otPlatCryptoEcdsaKeyPair *aKeyPair, in otPlatCryptoEcdsaSign() argument
579 VerifyOrExit(mbedtls_pk_parse_key(&pk, aKeyPair->mDerBytes, aKeyPair->mDerLength, nullptr, 0, in otPlatCryptoEcdsaSign()
[all …]
Decdsa.hpp232 Error ImportKeyPair(const KeyPair &aKeyPair) in ImportKeyPair() argument
236 Storage::kTypePersistent, aKeyPair.GetDerBytes(), in ImportKeyPair()
237 aKeyPair.GetDerLength()); in ImportKeyPair()
/openthread-latest/include/openthread/platform/
Dcrypto.h557 otError otPlatCryptoEcdsaGenerateKey(otPlatCryptoEcdsaKeyPair *aKeyPair);
569 otError otPlatCryptoEcdsaGetPublicKey(const otPlatCryptoEcdsaKeyPair *aKeyPair, otPlatCryptoEcdsaPu…
586 otError otPlatCryptoEcdsaSign(const otPlatCryptoEcdsaKeyPair *aKeyPair,