Searched refs:HMAC_SIZE (Results 1 – 1 of 1) sorted by relevance
31 static const size_t HMAC_SIZE = 8; variable49 const AuthorizationSet& hidden, uint8_t hmac[HMAC_SIZE]) { in ComputeHmac() argument69 assert(tmp_len >= HMAC_SIZE); in ComputeHmac()70 memcpy(hmac, tmp, min(HMAC_SIZE, tmp_len)); in ComputeHmac()84 HMAC_SIZE; in SerializeIntegrityAssuredBlob()105 if (p > end || p + HMAC_SIZE > end) return KM_ERROR_INVALID_KEY_BLOB; in DeserializeIntegrityAssuredBlob()107 uint8_t computed_hmac[HMAC_SIZE]; in DeserializeIntegrityAssuredBlob()108 keymaster_error_t error = ComputeHmac(key_blob.begin(), key_blob.key_material_size - HMAC_SIZE, in DeserializeIntegrityAssuredBlob()112 if (CRYPTO_memcmp(key_blob.end() - HMAC_SIZE, computed_hmac, HMAC_SIZE) != 0) in DeserializeIntegrityAssuredBlob()124 const uint8_t* end = key_blob.end() - HMAC_SIZE; in DeserializeIntegrityAssuredBlob_NoHmacCheck()