search for: sha1_ctxt

Displaying 4 results from an estimated 4 matches for "sha1_ctxt".

2013 Aug 21
1
Bug in dovecot 2.2.5: segfault due to bad alignment
...with an alignment of 4 is passed to meth->init and meth->loop where meth refers to hash_method_sha1: meth->init(ctx->ctx); meth->loop(ctx->ctx, k_ipad, 64); These functions refer now to sha1_init and sha1_loop where the first parameter is expected to be a pointer to struct sha1_ctxt, a data structure which is declared in sha1.h: struct sha1_ctxt { union { uint8_t b8[20]; uint32_t b32[5]; } h; union { uint8_t b8[8]; uint64_t b64[1]; } c; union {...
2004 Oct 29
2
Test51 compile problems
First of all, thanks for a great product. I've been able to get dovecot up and running with minimum pain. Very nice. Running Fedora Core 2 with postfix using mysql for virtual mailbox config. Got release version of dovecot working with a passwd-file, then I wanted to try it out with using the same mysql db as postfix, so I downloaded test51. I run ./configure --sysconfdir=/etc
2006 Jun 26
1
[PATCH, RFC 0/13] OTP: add auth_cache_remove()
This patchset add support for One-Time-Password authentication mechanisms, both S/Key (RFC 1731) and OTP (RFC 2444) are implemented. Tested with mutt (uses cyrus sasl library for authentication). Patches were made against CVS HEAD. Please take a look. Add auth_cache_remove() function which will be used by OTP code to evict old entries from auth cache. diff -urdpNX /usr/share/dontdiff -x
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...20); - sha1_result(&ctx->ctxo, digest); -} diff --git a/src/lib/hmac-sha1.h b/src/lib/hmac-sha1.h deleted file mode 100644 --- a/src/lib/hmac-sha1.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef HMAC_SHA1_H -#define HMAC_SHA1_H - -#include "sha1.h" - -struct hmac_sha1_context { - struct sha1_ctxt ctx, ctxo; -}; - -void hmac_sha1_init(struct hmac_sha1_context *ctx, - const unsigned char *key, size_t key_len); -void hmac_sha1_final(struct hmac_sha1_context *ctx, - unsigned char digest[SHA1_RESULTLEN]); - - -static inline void -hmac_sha1_update(struct hmac_sha1_context *ctx, const voi...