Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DMacTest.java217 Mac mac = Mac.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider() local
218 mac.init(key); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
219 assertSame(provider, mac.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProvider()
234 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedForEmptyMessage() local
235 mac.init(key); in testMacGeneratedForEmptyMessage()
236 byte[] macBytes = mac.doFinal(); in testMacGeneratedForEmptyMessage()
255 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore() local
256 mac.init(key); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
258 byte[] macBytes = mac.doFinal(message); in testMacGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
277 Mac mac = Mac.getInstance(algorithm, provider); in testMacGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider() local
[all …]
DAndroidKeyStoreTest.java2317 Mac mac = Mac.getInstance(key1.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_HMAC() local
2318 mac.init(keystoreKey1); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2322 mac.doFinal(message)); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2324 mac = Mac.getInstance(key2.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2325 mac.init(keystoreKey2); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
2329 mac.doFinal(message)); in testKeyStore_LargeNumberOfKeysSupported_HMAC()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DEnrollmentSpecificIdTest.java171 Mac mac = null; in computeHkdf() local
173 mac = Mac.getInstance(macAlgorithm); in computeHkdf()
177 if (size > 255 * mac.getMacLength()) { in computeHkdf()
185 mac.init(new SecretKeySpec(new byte[mac.getMacLength()], macAlgorithm)); in computeHkdf()
187 mac.init(new SecretKeySpec(salt, macAlgorithm)); in computeHkdf()
189 byte[] prk = mac.doFinal(ikm); in computeHkdf()
193 mac.init(new SecretKeySpec(prk, macAlgorithm)); in computeHkdf()
196 mac.update(digest); in computeHkdf()
197 mac.update(info); in computeHkdf()
198 mac.update((byte) ctr); in computeHkdf()
[all …]
/cts/tests/tests/database/src/android/database/cts/
DAbstractCursor_SelfContentObserverTest.java24 MockAbstractCursor mac = new MockAbstractCursor(); in testConstructor() local
25 mac.getMockSelfContentObserver(); in testConstructor()
29 MockAbstractCursor mac = new MockAbstractCursor(); in testDeliverSelfNotifications() local
30 MockAbstractCursor.MockSelfContentObserver msc = mac.getMockSelfContentObserver(); in testDeliverSelfNotifications()
/cts/tests/tests/wifi/src/android/net/wifi/aware/cts/
DTestUtils.java46 MacWrapper(byte[] mac) { in MacWrapper() argument
47 mMac = mac; in MacWrapper()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/
DUtils.java113 Mac mac = Mac.getInstance("HmacSHA256"); in initMac() local
114 mac.init(secretKey); in initMac()
115 return mac; in initMac()
/cts/tests/tests/identity/src/android/security/identity/cts/
DUtil.java721 byte[] mac = null; in coseMac0()
725 mac = m.doFinal(); in coseMac0()
736 array.add(mac); in coseMac0()
1079 Mac mac = null; in computeHkdf() local
1081 mac = Mac.getInstance(macAlgorithm); in computeHkdf()
1085 if (size > 255 * mac.getMacLength()) { in computeHkdf()
1093 mac.init(new SecretKeySpec(new byte[mac.getMacLength()], macAlgorithm)); in computeHkdf()
1095 mac.init(new SecretKeySpec(salt, macAlgorithm)); in computeHkdf()
1097 byte[] prk = mac.doFinal(ikm); in computeHkdf()
1101 mac.init(new SecretKeySpec(prk, macAlgorithm)); in computeHkdf()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerService.java167 String mac = result.getDevice().getAddress(); in onScanResult() local
186 } else if (!mOldMac.equals(mac)) { in onScanResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDiscoveryBaseTestCase.java123 byte[] mac = identityL.waitForMac(); in executeAttach()
124 if (mac == null) { in executeAttach()
129 mMyMacAddress = MacAddress.fromBytes(mac); in executeAttach()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/
DCallbackUtils.java98 public void onIdentityChanged(byte[] mac) { in onIdentityChanged() argument
103 mMac = mac; in onIdentityChanged()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountManagerTest.java3435 byte[] mac = new byte[] {
3442 sessionBundle.putByteArray(KEY_MAC, mac);
3465 byte[] mac = new byte[] {};
3467 sessionBundle.putByteArray(KEY_MAC, mac);
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiManagerTest.java2814 MacAddress mac = MacAddress.fromString(macAddresses[0]); in testGetFactoryMacAddresses() local
2815 assertNotEquals(WifiInfo.DEFAULT_MAC_ADDRESS, mac); in testGetFactoryMacAddresses()
2816 assertFalse(MacAddressUtils.isMulticastAddress(mac)); in testGetFactoryMacAddresses()