Lines Matching defs:plaintext
73 protected abstract byte[] getHmac(byte[] key, byte[] plaintext)
81 * and plaintext to a length that's a
83 * (C1, newIV) = E(Ke, conf | plaintext | pad,
85 * H1 = HMAC(Ki, conf | plaintext | pad)
95 byte[] ivec, byte[] new_ivec, byte[] plaintext, int start, int len)
123 traceOutput("plaintext", plaintext, start, Math.min(len, 32));
130 // C1 = E(Ke, conf | plaintext | pad, oldivec)
138 "; plaintext = " + len + "; padding = " +
147 System.arraycopy(plaintext, start, toBeEncrypted,
181 // H1 = HMAC(Ki, conf | plaintext | pad)
211 byte[] ivec, byte[] plaintext, int start, int len)
219 traceOutput("plaintext", plaintext, start, Math.min(len, 32));
236 encCipher.doFinal(plaintext, 0, len, ciphertext, 0);
281 * @param ciphertext E(Ke, conf | plaintext | padding, ivec) | H1[1..h]
320 // Decrypt [confounder | plaintext | padding] (without checksum)
330 // decrypted = [confounder | plaintext | padding]
341 // H1 = HMAC(Ki, conf | plaintext | pad)
376 // [plaintext | padding]
377 byte[] plaintext = new byte[decrypted.length - blockSize];
378 System.arraycopy(decrypted, blockSize, plaintext,
379 0, plaintext.length);
380 return plaintext; // padding still there