java.lang.Object | |
↳ | org.bouncycastle.crypto.engines.NaccacheSternEngine |
NaccacheStern Engine. For details on this cipher, please see http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the contents of two encrypted blocks mod sigma
| |||||||||||
Encrypts a BigInteger aka Plaintext with the public key.
| |||||||||||
Returns the input block size of this algorithm.
| |||||||||||
Returns the output block size of this algorithm.
| |||||||||||
Initializes this algorithm.
| |||||||||||
Process a single Block using the Naccache-Stern algorithm.
| |||||||||||
Convenience Method for data exchange with the cipher.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.AsymmetricBlockCipher
|
Adds the contents of two encrypted blocks mod sigma
block1 | the first encrypted block |
---|---|
block2 | the second encrypted block |
InvalidCipherTextException |
---|
Encrypts a BigInteger aka Plaintext with the public key.
plain | The BigInteger to encrypt |
---|
Returns the input block size of this algorithm.
Returns the output block size of this algorithm.
Initializes this algorithm. Must be called before all other Functions.
forEncryption | if true the cipher is initialised for encryption, if false for decryption. |
---|---|
param | the key and other data required by the cipher. |
Process a single Block using the Naccache-Stern algorithm.
in | the input data |
---|---|
inOff | offset into the in array where the data starts |
len | the length of the block to be processed. |
InvalidCipherTextException |
---|
Convenience Method for data exchange with the cipher. Determines blocksize and splits data to blocksize.
data | the data to be processed |
---|
InvalidCipherTextException |
---|