Home
last modified time | relevance | path

Searched refs:HmacSha256 (Results 1 – 10 of 10) 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()
/system/keymaster/include/keymaster/km_openssl/
Dhmac.h25 class HmacSha256 {
27 HmacSha256(){}; in HmacSha256() function
/system/keymaster/include/keymaster/contexts/
Dpure_soft_remote_provisioning_context.h36 std::optional<cppcose::HmacSha256>
/system/keymaster/include/keymaster/cppcose/
Dcppcose.h40 using HmacSha256 = std::array<uint8_t, SHA256_DIGEST_LENGTH>; variable
41 using HmacSha256Function = std::function<ErrMsgOr<HmacSha256>(const bytevec&)>;
240 ErrMsgOr<HmacSha256> generateHmacSha256(const bytevec& key, const bytevec& data);
242 ErrMsgOr<HmacSha256> generateCoseMac0Mac(HmacSha256Function macFunction, const bytevec& externalAad,
/system/keymaster/include/keymaster/
Dremote_provisioning_context.h41 virtual std::optional<cppcose::HmacSha256>
/system/keymaster/tests/
Dhmac_test.cpp65 HmacSha256 hmac; in TEST()
/system/keymaster/contexts/
Dpure_soft_remote_provisioning_context.cpp124 std::optional<cppcose::HmacSha256>
/system/keymaster/cppcose/
Dcppcose.cpp56 ErrMsgOr<HmacSha256> generateHmacSha256(const bytevec& key, const bytevec& data) { in generateHmacSha256()
57 HmacSha256 digest; in generateHmacSha256()
70 ErrMsgOr<HmacSha256> generateCoseMac0Mac(HmacSha256Function macFunction, const bytevec& externalAad, in generateCoseMac0Mac()
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp120 return [rem_prov_ctx](const cppcose::bytevec& input) -> cppcose::ErrMsgOr<cppcose::HmacSha256> { in getMacFunction()