java.lang.Object | |
↳ | org.bouncycastle.crypto.PBEParametersGenerator |
Known Direct Subclasses |
super class for all Password Based Encryption (PBE) parameter generator classes.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
iterationCount | |||||||||||
password | |||||||||||
salt |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
base constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
converts a password to a byte array according to the scheme in
PKCS12 (unicode, big endian, 2 zero pad bytes at the end).
| |||||||||||
converts a password to a byte array according to the scheme in
PKCS5 (ascii, no padding)
| |||||||||||
converts a password to a byte array according to the scheme in
PKCS5 (UTF-8, no padding)
| |||||||||||
generate derived parameters for a key of length keySize, specifically
for use with a MAC.
| |||||||||||
generate derived parameters for a key of length keySize.
| |||||||||||
generate derived parameters for a key of length keySize, and
an initialisation vector (IV) of length ivSize.
| |||||||||||
return the iteration count.
| |||||||||||
return the password byte array.
| |||||||||||
return the salt byte array.
| |||||||||||
initialise the PBE generator.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
base constructor.
converts a password to a byte array according to the scheme in PKCS12 (unicode, big endian, 2 zero pad bytes at the end).
password | a character array representing the password. |
---|
converts a password to a byte array according to the scheme in PKCS5 (ascii, no padding)
password | a character array reqpresenting the password. |
---|
converts a password to a byte array according to the scheme in PKCS5 (UTF-8, no padding)
password | a character array reqpresenting the password. |
---|
generate derived parameters for a key of length keySize, specifically for use with a MAC.
keySize | the length, in bits, of the key required. |
---|
generate derived parameters for a key of length keySize.
keySize | the length, in bits, of the key required. |
---|
generate derived parameters for a key of length keySize, and an initialisation vector (IV) of length ivSize.
keySize | the length, in bits, of the key required. |
---|---|
ivSize | the length, in bits, of the iv required. |
return the iteration count.
return the password byte array.
return the salt byte array.
initialise the PBE generator.
password | the password converted into bytes (see below). |
---|---|
salt | the salt to be mixed with the password. |
iterationCount | the number of iterations the "mixing" function is to be applied for. |