Searched refs:MAC (Results 1 - 14 of 14) sorted by relevance

/openjdk9/jdk/src/java.base/share/classes/java/security/
H A DCryptoPrimitive.java57 MAC, enum constant in enum:CryptoPrimitive
/openjdk9/jdk/src/java.base/share/classes/sun/security/ssl/
H A DMAC.java41 * This class computes the "Message Authentication Code" (MAC) for each
44 * MAC is actually one of several keyed hashes, as associated with the cipher
50 final class MAC extends Authenticator { class in inherits:Authenticator
52 static final MAC TLS_NULL = new MAC(false);
54 // Value of the null MAC is fixed
57 // internal identifier for the MAC algorithm
63 MAC(boolean isDTLS) { method in class:MAC
71 * Set up, configured for the given MAC type and version.
73 MAC(MacAl method in class:MAC
[all...]
H A DInputRecord.java142 * Since MAC's doFinal() is called for every SSL/TLS packet, it's
143 * not necessary to do the same with MAC's.
387 (authenticator instanceof MAC) ? ((MAC)authenticator).MAClen() : 0;
410 // so we just send bad record MAC. We also need to make
411 // sure to always check the MAC to avoid a timing attack
422 if ((authenticator instanceof MAC) && (tagLen != 0)) {
423 MAC signer = (MAC)authenticator;
426 // Note that although it is not necessary, we run the same MAC
[all...]
H A DSSLSocketOutputRecord.java44 this.writeAuthenticator = MAC.TLS_NULL;
264 if (writeAuthenticator instanceof MAC) {
265 macLen = ((MAC)writeAuthenticator).MAClen();
362 if (writeAuthenticator instanceof MAC) {
363 macLen = ((MAC)writeAuthenticator).MAClen();
H A DOutputRecord.java170 * Since MAC's doFinal() is called for every SSL/TLS packet, it's
171 * not necessary to do the same with MAC's.
235 // "flip" but skip over header again, add MAC & encrypt
236 if (authenticator instanceof MAC) {
237 MAC signer = (MAC)authenticator;
242 * position was advanced to limit in MAC compute above.
332 // "flip" but skip over header again, add MAC & encrypt
334 if (authenticator instanceof MAC) {
335 MAC signe
[all...]
H A DSSLEngineOutputRecord.java50 this.writeAuthenticator = MAC.TLS_NULL;
152 if (writeAuthenticator instanceof MAC) {
153 macLen = ((MAC)writeAuthenticator).MAClen();
293 if (memo.encodeAuthenticator instanceof MAC) {
294 macLen = ((MAC)memo.encodeAuthenticator).MAClen();
421 if (memo.encodeAuthenticator instanceof MAC) {
422 macLen = ((MAC)memo.encodeAuthenticator).MAClen();
H A DDTLSOutputRecord.java55 this.writeAuthenticator = new MAC(true);
60 this.prevWriteAuthenticator = new MAC(true);
145 if (writeAuthenticator instanceof MAC) {
146 macLen = ((MAC)writeAuthenticator).MAClen();
220 if (memo.encodeAuthenticator instanceof MAC) {
221 macLen = ((MAC)memo.encodeAuthenticator).MAClen();
409 if (memo.encodeAuthenticator instanceof MAC) {
410 macLen = ((MAC)memo.encodeAuthenticator).MAClen();
H A DSSLEngineInputRecord.java50 this.readAuthenticator = MAC.TLS_NULL;
56 if (readAuthenticator instanceof MAC) {
57 macLen = ((MAC)readAuthenticator).MAClen();
H A DSSLSocketInputRecord.java57 this.readAuthenticator = MAC.TLS_NULL;
H A DDTLSInputRecord.java53 this.readAuthenticator = new MAC(true);
57 this.prevReadAuthenticator = new MAC(true);
91 if (readAuthenticator instanceof MAC) {
92 macLen = ((MAC)readAuthenticator).MAClen();
H A DCipherBox.java740 // a MAC tag, do a dummy constant-time padding check.
787 // a MAC tag, do a dummy constant-time padding check.
916 int tagLen = (authenticator instanceof MAC) ?
917 ((MAC)authenticator).MAClen() : 0;
1124 * MAC algorithm except the explicit IV size for TLS 1.1 or later.
1127 * tag size of the MAC algorithm.
H A DCipherSuite.java622 * An SSL/TLS key MAC algorithm.
624 * Also contains a factory method to obtain an initialized MAC
638 // size of the MAC value (and MAC key) in bytes
656 * Return an initialized MAC for this MacAlg. ProtocolVersion
657 * must either be SSL30 (SSLv3 custom MAC) or TLS10 (std. HMAC).
661 MAC newMac(ProtocolVersion protocolVersion, SecretKey secret)
663 return new MAC(this, protocolVersion, secret);
1085 * 3. Prefer the stronger MAC algorithm, in the order of SHA384,
1236 * 4. Prefer the stronger MAC algorith
[all...]
/openjdk9/jdk/test/javax/swing/UIManager/8136366/
H A DCreateLookAndFeelTest.java91 MAC("Mac OS X", isOSAvailable("mac")); enum constant in enum:CreateLookAndFeelTest.LAFTest
/openjdk9/jdk/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/
H A DSunPKCS11.java497 private final static String MAC = "Mac"; field in class:SunPKCS11
544 d(MAC, "HmacMD5", P11MAC,
546 d(MAC, "HmacSHA1", P11MAC,
549 d(MAC, "HmacSHA224", P11MAC,
552 d(MAC, "HmacSHA256", P11MAC,
555 d(MAC, "HmacSHA384", P11MAC,
558 d(MAC, "HmacSHA512", P11MAC,
561 d(MAC, "SslMacMD5", P11MAC,
563 d(MAC, "SslMacSHA1", P11MAC,
1026 } else if (type == MAC) {
[all...]

Completed in 122 milliseconds