Home
last modified time | relevance | path

Searched refs:macAlg (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/sun/security/ssl/
DMAC.java62 private final MacAlg macAlg; field in MAC
88 macAlg = M_NULL; in MAC()
96 MAC(MacAlg macAlg, ProtocolVersion protocolVersion, SecretKey key) in MAC() argument
98 this.macAlg = macAlg; in MAC()
99 this.macSize = macAlg.size; in MAC()
104 if (macAlg == M_MD5) { in MAC()
106 } else if (macAlg == M_SHA) { in MAC()
108 } else if (macAlg == M_SHA256) { in MAC()
110 } else if (macAlg == M_SHA384) { in MAC()
113 throw new RuntimeException("Unknown Mac " + macAlg); in MAC()
[all …]
DSSLAlgorithmConstraints.java368 protected Set<String> decomposes(MacAlg macAlg) { in decomposes() argument
371 if (macAlg == CipherSuite.M_MD5) { in decomposes()
374 } else if (macAlg == CipherSuite.M_SHA) { in decomposes()
378 } else if (macAlg == CipherSuite.M_SHA256) { in decomposes()
382 } else if (macAlg == CipherSuite.M_SHA384) { in decomposes()
421 if (cipherSuite.macAlg != null) { in decomposes()
422 components.addAll(decomposes(cipherSuite.macAlg)); in decomposes()
DHandshaker.java706 MacAlg macAlg = cipherSuite.macAlg; in newReadMAC() local
709 mac = macAlg.newMac(protocolVersion, svrMacSecret); in newReadMAC()
712 mac = macAlg.newMac(protocolVersion, clntMacSecret); in newReadMAC()
722 MacAlg macAlg = cipherSuite.macAlg; in newWriteMAC() local
725 mac = macAlg.newMac(protocolVersion, clntMacSecret); in newWriteMAC()
728 mac = macAlg.newMac(protocolVersion, svrMacSecret); in newWriteMAC()
1158 int hashSize = cipherSuite.macAlg.size; in calculateConnectionKeys()
DCipherSuite.java110 final MacAlg macAlg; field in CipherSuite
139 macAlg = M_MD5; in CipherSuite()
141 macAlg = M_SHA; in CipherSuite()
143 macAlg = M_SHA256; in CipherSuite()
145 macAlg = M_SHA384; in CipherSuite()
147 macAlg = M_NULL; in CipherSuite()
149 macAlg = M_NULL; in CipherSuite()
174 this.macAlg = null; in CipherSuite()