jdk/src/share/classes/com/sun/crypto/provider/PBEWithMD5AndTripleDESCipher.java
changeset 14405 e7fff80005c1
parent 5506 202f599c92aa
child 21278 ef8a3a2a72f2
equal deleted inserted replaced
14404:7a5587e58dd2 14405:e7fff80005c1
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2012, 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
    53  * @author Jan Luehe
    53  * @author Jan Luehe
    54  * @see javax.crypto.Cipher
    54  * @see javax.crypto.Cipher
    55  */
    55  */
    56 public final class PBEWithMD5AndTripleDESCipher extends CipherSpi {
    56 public final class PBEWithMD5AndTripleDESCipher extends CipherSpi {
    57 
    57 
    58     private PBECipherCore core;
    58     private PBES1Core core;
    59 
    59 
    60     /**
    60     /**
    61      * Creates an instance of this cipher, and initializes its mode (CBC) and
    61      * Creates an instance of this cipher, and initializes its mode (CBC) and
    62      * padding (PKCS5).
    62      * padding (PKCS5).
    63      *
    63      *
    68      */
    68      */
    69     public PBEWithMD5AndTripleDESCipher()
    69     public PBEWithMD5AndTripleDESCipher()
    70         throws NoSuchAlgorithmException, NoSuchPaddingException
    70         throws NoSuchAlgorithmException, NoSuchPaddingException
    71     {
    71     {
    72         // set the encapsulated cipher to do triple DES
    72         // set the encapsulated cipher to do triple DES
    73         core = new PBECipherCore("DESede");
    73         core = new PBES1Core("DESede");
    74     }
    74     }
    75 
    75 
    76     /**
    76     /**
    77      * Sets the mode of this cipher. This algorithm can only be run in CBC
    77      * Sets the mode of this cipher. This algorithm can only be run in CBC
    78      * mode.
    78      * mode.