Searched refs:aKeyPair (Results 1 – 5 of 5) sorted by relevance
/openthread-3.6.0/src/core/crypto/ |
D | crypto_platform.cpp | 496 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 …]
|
D | ecdsa.hpp | 250 Error ImportKeyPair(const KeyPair &aKeyPair) in ImportKeyPair() argument 254 Storage::kTypePersistent, aKeyPair.GetDerBytes(), in ImportKeyPair() 255 aKeyPair.GetDerLength()); in ImportKeyPair()
|
/openthread-3.6.0/include/openthread/platform/ |
D | crypto.h | 601 otError otPlatCryptoEcdsaGenerateKey(otPlatCryptoEcdsaKeyPair *aKeyPair); 614 otError otPlatCryptoEcdsaGetPublicKey(const otPlatCryptoEcdsaKeyPair *aKeyPair, otPlatCryptoEcdsaPu… 632 otError otPlatCryptoEcdsaSign(const otPlatCryptoEcdsaKeyPair *aKeyPair,
|
/openthread-3.6.0/src/core/net/ |
D | srp_client.cpp | 978 Error Client::ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPair &aKeyPair) in ReadOrGenerateKey() argument 982 error = Get<Settings>().Read<Settings::SrpEcdsaKey>(aKeyPair); in ReadOrGenerateKey() 988 if (aKeyPair.GetPublicKey(publicKey) == kErrorNone) in ReadOrGenerateKey() 994 SuccessOrExit(error = aKeyPair.Generate()); in ReadOrGenerateKey() 995 IgnoreError(Get<Settings>().Save<Settings::SrpEcdsaKey>(aKeyPair)); in ReadOrGenerateKey()
|
D | srp_client.hpp | 1019 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPair &aKeyPair);
|