wok-current view perl-digest-hmac/description.txt @ rev 24809
created recipes for libmypaint, libmypaint-dev and libmypaint-lang
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 16:52:59 2022 +0100 (2022-03-22) |
parents | |
children |
line source
1 HMAC is used for message integrity checks between two parties
2 that share a secret key, and works in combination with some
3 other Digest algorithm, usually MD5 or SHA-1.
4 The HMAC mechanism is described in RFC 2104.
6 HMAC follow the common Digest:: interface, but the constructor
7 takes the secret key and the name of some other simple Digest::
8 as argument.
10 The hmac() and hmac_hex() functions and the Digest::HMAC->new()
11 constructor takes an optional $blocksize argument as well.
12 The HMAC algorithm assumes the digester to hash by iterating a
13 basic compression function on blocks of data and the $blocksize
14 should match the byte-length of such blocks.
16 The default $blocksize is 64 which is suitable for the MD5 and
17 SHA-1 digest functions.
18 For stronger algorithms the blocksize probably needs to be
19 increased.