Class BlockCipher

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface net.schmizz.sshj.transport.cipher.Cipher

        Cipher.Mode
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockCipher​(int ivsize, int bsize, java.lang.String algorithm, java.lang.String transformation)  
    • Method Summary

      Modifier and Type Method Description
      protected void initCipher​(javax.crypto.Cipher cipher, Cipher.Mode mode, byte[] key, byte[] iv)  
      • Methods inherited from class java.lang.Object

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

      • BlockCipher

        public BlockCipher​(int ivsize,
                           int bsize,
                           java.lang.String algorithm,
                           java.lang.String transformation)
    • Method Detail

      • initCipher

        protected void initCipher​(javax.crypto.Cipher cipher,
                                  Cipher.Mode mode,
                                  byte[] key,
                                  byte[] iv)
                           throws java.security.InvalidKeyException,
                                  java.security.InvalidAlgorithmParameterException
        Specified by:
        initCipher in class BaseCipher
        Throws:
        java.security.InvalidKeyException
        java.security.InvalidAlgorithmParameterException