Botan

Base class for message authentiction codes

License
Botan is released under the Simplified BSD License (see LICENSE.md)

interface  MessageAuthenticationCode: botan.algo_base.buf_comp.BufferedComputation, botan.algo_base.sym_algo.SymmetricAlgorithm;

This class represents Message Authentication Code (MAC) objects.


final bool  verifyMac(const(ubyte)* mac, size_t length);

Verify a MAC.

Parameters
const(ubyte)* mac the MAC to verify as a ubyte array
size_t length the length of param in
Returns
true if the MAC is valid, false otherwise

abstract const MessageAuthenticationCode  clone();

Get a new object representing the same algorithm as this


abstract const @property string  name();

Get the  name of this algorithm.

Returns
 name of this algorithm