Searched refs:mSalt (Results 1 – 2 of 2) sorted by relevance
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/ |
D | HmacKeyManagerTest.java | 32 private final byte[] mSalt = "SALT".getBytes(); field in HmacKeyManagerTest 50 assertTrue(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testGenerateAndVerifyHmac() 67 assertFalse(mHmacKeyManager.verifyHmac(mSalt, 2000 /* timestamp */, mBounds, in testVerifyHmac_differentTimestamp() 76 mHmacKeyManager.verifyHmac(mSalt, mTimestamp, new Rect(10, 10, 110, 210), in testVerifyHmac_differentBounds() 84 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_differentHashAlgorithm() 92 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_differentImageHash() 98 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_differentHmac() 104 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_invalidHmac() 107 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_invalidHmac() 112 byte[] hmac = mHmacKeyManager.generateHmac(mSalt, mTimestamp, mBounds, mHashAlgorithm, in generateHmac()
|
D | DisplayHashingServiceImplTest.java | 45 private final byte[] mSalt = "SALT".getBytes(); field in DisplayHashingServiceImplTest 62 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnGenerateAndOnVerifyDisplayHash() 67 VerifiedDisplayHash verifiedDisplayHash = mService.onVerifyDisplayHash(mSalt, in testOnGenerateAndOnVerifyDisplayHash() 87 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, null /* hashAlgorithm */, in testOnGenerateDisplayHash_invalidHashAlgorithm() 93 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, "fake hash", in testOnGenerateDisplayHash_invalidHashAlgorithm() 101 mService.onGenerateDisplayHash(mSalt, null /* buffer */, mBounds, mHashAlgorithm, in testOnGenerateDisplayHash_nullBuffer() 109 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnVerifyDisplayHash_nullSalt() 121 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnVerifyDisplayHash_nullDisplayHash() 126 VerifiedDisplayHash verifiedDisplayHash = mService.onVerifyDisplayHash(mSalt, in testOnVerifyDisplayHash_nullDisplayHash()
|