Searched refs:Mac (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/javax/crypto/
H A DMac.java36 public class Mac implements Cloneable { class in inherits:Cloneable
39 private static final Engine ENGINE = new Engine("Mac");
50 // Store Mac state (initialized or not initialized)
54 * Creates a new {@code Mac} instance.
63 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { method in class:Mac
80 * Returns the provider of this {@code Mac} instance.
82 * @return the provider of this {@code Mac} instance.
89 * Creates a new {@code Mac} instance that provides the specified MAC
94 * @return the new {@code Mac} instance.
101 public static final Mac getInstanc
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DMacThread.java18 import javax.crypto.Mac;
39 Mac m = Mac.getInstance(algName);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DMacTest.java35 import javax.crypto.Mac;
51 * Tests for Mac class constructors and methods
56 public static final String srvMac = "Mac";
66 private static final String NotSupportedMsg = "There is no suitable provider for Mac";
92 private Mac [] createMacs() {
98 Mac m [] = new Mac[3];
99 m[0] = Mac.getInstance(defaultAlgorithm);
100 m[1] = Mac.getInstance(defaultAlgorithm, defaultProvider);
101 m[2] = Mac
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DPRF.java24 import javax.crypto.Mac;
36 private static Mac md5_mac;
37 private static Mac sha_mac;
45 md5_mac = Mac.getInstance("HmacMD5");
46 sha_mac = Mac.getInstance("HmacSHA1");
H A DConnectionStateTLS.java23 import javax.crypto.Mac;
65 private final Mac encMac;
66 private final Mac decMac;
214 encMac = Mac.getInstance(macName);
215 decMac = Mac.getInstance(macName);
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
H A DCipherSuiteTest.java24 import javax.crypto.Mac;
86 assertNotNull(name, Mac.getInstance(hmacName));

Completed in 219 milliseconds