Searched refs:hmac (Results 1 – 10 of 10) sorted by relevance
/system/keymaster/tests/ |
D | hmac_test.cpp | 65 HmacSha256 hmac; in TEST() local 68 ASSERT_TRUE(hmac.Init(key_buffer)); in TEST() 75 EXPECT_TRUE(hmac.Verify(data_buffer, digest_buffer)); in TEST() 79 EXPECT_FALSE(hmac.Verify(data_buffer, digest_buffer)); in TEST()
|
/system/security/keystore/include/keystore/ |
D | keystore_hidl_support.h | 89 static_assert(std::is_same<decltype(token.hmac), in authToken2HidlVec() 107 pos = std::copy(token.hmac.data(), token.hmac.data() + token.hmac.size(), pos); in authToken2HidlVec() 121 static_assert(std::is_same<decltype(token.hmac), in hidlVec2Km3AuthToken() 139 pos = std::copy(pos, pos + token.hmac.size(), &token.hmac[0]); in hidlVec2Km3AuthToken()
|
/system/hwservicemanager/ |
D | TokenManager.cpp | 131 std::array<uint8_t, EVP_MAX_MD_SIZE> hmac; in generateToken() local 137 hmac.data(), &hmacSize); in generateToken() 140 hmacOut != hmac.data()) { in generateToken() 146 const hidl_vec<uint8_t> &token = makeToken(id, hmac.data(), hmacSize); in generateToken() 177 hidl_vec<uint8_t> TokenManager::makeToken(const uint64_t id, const uint8_t *hmac, uint64_t hmacSize… in makeToken() argument 182 memcpy(token.data() + sizeof(id), hmac, hmacSize); in makeToken()
|
D | TokenManager.h | 57 static hidl_vec<uint8_t> makeToken(const uint64_t id, const uint8_t *hmac, uint64_t hmacSize);
|
/system/keymaster/km_openssl/ |
D | hkdf.cpp | 68 HmacSha256 hmac; in GenerateKey() local 69 result = hmac.Init(pseudo_random_key.get(), digest_size_); in GenerateKey() 83 result = hmac.Sign(buf.get(), block_input_len, digest.get(), digest_size_); in GenerateKey()
|
/system/keymaster/ng/include/ |
D | keystore_hidl_support.h | 105 std::is_same<decltype(token.hmac), ::android::hardware::hidl_array<uint8_t, 32>>::value, in authToken2HidlVec() 122 pos = std::copy(token.hmac.data(), token.hmac.data() + token.hmac.size(), pos); in authToken2HidlVec()
|
/system/gatekeeper/ |
D | gatekeeper.cpp | 250 uint32_t hash_len = (uint32_t)((uint8_t *)&token->hmac - (uint8_t *)token); in MintAuthToken() 251 ComputeSignature(token->hmac, sizeof(token->hmac), auth_token_key, key_len, in MintAuthToken() 254 memset(token->hmac, 0, sizeof(token->hmac)); in MintAuthToken()
|
/system/keymaster/key_blob_utils/ |
D | integrity_assured_key_blob.cpp | 52 const AuthorizationSet& hidden, uint8_t hmac[HMAC_SIZE]) { in ComputeHmac() 74 memcpy(hmac, tmp, min(HMAC_SIZE, tmp_len)); in ComputeHmac()
|
/system/keymaster/ |
D | Makefile | 95 km_openssl/hmac.cpp \ 220 km_openssl/hmac.o \ 242 km_openssl/hmac.o \ 295 km_openssl/hmac.o \
|
D | Android.bp | 94 "km_openssl/hmac.cpp",
|