Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dhmac.cpp30 size_t HmacSha256::DigestLength() const { in DigestLength()
34 bool HmacSha256::Init(const Buffer& key) { in Init()
38 bool HmacSha256::Init(const uint8_t* key, size_t key_len) { in Init()
49 bool HmacSha256::Sign(const Buffer& data, uint8_t* out_digest, size_t digest_len) const { in Sign()
53 bool HmacSha256::Sign(const uint8_t* data, size_t data_len, uint8_t* out_digest, in Sign()
69 bool HmacSha256::Verify(const Buffer& data, const Buffer& digest) const { in Verify()
74 bool HmacSha256::Verify(const uint8_t* data, size_t data_len, const uint8_t* digest, in Verify()
Dhkdf.cpp31 HmacSha256 prk_hmac; in GenerateKey()
60 HmacSha256 hmac; in GenerateKey()
Dattestation_record.cpp968 HmacSha256 hmac; in generate_unique_id()
/system/keymaster/include/keymaster/km_openssl/
Dhmac.h25 class HmacSha256 {
27 HmacSha256(){}; in HmacSha256() function
/system/keymaster/include/keymaster/
Dremote_provisioning_context.h44 virtual std::optional<cppcose::HmacSha256>
/system/keymaster/tests/
Dhmac_test.cpp65 HmacSha256 hmac; in TEST()
/system/keymaster/include/keymaster/cppcose/
Dcppcose.h48 using HmacSha256 = std::array<uint8_t, SHA256_DIGEST_LENGTH>; variable
49 using HmacSha256Function = std::function<ErrMsgOr<HmacSha256>(const bytevec&)>;
284 ErrMsgOr<HmacSha256> generateHmacSha256(const bytevec& key, const bytevec& data);
286 ErrMsgOr<HmacSha256> generateCoseMac0Mac(HmacSha256Function macFunction, const bytevec& externalAad,
/system/keymaster/include/keymaster/contexts/
Dpure_soft_remote_provisioning_context.h46 std::optional<cppcose::HmacSha256>
/system/security/keystore2/src/fuzzers/
Dkeystore2_unsafe_fuzzer.rs56 HmacSha256 { enumerator
142 FuzzCommand::HmacSha256 { key_hmac, msg } => {
/system/keymaster/cppcose/
Dcppcose.cpp223 ErrMsgOr<HmacSha256> generateHmacSha256(const bytevec& key, const bytevec& data) { in generateHmacSha256()
224 HmacSha256 digest; in generateHmacSha256()
237 ErrMsgOr<HmacSha256> generateCoseMac0Mac(HmacSha256Function macFunction, const bytevec& externalAad, in generateCoseMac0Mac()
/system/keymaster/contexts/
Dpure_soft_remote_provisioning_context.cpp186 std::optional<cppcose::HmacSha256>
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp124 return [rem_prov_ctx](const cppcose::bytevec& input) -> cppcose::ErrMsgOr<cppcose::HmacSha256> { in getMacFunction()
1032 [&](const std::vector<uint8_t>& data) -> cppcose::ErrMsgOr<cppcose::HmacSha256> { in GetRootOfTrust()