Lines Matching refs:hash_mode
69 int hash_mode; member
95 int hash_mode; member
151 if (ctx->hash_mode == DRV_HASH_SHA512 || in cc_init_req()
152 ctx->hash_mode == DRV_HASH_SHA384) in cc_init_req()
162 if (ctx->hash_mode != DRV_HASH_NULL) { in cc_init_req()
172 const void *larval = cc_larval_digest(dev, ctx->hash_mode); in cc_init_req()
209 if (is_hmac && ctx->hash_mode != DRV_HASH_NULL) { in cc_map_req()
351 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_fin_result()
358 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_fin_result()
378 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_fin_hmac()
395 cc_digest_len_addr(ctx->drvdata, ctx->hash_mode), in cc_fin_hmac()
468 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_hash_digest()
474 ctx->hash_mode); in cc_hash_digest()
484 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_hash_digest()
534 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_restore_hash()
543 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_restore_hash()
606 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_hash_update()
615 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_hash_update()
679 set_hash_cipher_mode(&desc[idx], ctx->hw_mode, ctx->hash_mode); in cc_do_finup()
746 larval_addr = cc_larval_digest_addr(ctx->drvdata, ctx->hash_mode); in cc_hash_setkey()
807 cc_set_endianity(ctx->hash_mode, &desc[idx]); in cc_hash_setkey()
1114 if (ctx->hash_mode == DRV_HASH_SM3) in cc_get_hash_len()
1133 ctx->hash_mode = cc_alg->hash_mode; in cc_cra_init()
1567 int hash_mode; member
1603 .hash_mode = DRV_HASH_SHA1,
1630 .hash_mode = DRV_HASH_SHA256,
1657 .hash_mode = DRV_HASH_SHA224,
1684 .hash_mode = DRV_HASH_SHA384,
1711 .hash_mode = DRV_HASH_SHA512,
1738 .hash_mode = DRV_HASH_MD5,
1763 .hash_mode = DRV_HASH_SM3,
1788 .hash_mode = DRV_HASH_NULL,
1813 .hash_mode = DRV_HASH_NULL,
1858 t_crypto_alg->hash_mode = template->hash_mode; in cc_alloc_hash_alg()
2086 set_hash_cipher_mode(&desc[idx], DRV_CIPHER_XCBC_MAC, ctx->hash_mode); in cc_setup_xcbc()