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.​Kmac256
Assembly: System.Security.Cryptography
Inheritance: object → Kmac256
Computes the KMAC256 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.
Creates a new instance of <see cref="T:System.Security.Cryptography.Kmac256" /> 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.Kmac256" /> 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
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
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object