/openthread-3.5.0/src/core/thread/ |
D | key_manager.cpp | 185 mNetworkKeyRef = Crypto::Storage::kInvalidKeyRef; in KeyManager() 186 mPskcRef = Crypto::Storage::kInvalidKeyRef; in KeyManager() 210 if (Crypto::Storage::IsKeyRefValid(mPskcRef)) in SetPskc() 263 if (Crypto::Storage::IsKeyRefValid(mNetworkKeyRef)) in SetNetworkKey() 289 Crypto::HmacSha256 hmac; in ComputeKeys() 291 Crypto::Key cryptoKey; in ComputeKeys() 311 Crypto::HkdfSha256 hkdf; in ComputeTrelKey() 313 Crypto::Key cryptoKey; in ComputeTrelKey() 519 if (Crypto::Storage::IsKeyRefValid(mNetworkKeyRef)) in GetNetworkKey() 523 …SuccessOrAssert(Crypto::Storage::ExportKey(mNetworkKeyRef, aNetworkKey.m8, NetworkKey::kSize, keyL… in GetNetworkKey() [all …]
|
D | key_manager.hpp | 151 Error GenerateRandom(void) { return Random::Crypto::Fill(*this); } in GenerateRandom() 181 Error GenerateRandom(void) { return Random::Crypto::Fill(*this); } in GenerateRandom() 581 Crypto::HmacSha256::Hash mHash;
|
/openthread-3.5.0/tests/unit/ |
D | test_hmac_sha256.cpp | 101 Crypto::Sha256 sha256; in TestSha256() 102 Crypto::Sha256::Hash hash; in TestSha256() 108 VerifyOrQuit(hash == static_cast<const Crypto::HmacSha256::Hash &>(testCase.mHash)); in TestSha256() 127 Crypto::Sha256 sha256; in TestSha256() 128 Crypto::Sha256::Hash hash; in TestSha256() 134 VerifyOrQuit(hash == static_cast<const Crypto::HmacSha256::Hash &>(testCase.mHash)); in TestSha256() 244 Crypto::HmacSha256 hmac; in TestHmacSha256() 245 Crypto::HmacSha256::Hash hash; in TestHmacSha256() 247 hmac.Start(static_cast<const Crypto::Key &>(testCase.mKey)); in TestHmacSha256() 251 VerifyOrQuit(hash == static_cast<const Crypto::HmacSha256::Hash &>(testCase.mHash)); in TestHmacSha256() [all …]
|
D | test_aes.cpp | 59 ot::Crypto::AesCcm aesCcm; in TestMacBeaconFrame() 127 ot::Crypto::AesCcm aesCcm; in TestMacCommandFrame() 134 …aesCcm.Payload(test + kHeaderLength, test + kHeaderLength, kPayloadLength, ot::Crypto::AesCcm::kEn… in TestMacCommandFrame() 141 …aesCcm.Payload(test + kHeaderLength, test + kHeaderLength, kPayloadLength, ot::Crypto::AesCcm::kDe… in TestMacCommandFrame() 157 aesCcm.Payload(*message, kHeaderLength, kPayloadLength, ot::Crypto::AesCcm::kEncrypt); in TestMacCommandFrame() 166 aesCcm.Payload(*message, kHeaderLength, kPayloadLength, ot::Crypto::AesCcm::kDecrypt); in TestMacCommandFrame() 197 ot::Crypto::AesCcm aesCcm; in TestInPlaceAesCcmProcessing() 229 … aesCcm.Payload(*message, kHeaderLength, msgLength - kHeaderLength, ot::Crypto::AesCcm::kEncrypt); in TestInPlaceAesCcmProcessing() 240 … aesCcm.Payload(*message, kHeaderLength, msgLength - kHeaderLength, ot::Crypto::AesCcm::kDecrypt); in TestInPlaceAesCcmProcessing()
|
D | test_ecdsa.cpp | 45 namespace Crypto { namespace 189 ot::Crypto::TestEcdsaVector(); in main() 190 ot::Crypto::TestEcdsaKeyGenerationSignAndVerify(); in main()
|
D | test_hkdf_sha256.cpp | 131 ot::Crypto::HkdfSha256 hkdf; in TestHkdfSha256() 133 ot::Crypto::Key testInputKey; in TestHkdfSha256()
|
/openthread-3.5.0/src/core/mac/ |
D | mac_types.cpp | 60 IgnoreError(Random::Crypto::Fill(*this)); in GenerateRandom() 300 SuccessOrAssert(Crypto::Storage::ImportKey(keyRef, Crypto::Storage::kKeyTypeAes, in SetFrom() 301 Crypto::Storage::kKeyAlgorithmAesEcb, in SetFrom() 302 … (aIsExportable ? Crypto::Storage::kUsageExport : 0) | in SetFrom() 303 … Crypto::Storage::kUsageEncrypt | Crypto::Storage::kUsageDecrypt, in SetFrom() 304 … Crypto::Storage::kTypeVolatile, aKey.GetBytes(), Key::kSize)); in SetFrom() 319 if (Crypto::Storage::IsKeyRefValid(GetKeyRef())) in ExtractKey() 323 SuccessOrAssert(Crypto::Storage::ExportKey(GetKeyRef(), aKey.m8, Key::kSize, keySize)); in ExtractKey() 330 void KeyMaterial::ConvertToCryptoKey(Crypto::Key &aCryptoKey) const in ConvertToCryptoKey() 342 Crypto::Storage::DestroyKey(GetKeyRef()); in DestroyKey()
|
/openthread-3.5.0/src/core/crypto/ |
D | ecdsa.hpp | 52 namespace Crypto { namespace 252 … return Crypto::Storage::ImportKey(mKeyRef, Storage::kKeyTypeEcdsa, Storage::kKeyAlgorithmEcdsa, in ImportKeyPair() 366 DefineCoreType(otPlatCryptoEcdsaSignature, Crypto::Ecdsa::P256::Signature); 367 DefineCoreType(otPlatCryptoEcdsaKeyPair, Crypto::Ecdsa::P256::KeyPair); 368 DefineCoreType(otPlatCryptoEcdsaPublicKey, Crypto::Ecdsa::P256::PublicKey);
|
D | sha256.hpp | 55 namespace Crypto { namespace 160 DefineCoreType(otCryptoSha256Hash, Crypto::Sha256::Hash);
|
D | storage.cpp | 39 namespace Crypto { namespace 49 SuccessOrAssert(Crypto::Storage::ExportKey(GetKeyRef(), aKeyBuffer, aKeyLength, readKeyLength)); in ExtractKey()
|
D | mbedtls.cpp | 52 namespace Crypto { namespace 177 IgnoreError(ot::Random::Crypto::FillBuffer(aBuffer, static_cast<uint16_t>(aSize))); in CryptoSecurePrng()
|
D | mbedtls.hpp | 61 namespace Crypto { namespace
|
D | aes_ecb.hpp | 46 namespace Crypto { namespace
|
D | hkdf_sha256.hpp | 46 namespace Crypto { namespace
|
D | storage.hpp | 48 namespace Crypto { namespace 345 DefineCoreType(otCryptoKey, Crypto::Key);
|
D | aes_ecb.cpp | 39 namespace Crypto { namespace
|
D | hmac_sha256.hpp | 52 namespace Crypto { namespace
|
D | hkdf_sha256.cpp | 44 namespace Crypto { namespace
|
/openthread-3.5.0/third_party/mbedtls/repo/docs/ |
D | getting_started.md | 1 ## Getting started with Mbed Crypto 3 ### What is Mbed Crypto? argument 5 Mbed Crypto is an open source cryptographic library that supports a wide range of cryptographic ope… 14 The Mbed Crypto library is a reference implementation of the cryptography interface of the Arm Plat… 16 The Mbed Crypto library is distributed under the Apache License, version 2.0. 23 ### Using Mbed Crypto argument 25 * [Getting the Mbed Crypto library](#getting-the-mbed-crypto-library) 26 * [Building the Mbed Crypto library](#building-the-mbed-crypto-library) 27 * [Using the Mbed Crypto library](#using-the-mbed-crypto-library) 36 * [More about the Mbed Crypto library](#more-about-the-mbed-crypto-library) [all …]
|
/openthread-3.5.0/src/core/utils/ |
D | slaac_address.cpp | 282 Crypto::Sha256 sha256; in GenerateIid() 283 Crypto::Sha256::Hash hash; in GenerateIid() 338 error = Random::Crypto::Fill(aKey); in GetIidSecretKey() 342 IgnoreError(Random::Crypto::Fill(aKey)); in GetIidSecretKey()
|
/openthread-3.5.0/src/core/meshcop/ |
D | dtls.cpp | 279 mbedtls_ssl_conf_rng(&mConf, Crypto::MbedTls::CryptoSecurePrng, nullptr); in Setup() 318 rval = mbedtls_ssl_cookie_setup(&mCookieCtx, Crypto::MbedTls::CryptoSecurePrng, nullptr); in Setup() 369 return Crypto::MbedTls::MapError(rval); in Setup() 398 Crypto::MbedTls::CryptoSecurePrng, nullptr); in SetApplicationCoapSecureKeys() 559 return Crypto::MbedTls::MapError(rval); in SetClientId() 578 SuccessOrExit(error = Crypto::MbedTls::MapError(mbedtls_ssl_write(&mSsl, buffer, aLength))); in Send() 764 Crypto::Sha256::Hash kek; in HandleMbedtlsExportKeys() 765 Crypto::Sha256 sha256; in HandleMbedtlsExportKeys() 811 Crypto::Sha256::Hash kek; in HandleMbedtlsExportKeys() 812 Crypto::Sha256 sha256; in HandleMbedtlsExportKeys()
|
D | dataset_local.cpp | 223 using namespace Crypto::Storage; in DestroySecurelyStoredKeys() 235 using namespace Crypto::Storage; in MoveKeysToSecureStorage() 267 using namespace Crypto::Storage; in EmplaceSecurelyStoredKeys()
|
/openthread-3.5.0/src/core/api/ |
D | random_crypto_api.cpp | 44 return Random::Crypto::FillBuffer(aBuffer, aSize); in otRandomCryptoFillBuffer()
|
/openthread-3.5.0/third_party/mbedtls/repo/docs/architecture/ |
D | mbed-crypto-storage-specification.md | 1 Mbed Crypto storage specification 4 This document specifies how Mbed Crypto uses storage. 6 Mbed Crypto may be upgraded on an existing device with the storage preserved. Therefore: 11 Mbed Crypto 0.1.0 70 Assumption: ITS provides a 32-bit file identifier namespace. The Crypto service can use arbitrary f… 87 Mbed Crypto 1.0.0 127 Assumption: ITS provides a 64-bit file identifier namespace. The Crypto service can use arbitrary f… 162 Mbed Crypto 1.1.0 195 Mbed Crypto TBD 210 Assumption: ITS provides a 64-bit file identifier namespace. The Crypto service can use arbitrary f… [all …]
|
/openthread-3.5.0/src/core/net/ |
D | srp_client.hpp | 798 static constexpr uint32_t kSrpEcdsaKeyRef = Crypto::Storage::kEcdsaRef; 992 Crypto::Ecdsa::P256::KeyPairAsRef mKeyRef; // The ECDSA key ref for key-pair. 994 Crypto::Ecdsa::P256::KeyPair mKeyPair; // The ECDSA key pair. 1015 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPairAsRef &aKeyRef); 1017 Error ReadOrGenerateKey(Crypto::Ecdsa::P256::KeyPair &aKeyPair);
|