XSalsa20Engine Class

Implementation of Daniel J. Bernstein's XSalsa20 stream cipher - Salsa20 with an extended nonce.

Definition

Namespace: Org.BouncyCastle.Crypto.Engines
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class XSalsa20Engine : Salsa20Engine
Inheritance
Object    Salsa20Engine    XSalsa20Engine

Remarks

XSalsa20 requires a 256 bit key, and a 192 bit nonce.

Constructors

XSalsa20EngineInitializes a new instance of the XSalsa20Engine class

Properties

Methods

AdvanceCounter
(Inherited from Salsa20Engine)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GenerateKeyStream
(Inherited from Salsa20Engine)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init
(Inherited from Salsa20Engine)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ProcessBytes(ReadOnlySpanByte, SpanByte)
(Inherited from Salsa20Engine)
ProcessBytes(Byte, Int32, Int32, Byte, Int32)
(Inherited from Salsa20Engine)
Reset
(Inherited from Salsa20Engine)
ResetCounter
(Inherited from Salsa20Engine)
ReturnByte
(Inherited from Salsa20Engine)
SetKey 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 Salsa20EngineSetKey(Byte, Byte))
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

rounds
(Inherited from Salsa20Engine)

See Also