wok-current view perl-digest-hmac/description.txt @ rev 24771
amule: modified MuleDebug.cpp for libbfd-2.37
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 19 15:22:53 2022 +0100 (2022-03-19) |
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.