| Access | Constructor and Description |
|---|---|
| public | BcPBEKeyEncryptionMethodGenerator(char[]
the passphrase to use as the primary source of key material. passPhrase, PGPDigestCalculator the digest calculator to use for key calculation. s2kDigestCalculator)Create a PBE encryption method generator using the provided digest and the default S2K count for key generation. |
| public | BcPBEKeyEncryptionMethodGenerator(char[]
the passphrase to use as the primary source of key material. passPhrase)Create a PBE encryption method generator using the default SHA-1 digest and the default S2K count for key generation. |
| public | BcPBEKeyEncryptionMethodGenerator(char[]
passphrase passPhrase, S2K.parameters for argon2 argon2ParamsCreate a PBE encryption method generator using Argon2 for S2K key generation. |
| public | BcPBEKeyEncryptionMethodGenerator(char[]
the passphrase to use as the primary source of key material. passPhrase, PGPDigestCalculator the digest calculator to use for key calculation. s2kDigestCalculator, int the single byte s2kCount)S2K count to use.Create a PBE encryption method generator using the provided calculator and S2K count for key generation. |
| public | BcPBEKeyEncryptionMethodGenerator(char[]
the passphrase to use as the primary source of key material. passPhrase, int the single byte s2kCount)S2K count to use.Create a PBE encryption method generator using the default SHA-1 digest calculator and a S2K count other than the default for key generation. |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | encryptSessionInfo(int encAlgorithm, byte[] key, byte[] sessionInfo)
Implements abstract org.
|
| protected byte[] | generateV6KEK(int kekAlgorithm, byte[] ikm, byte[] info)
Implements abstract org.
|
| protected byte[] | getEskAndTag(int kekAlgorithm, int aeadAlgorithm, byte[] sessionKey, byte[] key, byte[] iv, byte[] info)
Implements abstract org.
|
| public PBEKeyEncryptionMethodGenerator | setSecureRandom(SecureRandom random)
Overrides org. Sets a user defined source of randomness. |
| BcPBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase, PGPDigestCalculator s2kDigestCalculator) Create a PBE encryption method generator using the provided digest and the default S2K count for key generation.
| |
| BcPBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase) Create a PBE encryption method generator using the default SHA-1 digest and the default S2K count for key generation.
| |
| BcPBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase, S2K. Create a PBE encryption method generator using Argon2 for S2K key generation.
| |
| BcPBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public BcPBEKeyEncryptionMethodGenerator(char[] passPhrase, PGPDigestCalculator s2kDigestCalculator, int s2kCount) Create a PBE encryption method generator using the provided calculator and S2K count for key generation.
| |
| BcPBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public 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 for key generation.
| |
| encryptSessionInfo | back to summary |
|---|---|
| protected byte[] encryptSessionInfo(int encAlgorithm, byte[] key, byte[] sessionInfo) throws PGPException Implements abstract org. | |
| generateV6KEK | back to summary |
|---|---|
| protected byte[] generateV6KEK(int kekAlgorithm, byte[] ikm, byte[] info) Implements abstract org. | |
| getEskAndTag | back to summary |
|---|---|
| protected byte[] getEskAndTag(int kekAlgorithm, int aeadAlgorithm, byte[] sessionKey, byte[] key, byte[] iv, byte[] info) throws PGPException Implements abstract org. | |
| setSecureRandom | back to summary |
|---|---|
| public PBEKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random) Overrides org. Doc from org. Sets a user defined source of randomness. If no SecureRandom is configured, a default SecureRandom will be used.
| |