C# Класс Org.BouncyCastle.Crypto.Engines.Salsa20Engine

Implementation of Daniel J. Bernstein's Salsa20 stream cipher, Snuffle 2005
Наследование: IStreamCipher
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Init ( bool forEncryption, ICipherParameters parameters ) : void
ProcessBytes ( byte inBytes, int inOff, int len, byte outBytes, int outOff ) : void
Reset ( ) : void
ReturnByte ( byte input ) : byte

Приватные методы

Метод Описание
byteToIntLittle ( byte x, int offset ) : int
intToByteLittle ( int x, byte bs, int off ) : byte[]
limitExceeded ( ) : bool
limitExceeded ( int len ) : bool
resetCounter ( ) : void
rotl ( int x, int y ) : int
salsa20WordToByte ( int input, byte output ) : void
setKey ( byte keyBytes, byte ivBytes ) : void

Описание методов

Init() публичный Метод

public Init ( bool forEncryption, ICipherParameters parameters ) : void
forEncryption bool
parameters ICipherParameters
Результат void

ProcessBytes() публичный Метод

public ProcessBytes ( byte inBytes, int inOff, int len, byte outBytes, int outOff ) : void
inBytes byte
inOff int
len int
outBytes byte
outOff int
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

ReturnByte() публичный Метод

public ReturnByte ( byte input ) : byte
input byte
Результат byte