diff options
author | deshevoy <deshevoy@yandex-team.ru> | 2022-02-10 16:46:57 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:57 +0300 |
commit | 28148f76dbfcc644d96427d41c92f36cbf2fdc6e (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /contrib/libs/curl/lib/hmac.c | |
parent | e988f30484abe5fdeedcc7a5d3c226c01a21800c (diff) | |
download | ydb-28148f76dbfcc644d96427d41c92f36cbf2fdc6e.tar.gz |
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/curl/lib/hmac.c')
-rw-r--r-- | contrib/libs/curl/lib/hmac.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libs/curl/lib/hmac.c b/contrib/libs/curl/lib/hmac.c index be356ed802..590abe6d2e 100644 --- a/contrib/libs/curl/lib/hmac.c +++ b/contrib/libs/curl/lib/hmac.c @@ -26,10 +26,10 @@ #ifndef CURL_DISABLE_CRYPTO_AUTH -#include <curl/curl.h> - +#include <curl/curl.h> + #include "curl_hmac.h" -#include "curl_memory.h" +#include "curl_memory.h" #include "warnless.h" /* The last #include file should be: */ @@ -50,16 +50,16 @@ static const unsigned char hmac_opad = 0x5C; struct HMAC_context * Curl_HMAC_init(const struct HMAC_params *hashparams, - const unsigned char *key, + const unsigned char *key, unsigned int keylen) { size_t i; struct HMAC_context *ctxt; - unsigned char *hkey; + unsigned char *hkey; unsigned char b; /* Create HMAC context. */ - i = sizeof(*ctxt) + 2 * hashparams->hmac_ctxtsize + + i = sizeof(*ctxt) + 2 * hashparams->hmac_ctxtsize + hashparams->hmac_resultlen; ctxt = malloc(i); @@ -102,7 +102,7 @@ Curl_HMAC_init(const struct HMAC_params *hashparams, } int Curl_HMAC_update(struct HMAC_context *ctxt, - const unsigned char *data, + const unsigned char *data, unsigned int len) { /* Update first hash calculation. */ |