Home
last modified time | relevance | path

Searched refs:Crypto (Results 1 – 25 of 68) sorted by relevance

123

/openthread-3.5.0/src/core/thread/
Dkey_manager.cpp185 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 …]
Dkey_manager.hpp151 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/
Dtest_hmac_sha256.cpp101 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 …]
Dtest_aes.cpp59 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()
Dtest_ecdsa.cpp45 namespace Crypto { namespace
189 ot::Crypto::TestEcdsaVector(); in main()
190 ot::Crypto::TestEcdsaKeyGenerationSignAndVerify(); in main()
Dtest_hkdf_sha256.cpp131 ot::Crypto::HkdfSha256 hkdf; in TestHkdfSha256()
133 ot::Crypto::Key testInputKey; in TestHkdfSha256()
/openthread-3.5.0/src/core/mac/
Dmac_types.cpp60 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()
303Crypto::Storage::kUsageEncrypt | Crypto::Storage::kUsageDecrypt, in SetFrom()
304Crypto::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/
Decdsa.hpp52 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);
Dsha256.hpp55 namespace Crypto { namespace
160 DefineCoreType(otCryptoSha256Hash, Crypto::Sha256::Hash);
Dstorage.cpp39 namespace Crypto { namespace
49 SuccessOrAssert(Crypto::Storage::ExportKey(GetKeyRef(), aKeyBuffer, aKeyLength, readKeyLength)); in ExtractKey()
Dmbedtls.cpp52 namespace Crypto { namespace
177 IgnoreError(ot::Random::Crypto::FillBuffer(aBuffer, static_cast<uint16_t>(aSize))); in CryptoSecurePrng()
Dmbedtls.hpp61 namespace Crypto { namespace
Daes_ecb.hpp46 namespace Crypto { namespace
Dhkdf_sha256.hpp46 namespace Crypto { namespace
Dstorage.hpp48 namespace Crypto { namespace
345 DefineCoreType(otCryptoKey, Crypto::Key);
Daes_ecb.cpp39 namespace Crypto { namespace
Dhmac_sha256.hpp52 namespace Crypto { namespace
Dhkdf_sha256.cpp44 namespace Crypto { namespace
/openthread-3.5.0/third_party/mbedtls/repo/docs/
Dgetting_started.md1 ## 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/
Dslaac_address.cpp282 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/
Ddtls.cpp279 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()
Ddataset_local.cpp223 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/
Drandom_crypto_api.cpp44 return Random::Crypto::FillBuffer(aBuffer, aSize); in otRandomCryptoFillBuffer()
/openthread-3.5.0/third_party/mbedtls/repo/docs/architecture/
Dmbed-crypto-storage-specification.md1 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/
Dsrp_client.hpp798 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);

123