COM.claymoresystems.crypto
Class PKCS1Pad

java.lang.Object
  |
  +--COM.claymoresystems.crypto.PKCS1Pad

public class PKCS1Pad
extends java.lang.Object

Implement PKCS1 padding


Field Summary
static int DECRYPT
           
static int ENCRYPT
           
static int SIGN
           
static int VERIFY
           
 
Constructor Summary
PKCS1Pad()
           
 
Method Summary
static byte[] pkcs1PadBuf(byte[] input, java.math.BigInteger modulus, int how)
           
static byte[] pkcs1PadBuf(byte[] input, java.security.PrivateKey key)
           
static byte[] pkcs1PadBuf(java.security.SecureRandom rnd, byte[] input, java.math.BigInteger modulus, int how)
           
static byte[] pkcs1PadBuf(java.security.SecureRandom rnd, byte[] input, java.security.PublicKey key)
          Pad a buffer for encryption with this public key
static byte[] pkcs1UnpadBuf(byte[] input, int how, CryptixRSAPrivateKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCRYPT

public static final int ENCRYPT
See Also:
Constant Field Values

SIGN

public static final int SIGN
See Also:
Constant Field Values

DECRYPT

public static final int DECRYPT
See Also:
Constant Field Values

VERIFY

public static final int VERIFY
See Also:
Constant Field Values
Constructor Detail

PKCS1Pad

public PKCS1Pad()
Method Detail

pkcs1PadBuf

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


pkcs1PadBuf

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

pkcs1PadBuf

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

pkcs1PadBuf

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

pkcs1UnpadBuf

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


Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.