C# 클래스 Org.BouncyCastle.Crypto.Engines.Salsa20Engine

Implementation of Daniel J. Bernstein's Salsa20 stream cipher, Snuffle 2005
상속: IStreamCipher
파일 보기 프로젝트 열기: red-gate/iTextSharp-4.1.6 1 사용 예제들

공개 메소드들

메소드 설명
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