Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Security.​Cryptography.​KmacXof256

Assembly: System.Security.Cryptography

Inheritance: object → KmacXof256

Computes the KMACXOF256 MAC for the input data.

Methods

public void
AppendData​(byte[] data)
data The data to process.
Appends the specified data to the data already processed in the hash.
public void
AppendData​(ReadOnlySpan`1 data)
public KmacXof256
Clone​()
Returns A clone of the current instance.
Creates a new instance of <see cref="T:System.Security.Cryptography.KmacXof256" /> with the existing appended data preserved.
public void
Dispose​()
Release all resources used by the current instance of the <see cref="T:System.Security.Cryptography.KmacXof256" /> class.
public byte[]
GetCurrentHash​(int outputLength)
outputLength The size of the hash to produce.
Returns The computed hash.
Retrieves the hash for the data accumulated from prior calls to the <c>AppendData</c> methods, without resetting the object to its initial state.
public void
GetCurrentHash​(Span`1 destination)
public byte[]
GetHashAndReset​(int outputLength)
outputLength The size of the hash to produce.
Returns The computed hash.
Retrieves the hash for the data accumulated from prior calls to the <c>AppendData</c> methods, and resets the object to its initial state.
public void
GetHashAndReset​(Span`1 destination)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object