org.bouncycastle.crypto.AsymmetricBlockCipher |
Known Indirect Subclasses
ElGamalEngine |
this does your basic ElGamal algorithm. |
ISO9796d1Encoding |
ISO 9796-1 padding. |
NaccacheSternEngine |
NaccacheStern Engine. |
OAEPEncoding |
Optimal Asymmetric Encryption Padding (OAEP) - see PKCS 1 V 2. |
PKCS1Encoding |
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. |
RSABlindedEngine |
this does your basic RSA algorithm with blinding
|
RSABlindingEngine |
This does your basic RSA Chaum's blinding and unblinding as outlined in
"Handbook of Applied Cryptography", page 475. |
RSAEngine |
this does your basic RSA algorithm. |
|
Class Overview
base interface that a public/private key block cipher needs
to conform to.
Summary
Public Methods |
abstract
int
|
getInputBlockSize()
returns the largest size an input block can be.
|
abstract
int
|
getOutputBlockSize()
returns the maximum size of the block produced by this cipher.
|
abstract
void
|
init(boolean forEncryption, CipherParameters param)
initialise the cipher.
|
abstract
byte[]
|
processBlock(byte[] in, int inOff, int len)
process the block of len bytes stored in in from offset inOff.
|
Public Methods
public
abstract
int
getInputBlockSize
()
returns the largest size an input block can be.
Returns
- maximum size for an input block.
public
abstract
int
getOutputBlockSize
()
returns the maximum size of the block produced by this cipher.
Returns
- maximum size of the output block produced by the cipher.
public
abstract
void
init
(boolean forEncryption, CipherParameters param)
Parameters
forEncryption
| if true the cipher is initialised for
encryption, if false for decryption. |
param
| the key and other data required by the cipher.
|
public
abstract
byte[]
processBlock
(byte[] in, int inOff, int len)
process the block of len bytes stored in in from offset inOff.
Parameters
in
| the input data |
inOff
| offset into the in array where the data starts |
len
| the length of the block to be processed. |
Returns
- the resulting byte array of the encryption/decryption process.