Class ChaCha20Cipher.ChaChaEngine

java.lang.Object
org.apache.sshd.common.cipher.ChaCha20Cipher.ChaChaEngine
Enclosing class:
ChaCha20Cipher

protected static class ChaCha20Cipher.ChaChaEngine extends Object
  • Field Details

    • engineState

      protected final int[] engineState
    • keyStream

      protected final byte[] keyStream
    • nonce

      protected final byte[] nonce
    • initialNonce

      protected long initialNonce
    • nonceVal

      protected long nonceVal
  • Constructor Details

    • ChaChaEngine

      protected ChaChaEngine()
  • Method Details

    • initKey

      protected void initKey(byte[] key)
    • initNonce

      protected void initNonce(byte[] nonce)
    • advanceNonce

      protected void advanceNonce()
    • initCounter

      protected void initCounter(long counter)
    • crypt

      protected void crypt(byte[] in, int offset, int length, byte[] out, int outOffset)
    • polyKey

      protected byte[] polyKey()
    • setKeyStream

      protected void setKeyStream(int[] engine)