org.bouncycastle.crypto.encodings
Class PKCS1Encoding
java.lang.Objectorg.bouncycastle.crypto.encodings.PKCS1Encoding
- AsymmetricBlockCipher
public class PKCS1Encoding
extends java.lang.Object
this does your basic PKCS 1 v1.5 padding - whether or not you should be using this
depends on your application - see PKCS1 Version 2 for details.
getOutputBlockSize
public int getOutputBlockSize()
returns the maximum size of the block produced by this cipher.
- getOutputBlockSize in interface AsymmetricBlockCipher
- maximum size of the output block produced by the cipher.
init
public void init(boolean forEncryption,
CipherParameters param) initialise the cipher.
- init in interface AsymmetricBlockCipher
forEncryption - if true the cipher is initialised for
encryption, if false for decryption.param - the key and other data required by the cipher.