Class StreamCipher

  • All Implemented Interfaces:
    Cipher

    public class StreamCipher
    extends BaseCipher
    • Nested Class Summary

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

        Cipher.Mode
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamCipher​(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

      • StreamCipher

        public StreamCipher​(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