diff options
author | jbj <devnull@localhost> | 2004-08-02 00:45:38 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-08-02 00:45:38 +0000 |
commit | 8931f04c4dcc79d665aa703594f93ada56b6e0b9 (patch) | |
tree | f304054ab421004098182ef6051110ef3aec28bd /beecrypt/hmacsha1.c | |
parent | 8462a31960e9cfd3274b83edd59f9cc3b74c40d2 (diff) | |
download | librpm-tizen-8931f04c4dcc79d665aa703594f93ada56b6e0b9.tar.gz librpm-tizen-8931f04c4dcc79d665aa703594f93ada56b6e0b9.tar.bz2 librpm-tizen-8931f04c4dcc79d665aa703594f93ada56b6e0b9.zip |
Upgrade to beecrypt-4.0.0.
CVS patchset: 7372
CVS date: 2004/08/02 00:45:38
Diffstat (limited to 'beecrypt/hmacsha1.c')
-rw-r--r-- | beecrypt/hmacsha1.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/beecrypt/hmacsha1.c b/beecrypt/hmacsha1.c index ad8796a33..f201a45f0 100644 --- a/beecrypt/hmacsha1.c +++ b/beecrypt/hmacsha1.c @@ -27,31 +27,32 @@ * \ingroup HMAC_m HMAC_sha1_m */ -#include "system.h" -#include "hmacsha1.h" -#include "debug.h" +#define BEECRYPT_DLL_EXPORT + +#if HAVE_CONFIG_H +# include "config.h" +#endif + +#include "beecrypt/hmacsha1.h" /*!\addtogroup HMAC_sha1_m * \{ */ -/*@-sizeoftype@*/ const keyedHashFunction hmacsha1 = { "HMAC-SHA-1", sizeof(hmacsha1Param), - 64U, - 5U * sizeof(uint32_t), - 64U, - 512U, - 32U, + 64, + 20, + 64, + 512, + 32, (keyedHashFunctionSetup) hmacsha1Setup, (keyedHashFunctionReset) hmacsha1Reset, (keyedHashFunctionUpdate) hmacsha1Update, (keyedHashFunctionDigest) hmacsha1Digest }; -/*@=sizeoftype@*/ -/*@-type@*/ /* fix: cast to (hashFunctionParam*) */ int hmacsha1Setup (hmacsha1Param* sp, const byte* key, size_t keybits) { return hmacSetup(sp->kxi, sp->kxo, &sha1, &sp->sparam, key, keybits); @@ -71,7 +72,6 @@ int hmacsha1Digest(hmacsha1Param* sp, byte* data) { return hmacDigest(sp->kxo, &sha1, &sp->sparam, data); } -/*@=type@*/ /*!\} */ |