Class AesCmac
CMAC message authentication code, defined in NIST Special Publication SP 800-38B.
Implements
Inherited Members
Namespace: Confluent.SchemaRegistry.Encryption.Vendored.Miscreant
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public sealed class AesCmac : IDisposableConstructors
AesCmac(byte[])
Initializes a new instance of the AesCmac class with the specified key.
Declaration
public AesCmac(byte[] key)Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | key | The secret key for AesCmac 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. |