For the latest news and information visit
The GNU Crypto project

gnu.crypto.jce.cipher
Class PBES2

java.lang.Object
  extended by javax.crypto.CipherSpi
      extended by gnu.crypto.jce.cipher.CipherAdapter
          extended by gnu.crypto.jce.cipher.PBES2
Direct Known Subclasses:
PBES2.HMacHaval, PBES2.HMacMD2, PBES2.HMacMD4, PBES2.HMacMD5, PBES2.HMacRipeMD128, PBES2.HMacRipeMD160, PBES2.HMacSHA1, PBES2.HMacSHA256, PBES2.HMacSHA384, PBES2.HMacSHA512, PBES2.HMacTiger, PBES2.HMacWhirlpool

public abstract class PBES2
extends CipherAdapter

.

Version:
$Revision: 1.3 $

Nested Class Summary
static class PBES2.HMacHaval
           
static class PBES2.HMacMD2
           
static class PBES2.HMacMD4
           
static class PBES2.HMacMD5
           
static class PBES2.HMacRipeMD128
           
static class PBES2.HMacRipeMD160
           
static class PBES2.HMacSHA1
           
static class PBES2.HMacSHA256
           
static class PBES2.HMacSHA384
           
static class PBES2.HMacSHA512
           
static class PBES2.HMacTiger
           
static class PBES2.HMacWhirlpool
           
 
Field Summary
protected  String macName
          The HMac (PRF) algorithm name.
 
Fields inherited from class gnu.crypto.jce.cipher.CipherAdapter
attributes, blockLen, cipher, keyLen, mode, pad, partBlock, partLen
 
Constructor Summary
protected PBES2(String cipherName, int blockLen, String macName)
           
protected PBES2(String cipherName, String macName)
           
 
Method Summary
protected  void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
           
protected  void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
           
protected  void engineInit(int opmode, Key key, SecureRandom random)
           
 
Methods inherited from class gnu.crypto.jce.cipher.CipherAdapter
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineSetMode, engineSetPadding, engineUpdate, engineUpdate
 
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

macName

protected String macName
The HMac (PRF) algorithm name.

Constructor Detail

PBES2

protected PBES2(String cipherName,
                int blockLen,
                String macName)

PBES2

protected PBES2(String cipherName,
                String macName)
Method Detail

engineInit

protected void engineInit(int opmode,
                          Key key,
                          SecureRandom random)
                   throws InvalidKeyException
Overrides:
engineInit in class CipherAdapter
Throws:
InvalidKeyException

engineInit

protected void engineInit(int opmode,
                          Key key,
                          AlgorithmParameterSpec params,
                          SecureRandom random)
                   throws InvalidKeyException,
                          InvalidAlgorithmParameterException
Overrides:
engineInit in class CipherAdapter
Throws:
InvalidKeyException
InvalidAlgorithmParameterException

engineInit

protected void engineInit(int opmode,
                          Key key,
                          AlgorithmParameters params,
                          SecureRandom random)
                   throws InvalidKeyException,
                          InvalidAlgorithmParameterException
Overrides:
engineInit in class CipherAdapter
Throws:
InvalidKeyException
InvalidAlgorithmParameterException

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.