gnu.crypto.pad

Class PKCS7

public final class PKCS7 extends BasePad

The implementation of the PKCS7 padding algorithm.

This algorithm is described for 8-byte blocks in [RFC-1423] and extended to block sizes of up to 256 bytes in [PKCS-7].

References:
RFC-1423: Privacy Enhancement for Internet Electronic Mail: Part III: Algorithms, Modes, and Identifiers.
IETF. [PKCS-7]PKCS #7: Cryptographic Message Syntax Standard - An RSA Laboratories Technical Note.
RSA Security.

Version: $Revision: 1.5 $

Constructor Summary
PKCS7()
Trivial package-private constructor for use by the Factory class.

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

Constructor Detail

PKCS7

PKCS7()
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)

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.