| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private BcPGPKeyConverter | |
| private SecureRandom | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| public | BcPublicKeyKeyEncryptionMethodGenerator(PGPPublicKey
the public key to use for encryption. key)Create a public key encryption method generator with the method to be based on the passed in key. |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | encryptSessionInfo(PGPPublicKey
recipients public key pubKey, byte[] session-key sessionKey, byte for v3: session key algorithm ID; for v6: 0 symAlgId, boolean isV3)Implements abstract org. Encrypt a session key using the recipients public key. |
| private byte[] | Returns: encrypted session keysym alg ID (if v3 PKESK) + session key + 2 octets checksum sessionInfo, byte[] shared secret secret, byte[] UKM userKeyingMaterial, byte[] ephemeral public key encoding ephPubEncoding, int hash algorithm hashAlgorithm, int symmetric key algorithm symmetricKeyAlgorithm)Encrypt the session info. |
| private byte[] | encryptSessionInfoWithX25519X448Key(PublicKeyPacket pubKeyPacket, byte[] sessionKey, int hashAlgorithm, int symmetricKeyAlgorithm, String algorithmName, AsymmetricCipherKeyPairGenerator gen, KeyGenerationParameters parameters, RawAgreement agreement, AsymmetricKeyParameter cryptoPublicKey, int keySize, BcPublicKeyKeyEncryptionMethodGenerator.
|
| private AsymmetricCipherKeyPair | |
| private byte[] | |
| public BcPublicKeyKeyEncryptionMethodGenerator | Returns: the current generator.the secure random to be used. random)Provide a user defined source of randomness. |
| keyConverter | back to summary |
|---|---|
| private BcPGPKeyConverter keyConverter | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| X_HDR | back to summary |
|---|---|
| private static final byte X_HDR | |
| BcPublicKeyKeyEncryptionMethodGenerator | back to summary |
|---|---|
| public BcPublicKeyKeyEncryptionMethodGenerator(PGPPublicKey key) Create a public key encryption method generator with the method to be based on the passed in key.
| |
| encryptSessionInfo | back to summary |
|---|---|
| protected byte[] encryptSessionInfo(PGPPublicKey pubKey, byte[] sessionKey, byte symAlgId, boolean isV3) throws PGPException Implements abstract org. Doc from org. Encrypt a session key using the recipients public key.
| |
| encryptSessionInfoWithECDHKey | back to summary |
|---|---|
| private byte[] encryptSessionInfoWithECDHKey(byte[] sessionInfo, byte[] secret, byte[] userKeyingMaterial, byte[] ephPubEncoding, int hashAlgorithm, int symmetricKeyAlgorithm) throws IOException, PGPException Encrypt the session info.
| |
| encryptSessionInfoWithX25519X448Key | back to summary |
|---|---|
| private byte[] encryptSessionInfoWithX25519X448Key(PublicKeyPacket pubKeyPacket, byte[] sessionKey, int hashAlgorithm, int symmetricKeyAlgorithm, String algorithmName, AsymmetricCipherKeyPairGenerator gen, KeyGenerationParameters parameters, RawAgreement agreement, AsymmetricKeyParameter cryptoPublicKey, int keySize, BcPublicKeyKeyEncryptionMethodGenerator. | |
| getAsymmetricCipherKeyPair | back to summary |
|---|---|
| private AsymmetricCipherKeyPair getAsymmetricCipherKeyPair(AsymmetricCipherKeyPairGenerator gen, KeyGenerationParameters parameters) | |
| getWrapper | back to summary |
|---|---|
| private byte[] getWrapper(int symmetricKeyAlgorithm, KeyParameter key, byte[] sessionData) throws PGPException | |
| setSecureRandom | back to summary |
|---|---|
| public BcPublicKeyKeyEncryptionMethodGenerator setSecureRandom(SecureRandom random) Provide a user defined source of randomness.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| getEphPubEncoding | back to summary |
|---|---|
| public void getEphPubEncoding(AsymmetricKeyParameter publicKey, byte[] ephPubEncoding) | |