search for: ctxo

Displaying 2 results from an estimated 2 matches for "ctxo".

Did you mean: ctx
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
..."md5.h" +#include "hmac.h" +#include "hmac-cram-md5.h" + +void hmac_md5_get_cram_context(struct hmac_context *hmac_ctx, + unsigned char context_digest[CRAM_MD5_CONTEXTLEN]) +{ + unsigned char *cdp; + + struct md5_context *ctx = hmac_ctx->ctx; + struct md5_context *ctxo = hmac_ctx->ctxo; + +#define CDPUT(p, c) STMT_START { \ + *(p)++ = (c) & 0xff; \ + *(p)++ = (c) >> 8 & 0xff; \ + *(p)++ = (c) >> 16 & 0xff; \ + *(p)++ = (c) >> 24 & 0xff; \ +} STMT_END + cdp = context_digest; + CDPUT(cdp, ctxo->a); + CDPUT(cdp, ctxo-...
2013 Aug 21
1
Bug in dovecot 2.2.5: segfault due to bad alignment
Take a look at the sources, hmac.h declares struct hmac_context: struct hmac_context { char ctx[HMAC_MAX_CONTEXT_SIZE]; char ctxo[HMAC_MAX_CONTEXT_SIZE]; const struct hash_method *hash; }; If compiled for a 32 bit virtual address space, this has an alignment requirement of 4 due to the hash pointer. In line 171 of auth-token.c, we have following declaration of ctx as a local variable in auth_token_get(): s...