Searched refs:cipherText (Results 1 - 25 of 29) sorted by relevance

12

/openjdk10/jdk/test/com/sun/crypto/provider/CICO/PBEFunc/
H A DCipherNCFuncTest.java50 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
51 int offset = ci.update(plainText, 0, plainText.length, cipherText, 0);
52 ci.doFinal(cipherText, offset);
54 byte[] recoveredText = new byte[ci.getOutputSize(cipherText.length)];
55 int len = ci.doFinal(cipherText, 0, cipherText.length, recoveredText);
58 !TestUtilities.equalsBlock(plainText, cipherText, len) ||
61 "Test failed because plainText not equal to cipherText and revoveredText");
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AES/
H A DTest4517355.java58 byte[] cipherText = ci.doFinal(plainText);
70 int len = ci.doFinal(cipherText, 0, cipherText.length,
82 if (Arrays.equals(plainText, cipherText)) {
87 if ((cipherText.length/16)*16 != cipherText.length) {
H A DTestNonexpanding.java80 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
81 int offset = ci.update(plainText, 0, plainText.length, cipherText,
83 ci.doFinal(cipherText, offset);
86 if (!(plainText.length == cipherText.length)) {
91 int cipherTextLength = cipherText.length - spec.getTLen()
98 System.out.println("Cipher text length: " + cipherText.length);
H A DTestISO10126Padding.java68 byte[] cipherText = ci.doFinal(paddedData);
73 byte[] recovered = ci.doFinal(cipherText);
81 cipherText = ci.doFinal(data);
85 recovered = ci.doFinal(cipherText);
H A DTestAESCipher.java99 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
100 int offset = ci.update(plainText, 0, plainText.length, cipherText,
102 ci.doFinal(cipherText, offset);
117 byte[] recoveredText = new byte[ci.getOutputSize(cipherText.length)];
118 int len = ci.doFinal(cipherText, 0, cipherText.length,
H A DPadding.java91 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
93 cipherText, 0);
94 ci.doFinal(cipherText, offset);
109 byte[] recoveredText = new byte[ci.getOutputSize(cipherText.length)];
110 int len = ci.doFinal(cipherText, 0, cipherText.length,
H A DCTR.java95 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
97 cipherText, 0);
99 ci.doFinal(cipherText, offset);
114 byte[] recoveredText = new byte[ci.getOutputSize(cipherText.length)];
115 int len = ci.doFinal(cipherText, 0, cipherText.length,
H A DTestKATForECB_VK.java721 byte[] cipherText = null;
726 cipherText = c.doFinal(plainText);
728 if (!Arrays.equals(cipherText, answer)) {
732 byte[] restored = c.doFinal(cipherText);
H A DTestKATForECB_VT.java527 byte[] cipherText = null;
532 cipherText = c.doFinal(plainText);
534 if (!Arrays.equals(cipherText, answer)) {
539 byte[] restored = c.doFinal(cipherText);
H A DTestKATForGCM.java61 byte[] cipherText; field in class:TestKATForGCM.TestVector
71 this.cipherText = HexToBytes(ct);
278 int ctLen = testValues[i].cipherText.length;
279 if (!Arrays.equals(testValues[i].cipherText,
H A DTestKATForECB_IV.java98 byte[] cipherText = c.doFinal(plainText);
100 if (!Arrays.equals(cipherText, answer)) {
H A DTestShortBuffer.java78 byte[] cipherText = null;
86 cipherText = ci.doFinal(PLAINTEXT);
88 test.init(PLAINTEXT, cipherText);
95 test.init(cipherText, PLAINTEXT);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/CTS/
H A DCTSMode.java161 byte[] cipherText = CIPHER1[i];
164 if (Arrays.equals(cipherText, enc) == false) {
166 System.out.println("cipher: " + toString(cipherText));
171 byte[] dec = cipher.doFinal(cipherText);
173 System.out.println("cipher: " + toString(cipherText));
203 byte[] cipherText = new byte[plainText.length];
206 cipherText, 0);
209 cipherText, processed1);
241 new byte[cipher.getOutputSize(cipherText.length)];
242 processed1 = cipher.update(cipherText,
[all...]
/openjdk10/jdk/test/sun/security/pkcs11/Cipher/
H A DTestRawRSACipher.java60 byte[] plainText, cipherText, recoveredText;
71 cipherText = c1.doFinal(plainText);
72 recoveredText = c2.doFinal(cipherText);
79 cipherText = c2.doFinal(plainText);
80 recoveredText = c1.doFinal(cipherText);
H A DTestPKCS5PaddingError.java83 byte[] cipherText = c1.doFinal(plainText);
94 System.out.println("Testing with wrong cipherText length");
95 c2.doFinal(cipherText, 0, cipherText.length - 2);
106 cipherText[cipherText.length - 1]++;
107 c2.doFinal(cipherText);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/RSA/
H A DTestOAEPWithParams.java91 byte[] cipherText, recovered;
95 cipherText = c.doFinal(plainText);
99 recovered = c.doFinal(cipherText);
107 recovered = c.doFinal(cipherText);
115 recovered = c.doFinal(cipherText);
123 cipherText = c.doFinal(plainText);
128 recovered = c.doFinal(cipherText);
135 recovered = c.doFinal(cipherText);
143 recovered = c.doFinal(cipherText);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers/
H A DDynamic.java149 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
150 int offset = ci.update(plainText, 0, plainText.length, cipherText,
152 ci.doFinal(cipherText, offset);
155 byte[] recoveredText = new byte[ci.getOutputSize(cipherText.length)];
156 int len = ci.doFinal(cipherText, 0, cipherText.length,
/openjdk10/jdk/test/com/sun/crypto/provider/NSASuiteB/
H A DTestAESOids.java151 byte[] cipherText = new byte[algorithmCipher.getOutputSize(INPUT.length)];
153 cipherText, 0);
154 algorithmCipher.doFinal(cipherText, offset);
169 byte[] recoveredText = new byte[oidCipher.getOutputSize(cipherText.length)];
170 oidCipher.doFinal(cipherText, 0, cipherText.length, recoveredText);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AEAD/
H A DGCMParameterSpecTest.java183 byte[] cipherText = cipher.doFinal(data);
190 if (spec.getTLen() != (cipherText.length - data.length) * 8) {
194 return cipherText;
197 private byte[] recoverCipherText(byte[] cipherText, GCMParameterSpec spec) argument
209 return cipher.doFinal(cipherText);
/openjdk10/jdk/test/javax/crypto/SecretKeyFactory/
H A DSecKFTranslateTest.java86 byte[] cipherText = new byte[ci.getOutputSize(plainText.length)];
87 int offset = ci.update(plainText, 0, plainText.length, cipherText, 0);
88 ci.doFinal(cipherText, offset);
95 ci.doFinal(cipherText, 0, cipherText.length, recoveredText);
/openjdk10/jdk/test/com/oracle/security/ucrypto/
H A DTestKATForGCM.java59 byte[] cipherText; field in class:TestKATForGCM.TestVector
69 this.cipherText = HexToBytes(ct);
276 int ctLen = testValues[i].cipherText.length;
277 if (!Arrays.equals(testValues[i].cipherText,
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DKeyWrapping.java64 byte[] cipherText = c2.doFinal(msg.getBytes());
68 byte[] clearText = c2.doFinal(cipherText);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/
H A DTestCipher.java161 byte[] cipherText = ci.doFinal(INPUT_TEXT, ENC_OFFSET, TEXT_LEN);
170 cipherText, 0, cipherText.length)) {
183 byte[] recoveredText = ci.doFinal(cipherText, 0, cipherText.length);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/CTR/
H A DCounterMode.java169 byte[] cipherText = CIPHER[i];
172 if (Arrays.equals(cipherText, enc) == false) {
179 byte[] dec = cipher.doFinal(cipherText);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/PBE/
H A DTestCipherPBE.java98 byte[] cipherText = ci.doFinal(PLAIN_TEXT);
102 byte[] recoveredText = ci.doFinal(cipherText);

Completed in 197 milliseconds

12