Lines Matching defs:mac
8 * MAC.
13 public final class MAC
15 Digest mac;
44 public MAC(String type, byte[] key)
48 mac = new HMAC(new SHA1(), key, 20);
52 mac = new HMAC(new SHA1(), key, 12);
56 mac = new HMAC(new MD5(), key, 16);
60 mac = new HMAC(new MD5(), key, 12);
65 size = mac.getDigestLength();
70 mac.reset();
71 mac.update((byte) (seq >> 24));
72 mac.update((byte) (seq >> 16));
73 mac.update((byte) (seq >> 8));
74 mac.update((byte) (seq));
79 mac.update(packetdata, off, len);
84 mac.digest(out, off);