Searched refs:AAD (Results 1 - 7 of 7) sorted by relevance

/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AEAD/
H A DEncrypt.java155 byte[] AAD = Helper.generateBytes(AADLength);
156 byte[] result = execute(Cipher.ENCRYPT_MODE, AAD, input, params);
157 result = execute(Cipher.DECRYPT_MODE, AAD, result, params);
198 * @param AAD additional data for AEAD operations
202 public byte[] execute(int mode, byte[] AAD, byte[] inputText, argument
211 cipher.updateAAD(AAD);
215 combination_1(outputTexts, mode, AAD, inputText, params);
216 combination_2(outputTexts, mode, AAD, inputText, params);
217 combination_3(outputTexts, mode, AAD, inputText, params);
218 combination_4(outputTexts, mode, AAD, inputTex
246 combination_1(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
267 combination_2(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
295 combination_3(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
316 combination_4(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
336 combination_5(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
357 combination_6(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
386 combination_7(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
408 combination_8(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
428 combination_9(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
459 combination_10(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
508 combination_11(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
552 combination_12(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
584 combination_13(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
623 combination_14(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
665 combination_15(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
715 combination_16(List<byte[]> results, int mode, byte[] AAD, byte[] plainText, AlgorithmParameters params) argument
[all...]
H A DGCMParameterSpecTest.java48 + " AAD length = %d\n offset = %d\n keylength = %d\n";
53 private final byte[] AAD; field in class:GCMParameterSpecTest
60 * Initialize IV, IV with offset, plain text, AAD and SecretKey
67 * @param AADLength AAD length
86 // prepare AAD
87 AAD = Helper.generateBytes(AADLength);
97 * length, AAD length and offset.
182 cipher.updateAAD(AAD);
208 cipher.updateAAD(AAD);
H A DSameBuffer.java63 * @param AADLength AAD length
103 + textLength + " text lenght; " + AADLength + " AAD length; "
115 * 1. AAD and text are placed in separated byte arrays
116 * 2. AAD and text are placed in the same byte array
117 * 3. AAD and text are placed in separated byte buffers
118 * 4. AAD and text are placed in the same byte buffer
129 * Run the test in case when AAD and text are placed in separated byte
140 byte[] AAD = Helper.generateBytes(AADLength);
143 runGCMWithSeparateArray(Cipher.ENCRYPT_MODE, AAD, inputText, offset * 2,
147 runGCMWithSeparateArray(Cipher.DECRYPT_MODE, AAD, inputTex
239 runGCMWithSeparateArray(int mode, byte[] AAD, byte[] text, int txtOffset, int lenght, int offset, AlgorithmParameters params) argument
[all...]
H A DWrongAAD.java43 * @summary Check if wrong or empty AAD is rejected
67 byte[] AAD = Helper.generateBytes(AAD_SIZE);
71 encryptCipher.updateAAD(AAD);
82 * initialized without AAD used for encryption.
86 // initialize it with empty AAD to get exception during decryption
96 + " initialized with AAD");
104 * initialized with some fake AAD.
107 System.out.println("decrypt with wrong AAD");
109 // initialize it with wrong AAD to get an exception during decryption
123 + " initialized with fake AAD");
[all...]
H A DReadWriteSkip.java61 final byte[] AAD; field in class:ReadWriteSkip
80 + ", AAD length = " + AADLength);
104 // init AAD
105 this.AAD = Helper.generateBytes(AADLength);
141 cipher.updateAAD(AAD);
/openjdk10/jdk/test/com/sun/crypto/provider/Cipher/AES/
H A DTestGCMKeyAndIvCheck.java44 private static final byte[] AAD = new byte[5]; field in class:TestGCMKeyAndIvCheck
50 c.updateAAD(AAD);
76 c.updateAAD(AAD);
97 c.updateAAD(AAD);
123 c.updateAAD(AAD);
131 c.updateAAD(AAD);
134 c.updateAAD(AAD);
142 c.updateAAD(AAD);
/openjdk10/jdk/test/com/oracle/security/ucrypto/
H A DTestGCMKeyAndIvCheck.java40 private static final byte[] AAD = new byte[5]; field in class:TestGCMKeyAndIvCheck
46 c.updateAAD(AAD);
82 c.updateAAD(AAD);
103 c.updateAAD(AAD);
133 c.updateAAD(AAD);
141 c.updateAAD(AAD);
144 c.updateAAD(AAD);
152 c.updateAAD(AAD);

Completed in 49 milliseconds