Class AesPmac
PMAC message authentication code, defined in the paper A Block-Cipher Mode of Operation for Parallelizable Message Authentication .
Implements
Inherited Members
Namespace: Confluent.SchemaRegistry.Encryption.Vendored.Miscreant
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public sealed class AesPmac : IDisposableConstructors
AesPmac(byte[])
Initializes a new instance of the AesPmac class with the specified key.
Declaration
public AesPmac(byte[] key)Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | key | The secret key for AesPmac authentication. |
Methods
Dispose()
Disposes this object.
Declaration
public void Dispose()HashCore(byte[], int, int)
Adds more data to the running hash.
Declaration
public void HashCore(byte[] input, int index, int size)Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | input | The input to hash. |
| int | index | The offset into the input byte array from which to begin using data. |
| int | size | The number of bytes in the input byte array to use as data. |
HashFinal()
Returns the current hash and resets the hash state.
Declaration
public byte[] HashFinal()Returns
| Type | Description |
|---|---|
| byte[] | The value of the computed hash. |