Home
last modified time | relevance | path

Searched refs:digest_buffer (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/
Dhmac_test.cpp72 Buffer digest_buffer(reinterpret_cast<uint8_t*>(digest_copy), sizeof(digest_copy)); in TEST() local
75 EXPECT_TRUE(hmac.Verify(data_buffer, digest_buffer)); in TEST()
78 digest_buffer.Reinitialize(reinterpret_cast<uint8_t*>(digest_copy), sizeof(digest_copy)); in TEST()
79 EXPECT_FALSE(hmac.Verify(data_buffer, digest_buffer)); in TEST()
/system/security/keystore/
Dkeystore_attestation_id.cpp47 std::vector<uint8_t> digest_buffer(SHA256_DIGEST_LENGTH); in signature2SHA256() local
48 SHA256(sig.data().data(), sig.data().size(), digest_buffer.data()); in signature2SHA256()
49 return digest_buffer; in signature2SHA256()
/system/tpm/attestation/common/
Dcrypto_utility_impl.cc303 auto digest_buffer = reinterpret_cast<const unsigned char*>(digest.data()); in VerifySignature() local
306 return (RSA_verify(NID_sha256, digest_buffer, digest.size(), signature_buffer, in VerifySignature()
/system/tpm/trunks/
Dtrunks_client_test.cc1052 auto digest_buffer = reinterpret_cast<const unsigned char*>(digest.data()); in VerifyRSASignature() local
1056 return (RSA_verify(NID_sha256, digest_buffer, digest.size(), signature_buffer, in VerifyRSASignature()