diff options
Diffstat (limited to 'umac32.c')
-rw-r--r-- | umac32.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -101,8 +101,11 @@ umac32_digest (struct umac32_ctx *ctx, } assert (ctx->count > 0); if ( !(ctx->nonce_low & _UMAC_NONCE_CACHED)) - aes_encrypt (&ctx->pdf_key, AES_BLOCK_SIZE, - (uint8_t *) ctx->pad_cache, ctx->nonce); + { + aes_encrypt (&ctx->pdf_key, AES_BLOCK_SIZE, + (uint8_t *) ctx->pad_cache, ctx->nonce); + ctx->nonce_low |= _UMAC_NONCE_CACHED; + } pad = ctx->pad_cache[ctx->nonce_low & 3]; |