Home
last modified time | relevance | path

Searched refs:theMac (Results 1 – 22 of 22) sorted by relevance

/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/jdk/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/test/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/jdk/test/com/sun/crypto/provider/Cipher/PBE/
H A DPBMacBuffer.java114 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
115 theMac.init(key); in doTest()
118 if (!largeByteBufferTest(theMac)) { in doTest()
124 if (!emptyByteBufferTest(theMac)) { in doTest()
130 if (!nullByteBufferTest(theMac)) { in doTest()
151 theMac.update(buf); in largeByteBufferTest()
152 theMac.doFinal(); in largeByteBufferTest()
180 theMac.update(buf); in emptyByteBufferTest()
181 theMac.doFinal(); in emptyByteBufferTest()
195 theMac.update(buf); in nullByteBufferTest()
[all …]
H A DPBMacDoFinalVsUpdate.java120 Mac theMac = Mac.getInstance(theMacAlgo); in doTest() local
121 theMac.init(key); in doTest()
122 byte[] result1 = theMac.doFinal(plain); in doTest()
129 theMac.reset(); in doTest()
130 theMac.update(plain[0]); in doTest()
131 theMac.update(plain, 1, OFFSET - 1); in doTest()
132 byte[] result2 = theMac.doFinal(tail); in doTest()
/dports/java/bouncycastle15/crypto-169/core/src/main/java/org/bouncycastle/crypto/macs/
H A DZuc256Mac.java32 private final int[] theMac; field in Zuc256Mac
64 theMac = new int[numWords]; in Zuc256Mac()
107 for (int i = 0; i < theMac.length; i++) in initKeyStream()
109 theMac[i] = theEngine.createKeyStreamWord(); in initKeyStream()
183 for (int wordNo = 0; wordNo < theMac.length; wordNo++) in updateMac()
185 theMac[wordNo] ^= getKeyStreamWord(wordNo, bitNo); in updateMac()
239 for (int i = 0; i < theMac.length; i++) in doFinal()
241 Zuc256CoreEngine.encode32be(theMac[i], out, outOff + i * 4); //Integer.BYTES) in doFinal()
H A DZuc128Mac.java27 private int theMac; field in Zuc128Mac
97 theMac = 0; in initKeyStream()
155 theMac ^= getKeyStreamWord(bitNo); in updateMac()
219 theMac ^= getKeyStreamWord(theByteIndex * 8); //Byte.SIZE in doFinal()
220 theMac ^= getFinalWord(); in doFinal()
221 Zuc128CoreEngine.encode32be(theMac, out, outOff); in doFinal()