search for: hmac_update

Displaying 8 results from an estimated 8 matches for "hmac_update".

2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...str_size, - const unsigned char *salt, size_t salt_size, unsigned int i, - unsigned char result[SHA1_RESULTLEN]) -{ - struct hmac_context ctx; - unsigned char U[SHA1_RESULTLEN]; - unsigned int j, k; - - /* Calculate U1 */ - hmac_init(&ctx, str, str_size, &hash_method_sha1); - hmac_update(&ctx, salt, salt_size); - hmac_update(&ctx, "\0\0\0\1", 4); - hmac_final(&ctx, U); - - memcpy(result, U, SHA1_RESULTLEN); - - /* Calculate U2 to Ui and Hi */ - for (j = 2; j <= i; j++) { - hmac_init(&ctx, str, str_size, &hash_method_sha1); - hmac_update(&ctx,...
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...size != CRAM_MD5_CONTEXTLEN) { @@ -59,9 +61,10 @@ return FALSE; } + hmac_init(&ctx, NULL, 0, &hash_method_md5); hmac_md5_set_cram_context(&ctx, credentials); - hmac_md5_update(&ctx, request->challenge, strlen(request->challenge)); - hmac_md5_final(&ctx, digest); + hmac_update(&ctx, request->challenge, strlen(request->challenge)); + hmac_final(&ctx, digest); response_hex = binary_to_hex(digest, sizeof(digest)); diff --git a/src/auth/mech-scram-sha1.c b/src/auth/mech-scram-sha1.c --- a/src/auth/mech-scram-sha1.c +++ b/src/auth/mech-scram-sha1.c @@ -9,7...
2016 Nov 02
0
v2.2.26.0 released
...N_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ctx->ctx = HMAC_CTX_new(); if (ctx->ctx == NULL) return dcrypt_openssl_error(error_r); ec = HMAC_Init_ex(ctx->ctx, ctx->key, ctx->klen, ctx->md, NULL); @@ -484,7 +484,7 @@ static bool dcrypt_openssl_ctx_hmac_update(struct dcrypt_context_hmac *ctx, const unsigned char *data, size_t data_len, const char **error_r) { int ec; -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ec = HMAC_Update(ctx->ctx, data, data_len);...
2004 Jul 30
1
Compiling * on OpenBSD 3.5
...0: undefined reference to `RAND_pseudo_bytes' /usr/lib/libssl.so.8.0: undefined reference to `BIO_s_connect' /usr/lib/libssl.so.8.0: undefined reference to `EVP_PKEY_free' /usr/lib/libssl.so.8.0: undefined reference to `X509_TRUST_set' /usr/lib/libssl.so.8.0: undefined reference to `HMAC_Update' /usr/lib/libssl.so.8.0: undefined reference to `X509_STORE_CTX_set_verify_cb' /usr/lib/libssl.so.8.0: undefined reference to `ERR_load_strings' /usr/lib/libssl.so.8.0: undefined reference to `EVP_md2' /usr/lib/libssl.so.8.0: undefined reference to `HMAC_CTX_init' /usr/lib/libss...
2016 Nov 02
2
v2.2.26.0 released
If the standard way works, I am happy to include the original patch I sent, amended so that it checks for presence of LIBRESSL_VERSION_NUMBER. If they keep this promise, then we should have no worries about things breaking up. Aki On 02.11.2016 14:24, Michael A. Peters wrote: > Indeed, which is why I use it. > > But it also is in the minority which is why I find it acceptable for
2005 Aug 09
2
error compiling asterisk on solaris
...ce to `RAND_pseudo_bytes' /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_s_connect' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_PKEY_free' /usr/local/ssl/lib/libssl.so: undefined reference to `MD5_Update' /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Update' /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_CTX_set_verify_ cb' /usr/local/ssl/lib/libssl.so: undefined reference to `ERR_load_strings' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_md2' /usr/local/ssl/lib...
2006 Feb 11
7
Rails development on Mac OS X 10.4 Intel
...targets in passing argument 5 of ''EVP_CipherInit_ex'' differ in signedness S -DHAVE_ENGINE_GET_DIGEST -DHAVE_ENGINE_GET_CIPHER - DHAVE_ENGINE_CLEANUP -DHAVE_OPENSSL_OCSP_H -DHAVE_ST_FLAGS - DHAVE_ST_ENGINE -DHAVE_ST_SINGLE -c ossl_hmac.c ossl_hmac.c: In function ''ossl_hmac_update'': ossl_hmac.c:97: warning: pointer targets in passing argument 2 of ''HMAC_Update'' differ in signedness ossl_hmac.c: In function ''hmac_final'': ossl_hmac.c:115: warning: pointer targets in passing argument 2 of ''HMAC_Final'' differ in...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...emset(key, test_cases[i].key[0], test_cases[i].key_len); - hmac_init(&ctx, key, test_cases[i].key_len); - } else { - hmac_init(&ctx, test_cases[i].key, test_cases[i].key_len); - } -- for (j = 0; j < test_cases[i].data_len; j += strlen(test_cases[i].data)) { -- hmac_update(&ctx, test_cases[i].data, strlen(test_cases[i].data)); -+ for (j = 0; j < test_cases[i].data_len; j += strlen((char*)test_cases[i].data)) { -+ hmac_update(&ctx, test_cases[i].data, strlen((char*)test_cases[i].data)); - } - hmac_final(&ctx, digest); - if (memcmp(di...