Home
last modified time | relevance | path

Searched refs:Mac (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMacTest.java36 import javax.crypto.Mac;
89 Mac mac = Mac.getInstance(validAlgorithmsMac[i]);
107 private Mac[] createMacs() throws Exception { in createMacs()
112 ArrayList<Mac> macList = new ArrayList<Mac>(); in createMacs()
113 macList.add(Mac.getInstance(defaultAlgorithm)); in createMacs()
114 macList.add(Mac.getInstance(defaultAlgorithm, defaultProvider)); in createMacs()
115 macList.add(Mac.getInstance(defaultAlgorithm, defaultProviderName)); in createMacs()
123 macList.add(Mac.getInstance(defaultAlgorithm, p)); in createMacs()
125 return macList.toArray(new Mac[macList.size()]); in createMacs()
136 Mac.getInstance(null); in testMac01()
[all …]
/libcore/ojluni/src/main/java/javax/crypto/
DMac.java154 public class Mac implements Cloneable { class
205 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { in Mac() method in Mac
213 private Mac(String algorithm) { in Mac() method in Mac
258 public static final Mac getInstance(String algorithm) in getInstance()
270 return new Mac(algorithm); in getInstance()
310 public static final Mac getInstance(String algorithm, String provider) in getInstance()
316 return new Mac((MacSpi)instance.impl, instance.provider, algorithm); in getInstance()
347 public static final Mac getInstance(String algorithm, Provider provider) in getInstance()
353 return new Mac((MacSpi)instance.impl, instance.provider, algorithm); in getInstance()
774 Mac that = (Mac)super.clone(); in clone()
/libcore/luni/src/test/java/libcore/javax/crypto/
DMacTest.java25 import javax.crypto.Mac;
69 Mac c = Mac.getInstance("FOO"); in testMac_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
136 Mac mac = Mac.getInstance("PBEWITHHMACSHA" + shaVariant); in test_PBEWITHHMACSHA_Variants()
/libcore/ojluni/annotations/mmodule/javax/crypto/
DMac.annotated.java37 public class Mac implements java.lang.Cloneable { class
39 protected Mac(javax.crypto.MacSpi macSpi, java.security.Provider provider, java.lang.String algorit… in Mac() method in Mac
43 public static final javax.crypto.Mac getInstance(java.lang.String algorithm) throws java.security.N… in getInstance()
45 public static final javax.crypto.Mac getInstance(java.lang.String algorithm, java.lang.String provi… in getInstance()
47 public static final javax.crypto.Mac getInstance(java.lang.String algorithm, java.security.Provider… in getInstance()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DMacThread.java18 import javax.crypto.Mac;
39 Mac m = Mac.getInstance(algName); in test()
/libcore/luni/src/test/java/libcore/sun/security/jca/
DProvidersTest.java47 import javax.crypto.Mac;
108 return Mac.getInstance("Hmac/sha256"); in CONSCRYPT_ALGORITHMS.add()
457 Mac.getInstance(algorithm, bcProvider); in testRemovedBCAlgorithms()
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent-api.txt887 public class Mac implements java.lang.Cloneable {
/libcore/
Dopenjdk_java_files.bp1240 "ojluni/src/main/java/javax/crypto/Mac.java",