equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2003-2009 Sun Microsystems, Inc. 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. Sun designates this |
7 * published by the Free Software Foundation. Sun designates this |
43 // internal CipherCore & RC2Crypt objects which do the real work. |
43 // internal CipherCore & RC2Crypt objects which do the real work. |
44 private final CipherCore core; |
44 private final CipherCore core; |
45 private final RC2Crypt embeddedCipher; |
45 private final RC2Crypt embeddedCipher; |
46 |
46 |
47 public RC2Cipher() { |
47 public RC2Cipher() { |
48 SunJCE.ensureIntegrity(getClass()); |
|
49 embeddedCipher = new RC2Crypt(); |
48 embeddedCipher = new RC2Crypt(); |
50 core = new CipherCore(embeddedCipher, 8); |
49 core = new CipherCore(embeddedCipher, 8); |
51 } |
50 } |
52 |
51 |
53 protected void engineSetMode(String mode) |
52 protected void engineSetMode(String mode) |