Class DHBufferHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      DHBufferHandler​(DHSession session, java.lang.String cipherSpec, java.lang.String keySpec, int blocksize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] encrypted)  
      byte[] encrypt​(byte[] unencrypted)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DHBufferHandler

        public DHBufferHandler​(DHSession session,
                               java.lang.String cipherSpec,
                               java.lang.String keySpec,
                               int blocksize)
    • Method Detail

      • decrypt

        public byte[] decrypt​(byte[] encrypted)
                       throws java.security.InvalidKeyException,
                              java.lang.IllegalStateException,
                              java.security.NoSuchAlgorithmException,
                              javax.crypto.NoSuchPaddingException,
                              javax.crypto.IllegalBlockSizeException,
                              javax.crypto.BadPaddingException,
                              java.security.InvalidAlgorithmParameterException,
                              java.security.NoSuchProviderException
        Specified by:
        decrypt in interface BufferDecrypter
        Throws:
        java.security.InvalidKeyException
        java.lang.IllegalStateException
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException
        java.security.InvalidAlgorithmParameterException
        java.security.NoSuchProviderException
      • encrypt

        public byte[] encrypt​(byte[] unencrypted)
                       throws java.security.InvalidKeyException,
                              java.lang.IllegalStateException,
                              java.security.NoSuchAlgorithmException,
                              javax.crypto.NoSuchPaddingException,
                              javax.crypto.IllegalBlockSizeException,
                              javax.crypto.BadPaddingException,
                              java.security.InvalidAlgorithmParameterException,
                              java.security.NoSuchProviderException
        Specified by:
        encrypt in interface BufferEncrypter
        Throws:
        java.security.InvalidKeyException
        java.lang.IllegalStateException
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException
        javax.crypto.IllegalBlockSizeException
        javax.crypto.BadPaddingException
        java.security.InvalidAlgorithmParameterException
        java.security.NoSuchProviderException