Poly1305 Class

Poly1305 message authentication code, designed by D. J. Bernstein.

Definition

Namespace: Org.BouncyCastle.Crypto.Macs
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class Poly1305 : IMac
Inheritance
Object    Poly1305
Implements
IMac

Remarks

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).

Constructors

Poly1305Initializes a new instance of the Poly1305 class
Poly1305(IBlockCipher)Initializes a new instance of the Poly1305 class

Properties

Methods

BlockUpdate(ReadOnlySpanByte) 
BlockUpdate(Byte, Int32, Int32) 
DoFinal(SpanByte) 
DoFinal(Byte, Int32) 
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)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetMacSize 
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init Initialises the Poly1305 MAC.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Reset 
ToStringReturns a string that represents the current object.
(Inherited from Object)
Update 

See Also