Home
last modified time | relevance | path

Searched refs:Ecdsa (Results 1 – 9 of 9) sorted by relevance

/openthread-3.6.0/tests/unit/
Dtest_ecdsa.cpp80 Ecdsa::P256::KeyPair keyPair; in TestEcdsaVector()
81 Ecdsa::P256::PublicKey publicKey; in TestEcdsaVector()
82 Ecdsa::P256::Signature signature; in TestEcdsaVector()
98 DumpBuffer("PublicKey", publicKey.GetBytes(), Ecdsa::P256::PublicKey::kSize); in TestEcdsaVector()
100 …VerifyOrQuit(sizeof(kPublicKey) == Ecdsa::P256::PublicKey::kSize, "Example public key is invalid"); in TestEcdsaVector()
138 Ecdsa::P256::KeyPair keyPair; in TestEcdsaKeyGenerationSignAndVerify()
139 Ecdsa::P256::PublicKey publicKey; in TestEcdsaKeyGenerationSignAndVerify()
140 Ecdsa::P256::Signature signature; in TestEcdsaKeyGenerationSignAndVerify()
155 DumpBuffer("PublicKey", publicKey.GetBytes(), Ecdsa::P256::PublicKey::kSize); in TestEcdsaKeyGenerationSignAndVerify()
/openthread-3.6.0/src/core/crypto/
Decdsa.hpp53 namespace Ecdsa { namespace
366 DefineCoreType(otPlatCryptoEcdsaSignature, Crypto::Ecdsa::P256::Signature);
367 DefineCoreType(otPlatCryptoEcdsaKeyPair, Crypto::Ecdsa::P256::KeyPair);
368 DefineCoreType(otPlatCryptoEcdsaPublicKey, Crypto::Ecdsa::P256::PublicKey);
Dcrypto_platform.cpp547 Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaGetPublicKey()
551 aPublicKey->m8 + Ecdsa::P256::kMpiSize, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaGetPublicKey()
601 OT_ASSERT(mbedtls_mpi_size(&r) <= Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaSign()
603 ret = mbedtls_mpi_write_binary(&r, aSignature->m8, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaSign()
606 … ret = mbedtls_mpi_write_binary(&s, aSignature->m8 + Ecdsa::P256::kMpiSize, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaSign()
635 …i_read_binary(&ecdsa.MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), aPublicKey->m8, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaVerify()
637 …i_read_binary(&ecdsa.MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), aPublicKey->m8 + Ecdsa::P256::kMpiSize, in otPlatCryptoEcdsaVerify()
638 Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaVerify()
643 ret = mbedtls_mpi_read_binary(&r, aSignature->m8, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaVerify()
646 … ret = mbedtls_mpi_read_binary(&s, aSignature->m8 + Ecdsa::P256::kMpiSize, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaVerify()
/openthread-3.6.0/src/core/net/
Dsrp_client.hpp992 Crypto::Ecdsa::P256::KeyPairAsRef mKeyRef; // The ECDSA key ref for key-pair.
994 Crypto::Ecdsa::P256::KeyPair mKeyPair; // The ECDSA key pair.
1017 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPairAsRef &aKeyRef);
1019 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPair &aKeyPair);
Dsrp_client.cpp954 Error Client::ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPairAsRef &aKeyRef) in ReadOrGenerateKey()
957 Crypto::Ecdsa::P256::KeyPair keyPair; in ReadOrGenerateKey()
978 Error Client::ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPair &aKeyPair) in ReadOrGenerateKey()
986 Crypto::Ecdsa::P256::PublicKey publicKey; in ReadOrGenerateKey()
1368 Crypto::Ecdsa::P256::PublicKey publicKey; in AppendKeyRecord()
1376 …key.SetLength(sizeof(Dns::KeyRecord) - sizeof(Dns::ResourceRecord) + sizeof(Crypto::Ecdsa::P256::P… in AppendKeyRecord()
1480 Crypto::Ecdsa::P256::Signature signature; in AppendSignature()
Dsrp_server.cpp1242 VerifyOrExit(signatureLength == Crypto::Ecdsa::P256::Signature::kSize, error = kErrorParse); in ProcessAdditionalSection()
1271 Crypto::Ecdsa::P256::Signature signature; in VerifySignature()
1274 … VerifyOrExit(aSigRdataLength >= Crypto::Ecdsa::P256::Signature::kSize, error = kErrorInvalidArgs); in VerifySignature()
1295 signatureOffset = aSigRdataOffset + aSigRdataLength - Crypto::Ecdsa::P256::Signature::kSize; in VerifySignature()
Ddns_types.hpp2262 const Crypto::Ecdsa::P256::PublicKey &GetKey(void) const { return mKey; } in GetKey()
2265 Crypto::Ecdsa::P256::PublicKey mKey;
Dsrp_server.hpp452 typedef Crypto::Ecdsa::P256::PublicKey Key; ///< Host key (public ECDSA P256 key).
/openthread-3.6.0/src/core/common/
Dsettings.hpp660 typedef Crypto::Ecdsa::P256::KeyPair ValueType; ///< The associated value type.