Home
last modified time | relevance | path

Searched refs:HmacSha256 (Results 1 – 8 of 8) sorted by relevance

/openthread-3.4.0/src/core/crypto/
Dhmac_sha256.cpp42 HmacSha256::HmacSha256(void) in HmacSha256() function in ot::Crypto::HmacSha256
50 HmacSha256::~HmacSha256(void) { SuccessOrAssert(otPlatCryptoHmacSha256Deinit(&mContext)); } in ~HmacSha256()
52 void HmacSha256::Start(const Key &aKey) { SuccessOrAssert(otPlatCryptoHmacSha256Start(&mContext, &a… in Start()
54 void HmacSha256::Update(const void *aBuf, uint16_t aBufLength) in Update()
59 void HmacSha256::Finish(Hash &aHash) in Finish()
64 void HmacSha256::Update(const Message &aMessage, uint16_t aOffset, uint16_t aLength) in Update()
Dhmac_sha256.hpp65 class HmacSha256 class
78 HmacSha256(void);
84 ~HmacSha256(void);
Dcrypto_platform.cpp240 VerifyOrExit(aContext->mContextSize >= sizeof(HmacSha256::Hash), error = kErrorFailed); in otPlatCryptoHkdfInit()
242 new (aContext->mContext) HmacSha256::Hash(); in otPlatCryptoHkdfInit()
255 HmacSha256 hmac; in otPlatCryptoHkdfExpand()
256 HmacSha256::Hash hash; in otPlatCryptoHkdfExpand()
259 HmacSha256::Hash *prk; in otPlatCryptoHkdfExpand()
262 VerifyOrExit(aContext->mContextSize >= sizeof(HmacSha256::Hash), error = kErrorFailed); in otPlatCryptoHkdfExpand()
264 prk = static_cast<HmacSha256::Hash *>(aContext->mContext); in otPlatCryptoHkdfExpand()
283 cryptoKey.Set(prk->GetBytes(), sizeof(HmacSha256::Hash)); in otPlatCryptoHkdfExpand()
314 HmacSha256 hmac; in otPlatCryptoHkdfExtract()
316 HmacSha256::Hash *prk; in otPlatCryptoHkdfExtract()
[all …]
/openthread-3.4.0/tests/unit/
Dtest_hmac_sha256.cpp108 VerifyOrQuit(hash == static_cast<const Crypto::HmacSha256::Hash &>(testCase.mHash)); 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()
251 VerifyOrQuit(hash == static_cast<const Crypto::HmacSha256::Hash &>(testCase.mHash)); in TestHmacSha256()
270 Crypto::HmacSha256 hmac; in TestHmacSha256()
271 Crypto::HmacSha256::Hash hash; in TestHmacSha256()
277 VerifyOrQuit(hash == static_cast<const Crypto::HmacSha256::Hash &>(testCase.mHash)); in TestHmacSha256()
/openthread-3.4.0/src/core/api/
Dcrypto_api.cpp52 HmacSha256 hmac; in otCryptoHmacSha256()
/openthread-3.4.0/src/core/thread/
Dkey_manager.hpp581 Crypto::HmacSha256::Hash mHash;
Dkey_manager.cpp289 Crypto::HmacSha256 hmac; in ComputeKeys()
/openthread-3.4.0/src/core/common/
Dmessage.hpp76 class HmacSha256;
266 friend class Crypto::HmacSha256;