java.lang.Object | |
↳ | org.bouncycastle.crypto.encodings.ISO9796d1Encoding |
ISO 9796-1 padding. Note in the light of recent results you should only use this with RSA (rather than the "simpler" Rabin keys) and you should never use it with anything other than a hash (ie. even if the message is small don't sign the message, sign it's hash) or some "random" value. See your favorite search engine for details.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
return the input block size.
| |||||||||||
return the maximum possible size for the output.
| |||||||||||
retrieve the number of pad bits in the last decoded message.
| |||||||||||
initialise the cipher.
| |||||||||||
process the block of len bytes stored in in from offset inOff.
| |||||||||||
set the number of bits in the next message to be treated as
pad bits.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.AsymmetricBlockCipher
|
return the input block size. The largest message we can process is (key_size_in_bits + 3)/16, which in our world comes to key_size_in_bytes / 2.
return the maximum possible size for the output.
retrieve the number of pad bits in the last decoded message.
initialise the cipher.
forEncryption | if true the cipher is initialised for encryption, if false for decryption. |
---|---|
param | the key and other data required by the cipher. |
process the block of len bytes stored in in from offset inOff.
in | the input data |
---|---|
inOff | offset into the in array where the data starts |
inLen | the length of the block to be processed. |
InvalidCipherTextException |
---|
set the number of bits in the next message to be treated as pad bits.