The Digest API does not support keyed algorithms. Thankfully, WrapperDigest (OOP API) is a class template and I hope to inherit it to add a key function already found in the structure template (Template API).
Key can still be given to template structure anyway when initiating the class template.
This adds the key function to the Digest OOP API.
Concept
class WrapperDigestKeyed(T) if (isDigest!T) : WrapperDigest!T
{
void key(ubyte[] input)
{
_digest.key(input);
}
}
The Digest API does not support keyed algorithms. Thankfully, WrapperDigest (OOP API) is a class template and I hope to inherit it to add a
key
function already found in the structure template (Template API).Key can still be given to template structure anyway when initiating the class template.
This adds the key function to the Digest OOP API.
Concept