Merge git://github.com/herbertx/crypto

* git://github.com/herbertx/crypto:
  crypto: mv_cesa - fix hashing of chunks > 1920 bytes
tirimbino
Linus Torvalds 13 years ago
commit dd38d29838
  1. 12
      drivers/crypto/mv_cesa.c

@ -343,11 +343,13 @@ static void mv_process_hash_current(int first_block)
else else
op.config |= CFG_MID_FRAG; op.config |= CFG_MID_FRAG;
writel(req_ctx->state[0], cpg->reg + DIGEST_INITIAL_VAL_A); if (first_block) {
writel(req_ctx->state[1], cpg->reg + DIGEST_INITIAL_VAL_B); writel(req_ctx->state[0], cpg->reg + DIGEST_INITIAL_VAL_A);
writel(req_ctx->state[2], cpg->reg + DIGEST_INITIAL_VAL_C); writel(req_ctx->state[1], cpg->reg + DIGEST_INITIAL_VAL_B);
writel(req_ctx->state[3], cpg->reg + DIGEST_INITIAL_VAL_D); writel(req_ctx->state[2], cpg->reg + DIGEST_INITIAL_VAL_C);
writel(req_ctx->state[4], cpg->reg + DIGEST_INITIAL_VAL_E); writel(req_ctx->state[3], cpg->reg + DIGEST_INITIAL_VAL_D);
writel(req_ctx->state[4], cpg->reg + DIGEST_INITIAL_VAL_E);
}
} }
memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config)); memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config));

Loading…
Cancel
Save