Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DEnrollmentSpecificIdTest.java144 @NonNull String macAlgorithm, @NonNull final byte[] ikm, @NonNull final byte[] salt, in computeHkdf()
148 mac = Mac.getInstance(macAlgorithm); in computeHkdf()
150 throw new RuntimeException("No such algorithm: " + macAlgorithm, e); in computeHkdf()
160 mac.init(new SecretKeySpec(new byte[mac.getMacLength()], macAlgorithm)); in computeHkdf()
162 mac.init(new SecretKeySpec(salt, macAlgorithm)); in computeHkdf()
168 mac.init(new SecretKeySpec(prk, macAlgorithm)); in computeHkdf()
/cts/tests/tests/identity/src/android/security/identity/cts/
DHkdfTest.java191 private String computeHkdfHex(String macAlgorithm, String ikmHex, String saltHex, in computeHkdfHex() argument
195 Util.computeHkdf(macAlgorithm, hexDecode(ikmHex), hexDecode(saltHex), in computeHkdfHex()
DUtil.java1078 String macAlgorithm, final byte[] ikm, final byte[] salt, final byte[] info, int size) { in computeHkdf() argument
1081 mac = Mac.getInstance(macAlgorithm); in computeHkdf()
1083 throw new RuntimeException("No such algorithm: " + macAlgorithm, e); in computeHkdf()
1093 mac.init(new SecretKeySpec(new byte[mac.getMacLength()], macAlgorithm)); in computeHkdf()
1095 mac.init(new SecretKeySpec(salt, macAlgorithm)); in computeHkdf()
1101 mac.init(new SecretKeySpec(prk, macAlgorithm)); in computeHkdf()
/cts/tests/tests/keystore/src/android/keystore/cts/
DMacTest.java549 String macAlgorithm, String keyAlgorithm, KeyProtection keyProtection) in assertInitSucceeds() argument
552 Mac mac = Mac.getInstance(macAlgorithm); in assertInitSucceeds()
562 String macAlgorithm, String keyAlgorithm, KeyProtection keyProtection) in assertInitThrowsInvalidKeyException() argument
565 Mac mac = Mac.getInstance(macAlgorithm); in assertInitThrowsInvalidKeyException()
568 fail("InvalidKeyException should have been thrown. MAC algorithm: " + macAlgorithm in assertInitThrowsInvalidKeyException()