|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.openpgp.operator.PGPKeyEncryptionMethodGenerator
org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator
org.bouncycastle.openpgp.operator.bc.BcPBEKeyEncryptionMethodGenerator
public class BcPBEKeyEncryptionMethodGenerator
A BC lightweight method generator for supporting PBE based encryption operations.
| Constructor Summary | |
|---|---|
BcPBEKeyEncryptionMethodGenerator(char[] passPhrase)
Create a PBE encryption method generator using the default SHA-1 digest calculator for key calculation. |
|
BcPBEKeyEncryptionMethodGenerator(char[] passPhrase,
int s2kCount)
Create a PBE encryption method generator using the default SHA-1 digest calculator and a S2K count other than the default of 0x60 for key calculation. |
|
BcPBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator)
Create a PBE encryption method generator using the provided calculator for key calculation. |
|
BcPBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator,
int s2kCount)
Create a PBE encryption method generator using the provided calculator and S2K count for key calculation. |
|
| Method Summary | |
|---|---|
protected byte[] |
encryptSessionInfo(int encAlgorithm,
byte[] key,
byte[] sessionInfo)
|
PBEKeyEncryptionMethodGenerator |
setSecureRandom(java.security.SecureRandom random)
Provide a user defined source of randomness. |
| Methods inherited from class org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator |
|---|
generate, getKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator)
passPhrase - the passphrase to use as the primary source of key material.s2kDigestCalculator - the digest calculator to use for key calculation.public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase)
passPhrase - the passphrase to use as the primary source of key material.
public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase,
PGPDigestCalculator s2kDigestCalculator,
int s2kCount)
passPhrase - the passphrase to use as the primary source of key material.s2kDigestCalculator - the digest calculator to use for key calculation.s2kCount - the S2K count to use.
public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase,
int s2kCount)
passPhrase - the passphrase to use as the primary source of key material.s2kCount - the S2K count to use.| Method Detail |
|---|
public PBEKeyEncryptionMethodGenerator setSecureRandom(java.security.SecureRandom random)
setSecureRandom in class PBEKeyEncryptionMethodGeneratorrandom - the secure random to be used.
protected byte[] encryptSessionInfo(int encAlgorithm,
byte[] key,
byte[] sessionInfo)
throws PGPException
encryptSessionInfo in class PBEKeyEncryptionMethodGeneratorPGPException
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||