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

/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
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>
137 abstract void encrypt(byte[] plain, int plainOffset, int plainLen, argument
149 * @param plainOffset the offset in <code>plain</code>
154 void encryptFinal(byte[] plain, int plainOffset, int plainLen, argument
157 encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
165 * <code>plainOffset</code>.
174 * @param plainOffset the offset in <code>plain</code>
177 byte[] plain, int plainOffset);
176 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
194 decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DPCBC.java120 * <code>plainOffset</code> and ending at
121 * <code>(plainOffset + len - 1)</code>, is encrypted.
134 * @param plainOffset the offset in <code>plain</code>
139 void 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] ^= (byte)(plain[i+plainOffset]);
152 k[i] = (byte)(plain[i+plainOffset] ^ cipher[i+cipherOffset]);
164 * <code>plainOffset</cod
180 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 DCipherBlockChaining.java124 * <code>plainOffset</code> and ending at
125 * <code>(plainOffset + len - 1)</code>, is encrypted.
134 * @param plainOffset the offset in <code>plain</code>
139 void 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] = (byte)(plain[i+plainOffset] ^ r[i]);
162 * <code>plainOffset</code>.
176 * @param plainOffset th
182 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
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>
87 void encryptFinal(byte[] plain, int plainOffset, int plainLen, argument
94 encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
99 encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
112 encrypt(plain, plainOffset, newPlainLen, cipher,
114 plainOffset += newPlainLen;
123 tmp[i] = (byte) (plain[plainOffset+i] ^ r[i]);
132 (plain[plainOffset
162 decryptFinal(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DCipherFeedback.java135 * <code>plainOffset</code> and ending at
136 * <code>(plainOffset + len - 1)</code>, is encrypted.
149 * @param plainOffset the offset in <code>plain</code>
154 void encrypt(byte[] plain, int plainOffset, int plainLen, argument
164 plainOffset += numBytes, cipherOffset += numBytes,
169 (byte)(k[i] ^ plain[i+plainOffset]);
175 (byte)(k[i] ^ plain[i+plainOffset]);
179 plainOffset += numBytes, cipherOffset += numBytes,
185 (byte)(k[i] ^ plain[i+plainOffset]);
193 (byte)(k[i] ^ plain[i+plainOffset]);
222 decrypt(byte[] cipher, int cipherOffset, int cipherLen, byte[] plain, int plainOffset) argument
[all...]
H A DOutputFeedback.java134 * <code>plainOffset</code> and ending at
135 * <code>(plainOffset + len - 1)</code>, is encrypted.
148 * @param plainOffset the offset in <code>plain</code>
153 void encrypt(byte[] plain, int plainOffset, int plainLen, argument
163 plainOffset += numBytes, cipherOffset += numBytes,
168 (byte)(k[i] ^ plain[i+plainOffset]);
175 (byte)(k[i] ^ plain[i+plainOffset]);
180 plainOffset += numBytes, cipherOffset += numBytes,
185 (byte)(k[i] ^ plain[i+plainOffset]);
193 (byte)(k[i] ^ plain[i+plainOffset]);
223 decrypt(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 83 milliseconds