wok-current diff perl-digest-hmac/description.txt @ rev 24942
BootProg: clear cmdline
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 20 15:10:50 2022 +0000 (2022-04-20) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-digest-hmac/description.txt Wed Apr 20 15:10:50 2022 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +HMAC is used for message integrity checks between two parties 1.5 +that share a secret key, and works in combination with some 1.6 +other Digest algorithm, usually MD5 or SHA-1. 1.7 +The HMAC mechanism is described in RFC 2104. 1.8 + 1.9 +HMAC follow the common Digest:: interface, but the constructor 1.10 +takes the secret key and the name of some other simple Digest:: 1.11 +as argument. 1.12 + 1.13 +The hmac() and hmac_hex() functions and the Digest::HMAC->new() 1.14 +constructor takes an optional $blocksize argument as well. 1.15 +The HMAC algorithm assumes the digester to hash by iterating a 1.16 +basic compression function on blocks of data and the $blocksize 1.17 +should match the byte-length of such blocks. 1.18 + 1.19 +The default $blocksize is 64 which is suitable for the MD5 and 1.20 +SHA-1 digest functions. 1.21 +For stronger algorithms the blocksize probably needs to be 1.22 +increased.