Class PublicKeyKeyEncryptionMethodGenerator

    • Field Detail

      • SESSION_KEY_OBFUSCATION_PROPERTY

        public static final java.lang.String SESSION_KEY_OBFUSCATION_PROPERTY
        See Also:
        Constant Field Values
      • sessionKeyObfuscation

        protected boolean sessionKeyObfuscation
    • Constructor Detail

      • PublicKeyKeyEncryptionMethodGenerator

        protected PublicKeyKeyEncryptionMethodGenerator​(PGPPublicKey pubKey)
    • Method Detail

      • setSessionKeyObfuscation

        public PublicKeyKeyEncryptionMethodGenerator setSessionKeyObfuscation​(boolean enabled)
        Controls whether to obfuscate the size of ECDH session keys using extra padding where necessary.

        The default behaviour can be configured using the system property "", or else it will default to enabled.

        Returns:
        the current generator.
      • processSessionInfo

        public byte[][] processSessionInfo​(byte[] encryptedSessionInfo)
                                    throws PGPException
        Throws:
        PGPException