Searched refs:hmac (Results 1 – 3 of 3) sorted by relevance
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/ |
D | HmacKeyManagerTest.java | 48 byte[] hmac = generateHmac(); in testGenerateAndVerifyHmac() 51 mHashAlgorithm, mImageHash, hmac)); in testGenerateAndVerifyHmac() 56 byte[] hmac = generateHmac(); in testVerifyHmac_differentSalt() 60 mHashAlgorithm, mImageHash, hmac)); in testVerifyHmac_differentSalt() 65 byte[] hmac = generateHmac(); in testVerifyHmac_differentTimestamp() 68 mHashAlgorithm, mImageHash, hmac)); in testVerifyHmac_differentTimestamp() 73 byte[] hmac = generateHmac(); in testVerifyHmac_differentBounds() 77 mHashAlgorithm, mImageHash, hmac)); in testVerifyHmac_differentBounds() 82 byte[] hmac = generateHmac(); in testVerifyHmac_differentHashAlgorithm() 85 2 /* hashAlgorithm */, mImageHash, hmac)); in testVerifyHmac_differentHashAlgorithm() [all …]
|
/packages/modules/ExtServices/java/src/android/ext/services/displayhash/ |
D | HmacKeyManager.java | 59 int hashAlgorithm, byte[] imageHash, byte[] hmac) { in verifyHmac() argument 60 if (hmac == null || hmac.length != 32) { in verifyHmac() 66 return Arrays.equals(hmac, calculatedHmac); in verifyHmac()
|
D | DisplayHashingServiceImpl.java | 92 byte[] hmac = mHmacKeyManager.generateHmac(salt, timestamp, bounds, hashAlgorithmIndex, in onGenerateDisplayHash() 95 new DisplayHash(timestamp, bounds, hashAlgorithm, imageHash, hmac)); in onGenerateDisplayHash()
|