search for: hmac_fin

Displaying 7 results from an estimated 7 matches for "hmac_fin".

Did you mean: hmac_final
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
..._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 +9,8 @@ #include "auth-common.h" #include "base64.h"...
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...signed 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, U, sizeof(U)); - hmac_final(&ctx, U); - for (k = 0; k < SHA1_RESULTLEN; k++) -...
2006 Feb 11
7
Rails development on Mac OS X 10.4 Intel
...ENSSL_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 signedness ossl_hmac.c:115: warning: pointer targets in passing argument 3 of ''HMAC_Final'' differ in signedness ossl_hmac.c: In function ''ossl_hmac...
2016 Nov 02
0
v2.2.26.0 released
...nt ec; -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ec = HMAC_Update(ctx->ctx, data, data_len); #else ec = HMAC_Update(&(ctx->ctx), data, data_len); @@ -498,7 +498,7 @@ bool dcrypt_openssl_ctx_hmac_final(struct dcrypt_conte int ec; unsigned char buf[HMAC_MAX_MD_CBLOCK]; unsigned int outl; -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) ec = HMAC_Final(ctx->ctx, buf, &outl); HMAC_CTX_free(ctx-...
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
...to `BIO_free_all' /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_get_retry_reason' /usr/local/ssl/lib/libssl.so: undefined reference to `X509_STORE_new' /usr/local/ssl/lib/libssl.so: undefined reference to `SHA1_Init' /usr/local/ssl/lib/libssl.so: undefined reference to `HMAC_Final' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_md5' /usr/local/ssl/lib/libssl.so: undefined reference to `ASN1_object_size' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_get_cipherbyname' /usr/local/ssl/lib/libssl.so: undefined reference to `EVP_rc4' /u...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...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(digest, test_cases[i].digest, SHA1_DIGEST_LENGTH) != 0) return -1; -@@ -173,9 +174,9 @@ static int tpm_test_hmac(void) - static int tpm_test_rsa_EK(void) - { - int res = 0; -- char *data = "RSA PKCS #1 v1.5 Test-String"; -+ uint8_t *data = (uint8_...