jdk/src/share/classes/com/sun/crypto/provider/RC2Cipher.java
changeset 3353 ddbd63234844
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3333:111dede48a15 3353:ddbd63234844
     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)