Class NaccacheSternEngine

  • All Implemented Interfaces:
    AsymmetricBlockCipher

    public class NaccacheSternEngine
    extends java.lang.Object
    implements AsymmetricBlockCipher
    NaccacheStern Engine. For details on this cipher, please see https://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] addCryptedBlocks​(byte[] block1, byte[] block2)
      Adds the contents of two encrypted blocks mod sigma
      byte[] encrypt​(java.math.BigInteger plain)
      Encrypts a BigInteger aka Plaintext with the public key.
      int getInputBlockSize()
      Returns the input block size of this algorithm.
      int getOutputBlockSize()
      Returns the output block size of this algorithm.
      void init​(boolean forEncryption, CipherParameters param)
      Initializes this algorithm.
      byte[] processBlock​(byte[] in, int inOff, int len)
      Process a single Block using the Naccache-Stern algorithm.
      byte[] processData​(byte[] data)
      Convenience Method for data exchange with the cipher.
      void setDebug​(boolean debug)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait