Searched refs:plainOffset (Results 1 - 10 of 10) sorted by relevance

/openjdk9/jdk/src/java.base/share/classes/com/sun/crypto/provider/
H A DPCBC.java122 * <code>plainOffset</code> and ending at
123 * <code>(plainOffset + plainLen - 1)</code>, is encrypted.
128 * @param plainOffset the offset in <code>plain</code>
136 int encrypt(byte[] plain, int plainOffset, int plainLen, argument
143 int endIndex = plainOffset + plainLen;
145 for (; plainOffset < endIndex;
146 plainOffset += blockSize, cipherOffset += blockSize) {
148 k[i] ^= plain[i + plainOffset];
152 k[i] = (byte)(plain[i + plainOffset] ^ cipher[i + cipherOffset]);
165 * <code>plainOffset</cod
176 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DSymmetricCipher.java74 * <p>The input <code>plain</code>, starting at <code>plainOffset</code>
75 * and ending at <code>(plainOffset+blockSize-1)</code>, is encrypted.
80 * @param plainOffset the offset in <code>plain</code>
84 abstract void encryptBlock(byte[] plain, int plainOffset, argument
93 * <code>plainOffset</code>.
98 * @param plainOffset the offset in <code>plain</code>
101 byte[] plain, int plainOffset);
100 decryptBlock(byte[] cipher, int cipherOffset, byte[] plain, int plainOffset) argument
H A DCipherTextStealing.java72 * <code>plainOffset</code> and ending at
73 * <code>(plainOffset + len - 1)</code>, is encrypted.
82 * @param plainOffset the offset in <code>plain</code>
88 int encryptFinal(byte[] plain, int plainOffset, int plainLen, argument
95 encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
100 encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
113 encrypt(plain, plainOffset, newPlainLen, cipher,
115 plainOffset += newPlainLen;
124 tmp[i] = (byte) (plain[plainOffset+i] ^ r[i]);
133 (plain[plainOffset
165 decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DOutputFeedback.java135 * <code>plainOffset</code> and ending at
136 * <code>(plainOffset + plainLen - 1)</code>, is encrypted.
141 * @param plainOffset the offset in <code>plain</code>
149 int encrypt(byte[] plain, int plainOffset, int plainLen, argument
159 plainOffset += numBytes, cipherOffset += numBytes,
164 (byte)(k[i] ^ plain[i + plainOffset]);
178 * <code>plainOffset</code> and ending at
179 * <code>(plainOffset + plainLen - 1)</code>, is encrypted.
184 * @param plainOffset the offset in <code>plain</code>
190 int encryptFinal(byte[] plain, int plainOffset, in argument
209 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
215 decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DFeedbackCipher.java123 * <p>The input <code>plain</code>, starting at <code>plainOffset</code>
124 * and ending at <code>(plainOffset+plainLen-1)</code>, is encrypted.
132 * @param plainOffset the offset in <code>plain</code>
138 abstract int encrypt(byte[] plain, int plainOffset, int plainLen, argument
150 * @param plainOffset the offset in <code>plain</code>
156 int encryptFinal(byte[] plain, int plainOffset, int plainLen, argument
159 return encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
167 * <code>plainOffset</code>.
176 * @param plainOffset the offset in <code>plain</code>
180 byte[] plain, int plainOffset);
179 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
198 decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DCipherBlockChaining.java129 * <code>plainOffset</code> and ending at
130 * <code>(plainOffset + plainLen - 1)</code>, is encrypted.
135 * @param plainOffset the offset in <code>plain</code>
143 int encrypt(byte[] plain, int plainOffset, int plainLen, argument
149 cryptNullAndBoundsCheck(plain, plainOffset, plainLen);
151 return implEncrypt(plain, plainOffset, plainLen,
156 private int implEncrypt(byte[] plain, int plainOffset, int plainLen, argument
159 int endIndex = plainOffset + plainLen;
161 for (; plainOffset < endIndex;
162 plainOffset
194 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
206 implDecrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DCipherFeedback.java136 * <code>plainOffset</code> and ending at
137 * <code>(plainOffset + plainLen - 1)</code>, is encrypted.
142 * @param plainOffset the offset in <code>plain</code>
150 int encrypt(byte[] plain, int plainOffset, int plainLen, argument
160 plainOffset += numBytes, cipherOffset += numBytes,
168 (byte)(k[i] ^ plain[i + plainOffset]);
178 * <code>plainOffset</code> and ending at
179 * <code>(plainOffset + plainLen - 1)</code>, is encrypted.
184 * @param plainOffset the offset in <code>plain</code>
190 int encryptFinal(byte[] plain, int plainOffset, in argument
226 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
267 decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DDESedeCrypt.java103 * <code>plainOffset</code> and ending at
104 * <code>(plainOffset + blockSize - 1)</code>, is encrypted.
109 * @param plainOffset the offset in <code>plain</code>
113 void encryptBlock(byte[] plain, int plainOffset, argument
118 cipherBlock(plain, plainOffset, buf1, 0);
136 * <code>plainOffset</code>.
141 * @param plainOffset the offset in <code>plain</code>
144 byte[] plain, int plainOffset)
156 cipherBlock(buf2, 0, plain, plainOffset);
143 decryptBlock(byte[] cipher, int cipherOffset, byte[] plain, int plainOffset) argument
H A DBlowfishCrypt.java123 * <code>plainOffset</code> and ending at
124 * <code>(plainOffset + len - 1)</code>, is encrypted.
132 * @param plainOffset the offset in <code>plain</code>
137 void encryptBlock(byte[] plain, int plainOffset, argument
140 cipherBlock(plain, plainOffset, cipher, cipherOffset);
150 * <code>plainOffset</code>.
159 * @param plainOffset the offset in <code>plain</code>
162 byte[] plain, int plainOffset)
164 cipherBlock(cipher, cipherOffset, plain, plainOffset);
161 decryptBlock(byte[] cipher, int cipherOffset, byte[] plain, int plainOffset) argument
H A DDESCrypt.java545 * <code>plainOffset</code> and ending at
546 * <code>(plainOffset + len - 1)</code>, is encrypted.
554 * @param plainOffset the offset in <code>plain</code>
562 void encryptBlock(byte[] plain, int plainOffset, argument
565 cipherBlock(plain, plainOffset, cipher, cipherOffset);
575 * <code>plainOffset</code>.
584 * @param plainOffset the offset in <code>plain</code>
590 byte[] plain, int plainOffset)
592 cipherBlock(cipher, cipherOffset, plain, plainOffset);
589 decryptBlock(byte[] cipher, int cipherOffset, byte[] plain, int plainOffset) argument

Completed in 116 milliseconds