COM.claymoresystems.crypto

Class PKCS1Pad

public class PKCS1Pad extends Object

Implement PKCS1 padding
Field Summary
static intDECRYPT
static intENCRYPT
static intSIGN
static intVERIFY
Method Summary
static byte[]pkcs1PadBuf(SecureRandom rnd, byte[] input, PublicKey key)
Pad a buffer for encryption with this public key
static byte[]pkcs1PadBuf(byte[] input, PrivateKey key)
static byte[]pkcs1PadBuf(byte[] input, BigInteger modulus, int how)
static byte[]pkcs1PadBuf(SecureRandom rnd, byte[] input, BigInteger modulus, int how)
static byte[]pkcs1UnpadBuf(byte[] input, int how, CryptixRSAPrivateKey key)
static byte[]pkcs1UnpadBuf(byte[] input, int how, BigInteger modulus)

Field Detail

DECRYPT

public static final int DECRYPT

ENCRYPT

public static final int ENCRYPT

SIGN

public static final int SIGN

VERIFY

public static final int VERIFY

Method Detail

pkcs1PadBuf

public static byte[] pkcs1PadBuf(SecureRandom rnd, byte[] input, PublicKey key)
Pad a buffer for encryption with this public key

pkcs1PadBuf

public static byte[] pkcs1PadBuf(byte[] input, PrivateKey key)

pkcs1PadBuf

public static byte[] pkcs1PadBuf(byte[] input, BigInteger modulus, int how)

pkcs1PadBuf

public static byte[] pkcs1PadBuf(SecureRandom rnd, byte[] input, BigInteger modulus, int how)

pkcs1UnpadBuf

public static byte[] pkcs1UnpadBuf(byte[] input, int how, CryptixRSAPrivateKey key)

pkcs1UnpadBuf

public static byte[] pkcs1UnpadBuf(byte[] input, int how, BigInteger modulus)
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.