Lines Matching refs:auth_mode

60 	enum drv_hash_mode auth_mode;  member
86 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { /* XCBC authetication */ in cc_aead_exit()
98 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC auth. */ in cc_aead_exit()
143 ctx->auth_mode = cc_alg->auth_mode; in cc_aead_init()
159 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { /* XCBC authetication */ in cc_aead_init()
172 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC authentication */ in cc_aead_init()
300 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey()
302 unsigned int digest_size = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey()
316 ctx->auth_mode), in hmac_setkey()
372 switch (ctx->auth_mode) { in validate_keys_sizes()
387 dev_err(dev, "Invalid auth_mode=%d\n", ctx->auth_mode); in validate_keys_sizes()
419 u32 larval_addr = cc_larval_digest_addr(ctx->drvdata, ctx->auth_mode); in cc_get_plain_hmac_key()
431 switch (ctx->auth_mode) { /* auth_key required and >0 */ in cc_get_plain_hmac_key()
559 if (ctx->auth_mode != DRV_HASH_NULL) { /* authenc() alg. */ in cc_aead_setkey()
601 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { in cc_aead_setkey()
604 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC */ in cc_aead_setkey()
612 switch (ctx->auth_mode) { in cc_aead_setkey()
623 dev_err(dev, "Unsupported authenc (%d)\n", ctx->auth_mode); in cc_aead_setkey()
748 if (ctx->auth_mode == DRV_HASH_XCBC_MAC && in cc_set_assoc_desc()
758 if (ctx->auth_mode == DRV_HASH_XCBC_MAC && in cc_set_assoc_desc()
888 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_digest_desc()
900 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { in cc_proc_digest_desc()
919 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { in cc_proc_digest_desc()
1003 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_set_hmac_desc()
1005 unsigned int digest_size = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_set_hmac_desc()
1113 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_scheme_desc()
1115 unsigned int digest_size = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_scheme_desc()
2001 switch (ctx->auth_mode) { in cc_proc_aead()
2016 dev_err(dev, "Unsupported authenc (%d)\n", ctx->auth_mode); in cc_proc_aead()
2373 .auth_mode = DRV_HASH_SHA1,
2393 .auth_mode = DRV_HASH_SHA1,
2413 .auth_mode = DRV_HASH_SHA256,
2433 .auth_mode = DRV_HASH_SHA256,
2453 .auth_mode = DRV_HASH_XCBC_MAC,
2473 .auth_mode = DRV_HASH_SHA1,
2493 .auth_mode = DRV_HASH_SHA256,
2513 .auth_mode = DRV_HASH_XCBC_MAC,
2533 .auth_mode = DRV_HASH_NULL,
2553 .auth_mode = DRV_HASH_NULL,
2573 .auth_mode = DRV_HASH_NULL,
2593 .auth_mode = DRV_HASH_NULL,
2613 .auth_mode = DRV_HASH_NULL,
2646 t_alg->auth_mode = tmpl->auth_mode; in cc_create_aead_alg()