Home
last modified time | relevance | path

Searched refs:aHash (Results 1 – 17 of 17) sorted by relevance

/openthread-latest/src/core/crypto/
Decdsa.hpp193 Error Sign(const Sha256::Hash &aHash, Signature &aSignature) const in Sign() argument
195 return otPlatCryptoEcdsaSign(this, &aHash, &aSignature); in Sign()
267 Error Sign(const Sha256::Hash &aHash, Signature &aSignature) const in Sign() argument
269 return otPlatCryptoEcdsaSignUsingKeyRef(mKeyRef, &aHash, &aSignature); in Sign()
325 Error Verify(const Sha256::Hash &aHash, const Signature &aSignature) const in Verify() argument
327 return otPlatCryptoEcdsaVerify(this, &aHash, &aSignature); in Verify()
Dsha256.cpp72 void Sha256::Finish(Hash &aHash) { SuccessOrAssert(otPlatCryptoSha256Finish(&mContext, aHash.m8, Ha… in Finish() argument
Dcrypto_platform.cpp425 OT_TOOL_WEAK otError otPlatCryptoSha256Finish(otCryptoContext *aContext, uint8_t *aHash, uint16_t a… in otPlatCryptoSha256Finish() argument
438 VerifyOrExit((mbedtls_sha256_finish(context, aHash) == 0), error = kErrorFailed); in otPlatCryptoSha256Finish()
440 VerifyOrExit((mbedtls_sha256_finish_ret(context, aHash) == 0), error = kErrorFailed); in otPlatCryptoSha256Finish()
560 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaSign() argument
593 …edtls_ecdsa_sign_det_ext(&ecdsa.MBEDTLS_PRIVATE(grp), &r, &s, &ecdsa.MBEDTLS_PRIVATE(d), aHash->m8, in otPlatCryptoEcdsaSign()
596 …= mbedtls_ecdsa_sign_det(&ecdsa.MBEDTLS_PRIVATE(grp), &r, &s, &ecdsa.MBEDTLS_PRIVATE(d), aHash->m8, in otPlatCryptoEcdsaSign()
619 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaVerify() argument
649 …ret = mbedtls_ecdsa_verify(&ecdsa.MBEDTLS_PRIVATE(grp), aHash->m8, Sha256::Hash::kSize, &ecdsa.MBE… in otPlatCryptoEcdsaVerify()
775 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaSign() argument
779 OT_UNUSED_VARIABLE(aHash); in otPlatCryptoEcdsaSign()
[all …]
Dhmac_sha256.cpp59 void HmacSha256::Finish(Hash &aHash) in Finish() argument
61 SuccessOrAssert(otPlatCryptoHmacSha256Finish(&mContext, aHash.m8, Hash::kSize)); in Finish()
Dhmac_sha256.hpp123 void Finish(Hash &aHash);
Dsha256.hpp135 void Finish(Hash &aHash);
/openthread-latest/examples/platforms/simulation/
Dcrypto.c100 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaSignUsingKeyRef() argument
104 OT_UNUSED_VARIABLE(aHash); in otPlatCryptoEcdsaSignUsingKeyRef()
111 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaVerifyUsingKeyRef() argument
115 OT_UNUSED_VARIABLE(aHash); in otPlatCryptoEcdsaVerifyUsingKeyRef()
/openthread-latest/include/openthread/platform/
Dcrypto.h524 otError otPlatCryptoSha256Finish(otCryptoContext *aContext, uint8_t *aHash, uint16_t aHashSize);
587 const otPlatCryptoSha256Hash *aHash,
606 const otPlatCryptoSha256Hash *aHash,
627 const otPlatCryptoSha256Hash *aHash,
681 const otPlatCryptoSha256Hash *aHash,
/openthread-latest/src/core/api/
Dcrypto_api.cpp44 …ha256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash) in otCryptoHmacSha256() argument
52 hmac.Finish(AsCoreType(aHash)); in otCryptoHmacSha256()
/openthread-latest/include/openthread/
Dcrypto.h70 …a256(const otCryptoKey *aKey, const uint8_t *aBuf, uint16_t aBufLength, otCryptoSha256Hash *aHash);
/openthread-latest/tests/unit/
Dtest_platform.cpp554 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaSignUsingKeyRef() argument
558 OT_UNUSED_VARIABLE(aHash); in otPlatCryptoEcdsaSignUsingKeyRef()
565 const otPlatCryptoSha256Hash *aHash, in otPlatCryptoEcdsaVerifyUsingKeyRef() argument
569 OT_UNUSED_VARIABLE(aHash); in otPlatCryptoEcdsaVerifyUsingKeyRef()
/openthread-latest/src/core/meshcop/
Dtcat_agent.hpp368 …culateHash(uint64_t aChallenge, const char *aBuf, size_t aBufLen, Crypto::HmacSha256::Hash &aHash);
Dtcat_agent.cpp765 …lculateHash(uint64_t aChallenge, const char *aBuf, size_t aBufLen, Crypto::HmacSha256::Hash &aHash) in CalculateHash() argument
776 hmac.Finish(aHash); in CalculateHash()
/openthread-latest/src/core/net/
Dmdns.hpp1439 bool Matches(const Hash &aHash) const { return aHash == mHash; } in Matches()
1447 static void CalculateHash(const Message &aMessage, Hash &aHash);
Dmdns.cpp4404 void Core::TxMessageHistory::CalculateHash(const Message &aMessage, Hash &aHash) in CalculateHash() argument
4410 sha256.Finish(aHash); in CalculateHash()
/openthread-latest/src/core/border_router/
Drouting_manager.hpp1404 static void CalculateHash(const RouterAdvert::RxMessage &aRaMessage, Hash &aHash);
Drouting_manager.cpp3784 void RoutingManager::TxRaInfo::CalculateHash(const RouterAdvert::RxMessage &aRaMessage, Hash &aHash) in CalculateHash() argument
3795 sha256.Finish(aHash); in CalculateHash()