Class PGPPad

java.lang.Object
org.bouncycastle.openpgp.operator.PGPPad

public class PGPPad extends Object
Utility class that provides padding addition and removal for PGP session keys.
  • Method Details

    • padSessionData

      public static byte[] padSessionData(byte[] sessionInfo)
    • padSessionData

      public static byte[] padSessionData(byte[] sessionInfo, boolean obfuscate)
    • unpadSessionData

      public static byte[] unpadSessionData(byte[] encoded) throws PGPException
      Throws:
      PGPException