C# 클래스 Org.BouncyCastle.Crypto.Macs.Poly1305

Poly1305 message authentication code, designed by D. J. Bernstein.
Poly1305 computes a 128-bit (16 bytes) authenticator, using a 128 bit nonce and a 256 bit key consisting of a 128 bit key applied to an underlying cipher, and a 128 bit key (with 106 effective key bits) used in the authenticator. The polynomial calculation in this implementation is adapted from the public domain poly1305-donna-unrolled C implementation by Andrew M (@floodyberry).
상속: IMac
파일 보기 프로젝트 열기: gkardava/WinPass 1 사용 예제들

공개 메소드들

메소드 설명
BlockUpdate ( byte input, int inOff, int len ) : void
DoFinal ( byte output, int outOff ) : int
GetMacSize ( ) : int
Init ( ICipherParameters parameters ) : void

Initialises the Poly1305 MAC.

Poly1305 ( ) : System
Poly1305 ( IBlockCipher cipher ) : System
Reset ( ) : void
Update ( byte input ) : void

비공개 메소드들

메소드 설명
ProcessBlock ( ) : void
SetKey ( byte key, byte nonce ) : void
mul32x32_64 ( uint i1, uint i2 ) : ulong

메소드 상세

BlockUpdate() 공개 메소드

public BlockUpdate ( byte input, int inOff, int len ) : void
input byte
inOff int
len int
리턴 void

DoFinal() 공개 메소드

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
리턴 int

GetMacSize() 공개 메소드

public GetMacSize ( ) : int
리턴 int

Init() 공개 메소드

Initialises the Poly1305 MAC.
public Init ( ICipherParameters parameters ) : void
parameters ICipherParameters a {@link ParametersWithIV} containing a 128 bit nonce and a {@link KeyParameter} with /// a 256 bit key complying to the {@link Poly1305KeyGenerator Poly1305 key format}.
리턴 void

Poly1305() 공개 메소드

public Poly1305 ( ) : System
리턴 System

Poly1305() 공개 메소드

public Poly1305 ( IBlockCipher cipher ) : System
cipher IBlockCipher
리턴 System

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Update() 공개 메소드

public Update ( byte input ) : void
input byte
리턴 void