Package org.cryptacular.pbe
Class PBES1EncryptionScheme
java.lang.Object
org.cryptacular.pbe.AbstractEncryptionScheme
org.cryptacular.pbe.PBES1EncryptionScheme
- All Implemented Interfaces:
EncryptionScheme
Implements the PBES1 encryption scheme defined in PKCS#5v2.
- Version:
- $Revision: 2744 $
- Author:
- Middleware Services
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Number of bits IV.static final int
Number of bits in derived key. -
Constructor Summary
ConstructorsConstructorDescriptionPBES1EncryptionScheme
(PBES1Algorithm alg, org.bouncycastle.asn1.pkcs.PBEParameter params, char[] password) Creates a new instance with the given parameters. -
Method Summary
Methods inherited from class org.cryptacular.pbe.AbstractEncryptionScheme
decrypt, decrypt, encrypt, encrypt, setCipher, setCipherParameters
-
Field Details
-
KEY_LENGTH
public static final int KEY_LENGTHNumber of bits in derived key.- See Also:
-
IV_LENGTH
public static final int IV_LENGTHNumber of bits IV.- See Also:
-
-
Constructor Details
-
PBES1EncryptionScheme
public PBES1EncryptionScheme(PBES1Algorithm alg, org.bouncycastle.asn1.pkcs.PBEParameter params, char[] password) Creates a new instance with the given parameters.- Parameters:
alg
- Describes hash/algorithm pair suitable for PBES1 scheme.params
- Key generation function salt and iteration count.password
- Password used to derive key.
-