| Modifier and Type | Field and Description |
|---|---|
| private OperatorHelper |
| Access | Constructor and Description |
|---|---|
| public | JcePBEKeyEncryptionMethodGenerator(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 | JcePBEKeyEncryptionMethodGenerator(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 | JcePBEKeyEncryptionMethodGenerator(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 | JcePBEKeyEncryptionMethodGenerator(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. |
| public |
| 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 JcePBEKeyEncryptionMethodGenerator | Returns: the current generator.the JCE provider to use. provider)Sets the JCE provider to source cryptographic primitives from. |
| public JcePBEKeyEncryptionMethodGenerator | Returns: the current generator.the name of the JCE provider to use. providerName)Sets the JCE provider to source cryptographic primitives from. |
| public PBEKeyEncryptionMethodGenerator | setSecureRandom(SecureRandom random)
Overrides org. Sets a user defined source of randomness. |
| helper | back to summary |
|---|---|
| private OperatorHelper helper | |
| JcePBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator(char[] passPhrase, PGPDigestCalculator s2kDigestCalculator) Create a PBE encryption method generator using the provided digest and the default S2K count for key generation.
| |
| JcePBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator(char[] passPhrase) Create a PBE encryption method generator using the default SHA-1 digest and the default S2K count for key generation.
| |
| JcePBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator(char[] passPhrase, PGPDigestCalculator s2kDigestCalculator, int s2kCount) Create a PBE encryption method generator using the provided calculator and S2K count for key generation.
| |
| JcePBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator(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.
| |
| JcePBEKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator(char[] passPhrase, S2K. | |
| 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. | |
| setProvider | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator setProvider(Provider provider) Sets the JCE provider to source cryptographic primitives from.
| |
| setProvider | back to summary |
|---|---|
| public JcePBEKeyEncryptionMethodGenerator setProvider(String providerName) Sets the JCE provider to source cryptographic primitives from.
| |
| 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.
| |