confluent-kafka-dotnet
Show / Hide Table of Contents

Class AesCmac

CMAC message authentication code, defined in NIST Special Publication SP 800-38B.

Inheritance
object
AesCmac
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry.Encryption.Vendored.Miscreant
Assembly: Confluent.SchemaRegistry.Encryption.dll
Syntax
public sealed class AesCmac : IDisposable

Constructors

AesCmac(byte[])

Initializes a new instance of the AesCmac class with the specified key.

Declaration
public AesCmac(byte[] key)
Parameters
TypeNameDescription
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
TypeNameDescription
byte[]input

The input to hash.

intindex

The offset into the input byte array from which to begin using data.

intsize

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
TypeDescription
byte[]

The value of the computed hash.

Implements

IDisposable
In this article