gnu.crypto.pad

Class PKCS1_V1_5

public class PKCS1_V1_5 extends BasePad

A padding algorithm implementation of the EME-PKCS1-V1.5 encoding/decoding algorithm as described in section 7.2 of RFC-3447. This is effectively an Adapter over an instance of EME_PKCS1_V1_5 initialised with the RSA public shared modulus length (in bytes).

References:

  1. Public-Key Cryptography Standards (PKCS) #1:
    RSA Cryptography Specifications Version 2.1.
    Jakob Jonsson and Burt Kaliski.

Version: $Revision: 1.2 $

See Also: EME_PKCS1_V1_5

Constructor Summary
PKCS1_V1_5()

Trivial package-private constructor for use by the Factory class.

Method Summary
byte[]pad(byte[] in, int offset, int length)
booleanselfTest()
voidsetup()
intunpad(byte[] in, int offset, int length)

Constructor Detail

PKCS1_V1_5

PKCS1_V1_5()

Trivial package-private constructor for use by the Factory class.

See Also: PadFactory

Method Detail

pad

public byte[] pad(byte[] in, int offset, int length)

selfTest

public boolean selfTest()

setup

public void setup()

unpad

public int unpad(byte[] in, int offset, int length)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.