Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]
org.bouncycastle.crypto
abstract public class: PBEParametersGenerator [javadoc | source]
java.lang.Object
   org.bouncycastle.crypto.PBEParametersGenerator

Direct Known Subclasses:
    OpenSSLPBEParametersGenerator, PKCS5S1ParametersGenerator, OldPKCS12ParametersGenerator, PKCS5S2ParametersGenerator, PKCS12ParametersGenerator

super class for all Password Based Encryption (PBE) parameter generator classes.
Field Summary
protected  byte[] password     
protected  byte[] salt     
protected  int iterationCount     
Constructor:
 protected PBEParametersGenerator() 
Method from org.bouncycastle.crypto.PBEParametersGenerator Summary:
PKCS12PasswordToBytes,   PKCS5PasswordToBytes,   PKCS5PasswordToUTF8Bytes,   generateDerivedMacParameters,   generateDerivedParameters,   generateDerivedParameters,   getIterationCount,   getPassword,   getSalt,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.bouncycastle.crypto.PBEParametersGenerator Detail:
 public static byte[] PKCS12PasswordToBytes(char[] password) 
    converts a password to a byte array according to the scheme in PKCS12 (unicode, big endian, 2 zero pad bytes at the end).
 public static byte[] PKCS5PasswordToBytes(char[] password) 
    converts a password to a byte array according to the scheme in PKCS5 (ascii, no padding)
 public static byte[] PKCS5PasswordToUTF8Bytes(char[] password) 
    converts a password to a byte array according to the scheme in PKCS5 (UTF-8, no padding)
 abstract public CipherParameters generateDerivedMacParameters(int keySize)
    generate derived parameters for a key of length keySize, specifically for use with a MAC.
 abstract public CipherParameters generateDerivedParameters(int keySize)
    generate derived parameters for a key of length keySize.
 abstract public CipherParameters generateDerivedParameters(int keySize,
    int ivSize)
    generate derived parameters for a key of length keySize, and an initialisation vector (IV) of length ivSize.
 public int getIterationCount() 
    return the iteration count.
 public byte[] getPassword() 
    return the password byte array.
 public byte[] getSalt() 
    return the salt byte array.
 public  void init(byte[] password,
    byte[] salt,
    int iterationCount) 
    initialise the PBE generator.