Generate a key for use with authentication.
Create an authentication Mac for a message, signed with key.
Verify message authentication with a secret key.
1 import std.string : representation; 2 immutable ubyte[] message = representation("hello"); 3 auto key = makeAuthKey(); 4 auto mac = authenticateMessage(message, key); 5 assert(verifyMac(mac, message, key));
See Source File