wok view perl-digest-hmac/description.txt @ rev 24651
updated i2c-tools and i2c-tools-dev (4.1 -> 4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 17:14:42 2022 +0100 (2022-03-10) |
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.