digest()
public
Returns the authentication code an instance represents as a binary string.
Example
instance = OpenSSL::HMAC.new('key', OpenSSL::Digest.new('sha1'))
instance.digest
static VALUE
ossl_hmac_digest(VALUE self)
{
HMAC_CTX *ctx;
unsigned char *buf;
unsigned int buf_len;
VALUE digest;
GetHMAC(self, ctx);
hmac_final(ctx, &buf, &buf_len);
digest = ossl_buf2str((char *)buf, buf_len);
return digest;
}