/openjdk10/jdk/test/com/sun/crypto/provider/CICO/PBEFunc/ |
H A D | CipherNCFuncTest.java | 50 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 D | Test4517355.java | 58 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 D | TestNonexpanding.java | 80 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 D | TestISO10126Padding.java | 68 byte[] cipherText = ci.doFinal(paddedData); 73 byte[] recovered = ci.doFinal(cipherText); 81 cipherText = ci.doFinal(data); 85 recovered = ci.doFinal(cipherText);
|
H A D | TestAESCipher.java | 99 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 D | Padding.java | 91 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 D | CTR.java | 95 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 D | TestKATForECB_VK.java | 721 byte[] cipherText = null; 726 cipherText = c.doFinal(plainText); 728 if (!Arrays.equals(cipherText, answer)) { 732 byte[] restored = c.doFinal(cipherText);
|
H A D | TestKATForECB_VT.java | 527 byte[] cipherText = null; 532 cipherText = c.doFinal(plainText); 534 if (!Arrays.equals(cipherText, answer)) { 539 byte[] restored = c.doFinal(cipherText);
|
H A D | TestKATForGCM.java | 61 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 D | TestKATForECB_IV.java | 98 byte[] cipherText = c.doFinal(plainText); 100 if (!Arrays.equals(cipherText, answer)) {
|
H A D | TestShortBuffer.java | 78 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 D | CTSMode.java | 161 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 D | TestRawRSACipher.java | 60 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 D | TestPKCS5PaddingError.java | 83 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 D | TestOAEPWithParams.java | 91 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 D | Dynamic.java | 149 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 D | TestAESOids.java | 151 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 D | GCMParameterSpecTest.java | 183 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 D | SecKFTranslateTest.java | 86 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 D | TestKATForGCM.java | 59 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 D | KeyWrapping.java | 64 byte[] cipherText = c2.doFinal(msg.getBytes()); 68 byte[] clearText = c2.doFinal(cipherText);
|
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/ |
H A D | TestCipher.java | 161 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 D | CounterMode.java | 169 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 D | TestCipherPBE.java | 98 byte[] cipherText = ci.doFinal(PLAIN_TEXT); 102 byte[] recoveredText = ci.doFinal(cipherText);
|