Interface IHmacKeyBuilder
interface IHmacKeyBuilder
Extends ISymmetricKeyBuilder
Interface for building HMAC keys.
This interface provides methods to configure and create HMAC keys
with specific Message Authentication Code algorithms, key lengths,
purposes, and exportability settings.
Methods
macAlgorithm()
Set the Message Authentication Code algorithm for the HMAC key. This function specifies which MAC algorithm will be used with the key. The algorithm determines the underlying hash function and authentication tag length for HMAC operations.IHmacKeyBuilder*macAlgorithm(IMessageAuthenticationCode*alg)
Parameters
alg
IMessageAuthenticationCode* — Required
The Message Authentication Code algorithm to use.
Returns
IHmacKeyBuilder*
The HMAC key builder object for method chaining.

