|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.pbe.OpenSSLKeyGenerator
public class OpenSSLKeyGenerator
Implements a password generation function compatible with the enc operation of OpenSSL in PBE mode. The function is based on a variant of the PBKDF1 key generation function described in PKCS#5v2, but uses an invariant MD5 hash and a fixed iteration count of 1.
| Constructor Summary | |
|---|---|
OpenSSLKeyGenerator()
Performs key generation without a salt value. |
|
OpenSSLKeyGenerator(byte[] saltBytes)
Creates a new key generator with the given salt bytes. |
|
| Method Summary | |
|---|---|
byte[] |
generate(char[] password,
int size)
Generates a symmetric key from a password for use in password-based encryption schemes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenSSLKeyGenerator()
public OpenSSLKeyGenerator(byte[] saltBytes)
saltBytes - Key generation function salt data.| Method Detail |
|---|
public byte[] generate(char[] password,
int size)
generate in interface KeyGeneratorpassword - Password used as basis for generated key.size - Size of generated key in bits, unless otherwise noted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||