Class XSalsa20Engine

    • Constructor Detail

      • XSalsa20Engine

        public XSalsa20Engine()
    • Method Detail

      • setKey

        protected void setKey​(byte[] keyBytes,
                              byte[] ivBytes)
        XSalsa20 key generation: process 256 bit input key and 128 bits of the input nonce using a core Salsa20 function without input addition to produce 256 bit working key and use that with the remaining 64 bits of nonce to initialize a standard Salsa20 engine state.
        Overrides:
        setKey in class Salsa20Engine