equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
191 // Save the original ciphertext blocks, so they can be |
191 // Save the original ciphertext blocks, so they can be |
192 // stored in the feedback register "r". |
192 // stored in the feedback register "r". |
193 // This is necessary because in this constellation, a |
193 // This is necessary because in this constellation, a |
194 // ciphertext block (or parts of it) will be overridden by |
194 // ciphertext block (or parts of it) will be overridden by |
195 // the plaintext result. |
195 // the plaintext result. |
196 cipherOrig = (byte[])cipher.clone(); |
196 cipherOrig = cipher.clone(); |
197 } |
197 } |
198 |
198 |
199 for (; cipherOffset < endIndex; |
199 for (; cipherOffset < endIndex; |
200 cipherOffset += blockSize, plainOffset += blockSize) { |
200 cipherOffset += blockSize, plainOffset += blockSize) { |
201 embeddedCipher.decryptBlock(cipher, cipherOffset, k, 0); |
201 embeddedCipher.decryptBlock(cipher, cipherOffset, k, 0); |