Home
last modified time | relevance | path

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

/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.java1043 String macAlgorithm, final byte[] ikm, final byte[] salt, final byte[] info, int size) { in computeHkdf() argument
1046 mac = Mac.getInstance(macAlgorithm); in computeHkdf()
1048 throw new RuntimeException("No such algorithm: " + macAlgorithm, e); in computeHkdf()
1058 mac.init(new SecretKeySpec(new byte[mac.getMacLength()], macAlgorithm)); in computeHkdf()
1060 mac.init(new SecretKeySpec(salt, macAlgorithm)); in computeHkdf()
1066 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()