Lines Matching defs:AADLength
55 private final int AADLength;
63 * @param AADLength AAD length
66 String padding, int keyStrength, int textLength, int AADLength)
77 this.AADLength = AADLength;
84 for (int AADLength : AAD_LENGTHS) {
89 AADLength, offset);
100 String padding, int keyLength, int textLength, int AADLength,
103 + textLength + " text lenght; " + AADLength + " AAD length; "
111 padding, keyLength, textLength, AADLength);
140 byte[] AAD = Helper.generateBytes(AADLength);
160 int outputBufSize = AADLength + outputLength + offset * 2;
165 runGCMWithSameArray(Cipher.ENCRYPT_MODE, AAD_and_text, AADLength + offset,
169 runGCMWithSameArray(Cipher.DECRYPT_MODE, AAD_and_text, AADLength + offset,
179 byte[] AAD = Helper.generateBytes(AADLength);
180 ByteBuffer AAD_Buf = ByteBuffer.allocate(AADLength);
215 int bufSize = AADLength + offset + outputLength;
225 AAD_and_Text_Buf.limit(AADLength + offset + textLength + tagLength);
273 cipher.updateAAD(array, 0, AADLength);
278 anotherCipher.updateAAD(array, 0, AADLength);
353 buffer.limit(AADLength);
355 buffer.limit(AADLength + txtOffset + length);
356 buffer.position(AADLength + txtOffset);
363 buffer.limit(AADLength);
365 buffer.limit(AADLength + txtOffset + length);
366 buffer.position(AADLength + txtOffset);
370 buf2.limit(AADLength + txtOffset + anotherCipher.getOutputSize(length));
372 buf2.position(AADLength + txtOffset);
373 buf2.limit(AADLength + txtOffset + dataProcessed2);