Home
last modified time | relevance | path

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

/system/keymaster/key_blob_utils/
Dintegrity_assured_key_blob.cpp32 static const size_t HMAC_SIZE = 8; variable
51 const AuthorizationSet& hidden, uint8_t hmac[HMAC_SIZE]) { in ComputeHmac() argument
72 assert(tmp_len >= HMAC_SIZE); in ComputeHmac()
73 memcpy(hmac, tmp, min(HMAC_SIZE, tmp_len)); in ComputeHmac()
87 HMAC_SIZE; in SerializeIntegrityAssuredBlob()
109 if (p > end || p + HMAC_SIZE > end) in DeserializeIntegrityAssuredBlob()
112 uint8_t computed_hmac[HMAC_SIZE]; in DeserializeIntegrityAssuredBlob()
113 keymaster_error_t error = ComputeHmac(key_blob.begin(), key_blob.key_material_size - HMAC_SIZE, in DeserializeIntegrityAssuredBlob()
118 if (CRYPTO_memcmp(key_blob.end() - HMAC_SIZE, computed_hmac, HMAC_SIZE) != 0) in DeserializeIntegrityAssuredBlob()
130 const uint8_t* end = key_blob.end() - HMAC_SIZE; in DeserializeIntegrityAssuredBlob_NoHmacCheck()