|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.pbe.AbstractEncryptionScheme
edu.vt.middleware.crypt.pbe.PBES1EncryptionScheme
public class PBES1EncryptionScheme
Implements the PBES1 encryption scheme defined in PKCS#5v2.
| Field Summary | |
|---|---|
static int |
IV_LENGTH
Number of bytes (octets) in IV. |
static int |
KEY_LENGTH
Number of bytes (octets) in derived key. |
| Fields inherited from class edu.vt.middleware.crypt.pbe.AbstractEncryptionScheme |
|---|
cipher |
| Constructor Summary | |
|---|---|
PBES1EncryptionScheme(PBES1Algorithm alg,
PBEParameter params)
Creates a new instance with the given parameters. |
|
PBES1EncryptionScheme(SymmetricAlgorithm alg,
DigestAlgorithm digest,
PBEParameter params)
Creates a new instance with the given parameters. |
|
| Method Summary | |
|---|---|
protected void |
initCipher(char[] password)
Initializes the cipher with the given PBE derived key bytes. |
| Methods inherited from class edu.vt.middleware.crypt.pbe.AbstractEncryptionScheme |
|---|
decrypt, decrypt, encrypt, encrypt, setCipher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int KEY_LENGTH
public static final int IV_LENGTH
| Constructor Detail |
|---|
public PBES1EncryptionScheme(PBES1Algorithm alg,
PBEParameter params)
alg - Describes hash/algorithm pair suitable for PBES1 scheme.params - Key generation function salt and iteration count.
public PBES1EncryptionScheme(SymmetricAlgorithm alg,
DigestAlgorithm digest,
PBEParameter params)
alg - Symmetric algorithm used for encryption/decryption.digest - Key generation function digest.params - Key generation function salt and iteration count.| Method Detail |
|---|
protected void initCipher(char[] password)
initCipher in class AbstractEncryptionSchemepassword - PBE password.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||