Class PGPPad
java.lang.Object
org.bouncycastle.openpgp.operator.PGPPad
Utility class that provides padding addition and removal for PGP session keys.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
padSessionData
(byte[] sessionInfo) static byte[]
padSessionData
(byte[] sessionInfo, boolean obfuscate) static byte[]
unpadSessionData
(byte[] encoded)
-
Method Details
-
padSessionData
public static byte[] padSessionData(byte[] sessionInfo) -
padSessionData
public static byte[] padSessionData(byte[] sessionInfo, boolean obfuscate) -
unpadSessionData
- Throws:
PGPException
-