Home
last modified time | relevance | path

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

/openthread-latest/src/core/crypto/
Dstorage.hpp276 mKey = aKeyBytes; in Set()
288 const uint8_t *GetBytes(void) const { return mKey; } in GetBytes()
308 bool IsKeyRef(void) const { return (mKey == nullptr); } in IsKeyRef()
326 mKey = nullptr; in SetAsKeyRef()
370 const uint8_t *GetBytes(void) const { return mKey; } in GetBytes()
380 const uint8_t *mKey; member in ot::Crypto::LiteralKey
Dstorage.cpp74 : mKey(aKey.GetBytes()) in LiteralKey()
80 mKey = mBuffer; in LiteralKey()
/openthread-latest/src/core/utils/
Dflash.hpp143 mKey = aKey; in Init()
155 uint16_t GetKey(void) const { return mKey; } in GetKey()
156 void SetKey(uint16_t aKey) { mKey = aKey; } in SetKey()
184 uint16_t mKey; member in ot::Flash::RecordHeader
/openthread-latest/src/core/common/
Dstring.hpp524 uint16_t mKey; ///< The key value. member in ot::Stringify::Entry
528 int Compare(uint16_t aKey) const { return ThreeWayCompare(aKey, mKey); } in Compare()
532 return aFirst.mKey < aSecond.mKey; in AreInOrder()
/openthread-latest/tests/nexus/platform/
Dnexus_settings.hpp69 bool Matches(uint16_t aKey) const { return mKey == aKey; } in Matches()
72 uint16_t mKey; member
Dnexus_settings.cpp113 entry->mKey = aKey; in SetOrAdd()
/openthread-latest/tests/unit/
Dtest_hmac_sha256.cpp144 otCryptoKey mKey; in TestHmacSha256() member
247 hmac.Start(static_cast<const Crypto::Key &>(testCase.mKey)); in TestHmacSha256()
273 hmac.Start(static_cast<const Crypto::Key &>(testCase.mKey)); in TestHmacSha256()
Dtest_dns.cpp1648 uint8_t expectedKeyLength = static_cast<uint8_t>(strlen(expectedTxtEntry.mKey)); in TestDnsTxtEntry()
1651 …printf("key:\"%s\" valueLen:%d\n", txtEntry.mKey != nullptr ? txtEntry.mKey : "(null)", txtEntry.m… in TestDnsTxtEntry()
1659 … VerifyOrQuit(txtEntry.mKey == nullptr, "TxtEntry key does not match expected value for long key"); in TestDnsTxtEntry()
1662 VerifyOrQuit(memcmp(txtEntry.mValue, expectedTxtEntry.mKey, expectedKeyLength) == 0); in TestDnsTxtEntry()
1669 VerifyOrQuit(strcmp(txtEntry.mKey, expectedTxtEntry.mKey) == 0); in TestDnsTxtEntry()
1680 VerifyOrQuit((txtEntry.mKey == nullptr) == (expectedTxtEntry.mKey == nullptr), in TestDnsTxtEntry()
1691 txtEntry.mKey = kShortKey; in TestDnsTxtEntry()
1710 txtEntry.mKey = nullptr; in TestDnsTxtEntry()
1734 …VerifyOrQuit((txtEntry.mKey[0] == 'A') && (txtEntry.mKey[1] == '\0'), "GetNextEntry() got incorrec… in TestDnsTxtEntry()
1739 …VerifyOrQuit((txtEntry.mKey[0] == 'D') && (txtEntry.mKey[1] == '\0'), "GetNextEntry() got incorrec… in TestDnsTxtEntry()
Dtest_hkdf_sha256.cpp145 testInputKey.mKey = test->mInKey; in TestHkdfSha256()
/openthread-latest/src/core/mac/
Dmac_types.hpp546 const Key &GetKey(void) const { return static_cast<const Key &>(mKeyMaterial.mKey); } in GetKey()
600 Key &GetKey(void) { return static_cast<Key &>(mKeyMaterial.mKey); } in GetKey()
601 void SetKey(const Key &aKey) { mKeyMaterial.mKey = aKey; } in SetKey()
/openthread-latest/include/openthread/
Ddns.h91 const char *mKey; member
/openthread-latest/src/core/radio/
Dtrel_interface.cpp269 if (entry.mKey == nullptr) in ParsePeerInfoTxtData()
274 if (StringMatch(entry.mKey, kTxtRecordExtAddressKey)) in ParsePeerInfoTxtData()
281 else if (StringMatch(entry.mKey, kTxtRecordExtPanIdKey)) in ParsePeerInfoTxtData()
/openthread-latest/src/core/net/
Ddns_types.cpp1042 aEntry.mKey = keyBuffer; in GetNextEntry()
1077 aEntry.mKey = nullptr; in GetNextEntry()
1114 if (mKey == nullptr) in AppendTo()
1121 keyLength = StringLength(mKey, static_cast<uint16_t>(kMaxKeyValueEncodedSize) + 1); in AppendTo()
1129 error = aAppender.AppendBytes(mKey, keyLength); in AppendTo()
1138 SuccessOrExit(error = aAppender.AppendBytes(mKey, keyLength)); in AppendTo()
Ddns_types.hpp1198 mKey = aKey; in Init()
2127 const Crypto::Ecdsa::P256::PublicKey &GetKey(void) const { return mKey; } in GetKey()
2134 void SetKey(const Crypto::Ecdsa::P256::PublicKey &aKey) { mKey = aKey; } in SetKey()
2137 Crypto::Ecdsa::P256::PublicKey mKey; member in ot::Dns::Ecdsa256KeyRecord
Dsrp_server.cpp353 if ((existingHost != nullptr) && (aHost.mKey != existingHost->mKey)) in HasNameConflictsWith()
367 if (host.HasService(service.GetInstanceName()) && (aHost.mKey != host.mKey)) in HasNameConflictsWith()
957 VerifyOrExit(aHost.mKey == keyRecord.GetKey(), error = kErrorSecurity); in ProcessHostDescriptionInstruction()
962 aHost.mKey = keyRecord.GetKey(); in ProcessHostDescriptionInstruction()
1280 …SuccessOrExit(error = VerifySignature(aHost->mKey, aMessage, aMetadata.mDnsHeader, sigOffset, sigR… in ProcessAdditionalSection()
Dsrp_server.hpp509 const Key &GetKey(void) const { return mKey; } in GetKey()
575 Key mKey; member in ot::Srp::Server::Host
Dsrp_advertising_proxy.cpp1074 RegisterKey(hostName, /* aServiceType */ nullptr, aHost.mKey, aHost.mKeyAdvId, aHost.GetTtl()); in RegisterKey()
1088 …RegisterKey(aService.GetInstanceLabel(), serviceType, aService.mHost->mKey, aService.mKeyAdvId, aS… in RegisterKey()
/openthread-latest/src/posix/platform/
Drcp_caps_diag.hpp106 spinel_prop_key_t mKey; member
Drcp_caps_diag.cpp258 memset(prevKey.mKeyMaterial.mKey.m8, 0x11, OT_MAC_KEY_SIZE); in HandleSpinelCommand()
259 memset(curKey.mKeyMaterial.mKey.m8, 0x22, OT_MAC_KEY_SIZE); in HandleSpinelCommand()
260 memset(nextKey.mKeyMaterial.mKey.m8, 0x33, OT_MAC_KEY_SIZE); in HandleSpinelCommand()
800 const char *keyString = spinel_prop_key_to_cstr(aEntry.mKey); in OutputResult()
/openthread-latest/src/ncp/
Dncp_base_dispatcher.cpp41 : ((aHandlerEntries[aSize - 1].mKey > aHandlerEntries[aSize - 2].mKey) && in AreHandlerEntriesSorted()
823 if (aHandlerEntries[m].mKey < aKey) in FindPropertyHandler()
833 return aHandlerEntries[l].mKey == aKey ? aHandlerEntries[l].mHandler : nullptr; in FindPropertyHandler()
Dncp_base.hpp353 spinel_prop_key_t mKey; member
/openthread-latest/include/openthread/platform/
Dcrypto.h112 …const uint8_t *mKey; ///< Pointer to the buffer containing key. NULL indicates to use `mKeyR… member
Dradio.h217 otMacKey mKey; ///< Key stored as literal. member
/openthread-latest/src/cli/
Dcli_utils.cpp237 if (entry.mKey == nullptr) in OutputDnsTxtData()
250 OutputFormat("%s", entry.mKey); in OutputDnsTxtData()
/openthread-latest/src/lib/spinel/
Dradio_spinel.cpp903 return SetMacKey(aKeyIdMode, aKeyId, aPrevKey->mKeyMaterial.mKey, aCurrKey->mKeyMaterial.mKey, in SetMacKey()
904 aNextKey->mKeyMaterial.mKey); in SetMacKey()