X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fhmac.h;h=b1359aac84f2989592f1542a4d309d0f8cb43b3f;hb=a6f8cadf086f4abeda879dd491e5da7dddb01d59;hp=444213ed2f3d7adeaaa95ce9f14384b015146e06;hpb=f6800ee02280d07036209444b32109c54c98ff64;p=gnulib.git diff --git a/lib/hmac.h b/lib/hmac.h index 444213ed2..b1359aac8 100644 --- a/lib/hmac.h +++ b/lib/hmac.h @@ -30,4 +30,12 @@ int hmac_md5 (const void *key, size_t keylen, const void *buffer, size_t buflen, void *resbuf); +/* Compute Hashed Message Authentication Code with SHA-1, over BUFFER + data of BUFLEN bytes using the KEY of KEYLEN bytes, writing the + output to pre-allocated 20 byte minimum RESBUF buffer. Return 0 on + success. */ +int +hmac_sha1 (const void *key, size_t keylen, + const void *in, size_t inlen, void *resbuf); + #endif /* HMAC_H */