Lines Matching refs:auth_mode

61 	enum drv_hash_mode auth_mode;  member
82 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { /* XCBC authetication */ in cc_aead_exit()
94 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC auth. */ in cc_aead_exit()
139 ctx->auth_mode = cc_alg->auth_mode; in cc_aead_init()
155 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { /* XCBC authetication */ in cc_aead_init()
168 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC authentication */ in cc_aead_init()
297 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey()
299 unsigned int digest_size = (ctx->auth_mode == DRV_HASH_SHA1) ? in hmac_setkey()
313 ctx->auth_mode), in hmac_setkey()
369 switch (ctx->auth_mode) { in validate_keys_sizes()
384 dev_dbg(dev, "Invalid auth_mode=%d\n", ctx->auth_mode); in validate_keys_sizes()
428 switch (ctx->auth_mode) { /* auth_key required and >0 */ in cc_get_plain_hmac_key()
459 ctx->auth_mode); in cc_get_plain_hmac_key()
557 if (ctx->auth_mode != DRV_HASH_NULL) { /* authenc() alg. */ in cc_aead_setkey()
598 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { in cc_aead_setkey()
601 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC */ in cc_aead_setkey()
609 switch (ctx->auth_mode) { in cc_aead_setkey()
620 dev_err(dev, "Unsupported authenc (%d)\n", ctx->auth_mode); in cc_aead_setkey()
738 if (ctx->auth_mode == DRV_HASH_XCBC_MAC && in cc_set_assoc_desc()
748 if (ctx->auth_mode == DRV_HASH_XCBC_MAC && in cc_set_assoc_desc()
878 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_digest_desc()
890 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { in cc_proc_digest_desc()
909 if (ctx->auth_mode == DRV_HASH_XCBC_MAC) { in cc_proc_digest_desc()
993 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_set_hmac_desc()
995 unsigned int digest_size = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_set_hmac_desc()
1103 unsigned int hash_mode = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_scheme_desc()
1105 unsigned int digest_size = (ctx->auth_mode == DRV_HASH_SHA1) ? in cc_proc_scheme_desc()
1986 switch (ctx->auth_mode) { in cc_proc_aead()
2001 dev_err(dev, "Unsupported authenc (%d)\n", ctx->auth_mode); in cc_proc_aead()
2314 .auth_mode = DRV_HASH_SHA1,
2334 .auth_mode = DRV_HASH_SHA1,
2354 .auth_mode = DRV_HASH_SHA256,
2374 .auth_mode = DRV_HASH_SHA256,
2394 .auth_mode = DRV_HASH_XCBC_MAC,
2414 .auth_mode = DRV_HASH_SHA1,
2434 .auth_mode = DRV_HASH_SHA256,
2454 .auth_mode = DRV_HASH_XCBC_MAC,
2474 .auth_mode = DRV_HASH_NULL,
2494 .auth_mode = DRV_HASH_NULL,
2514 .auth_mode = DRV_HASH_NULL,
2534 .auth_mode = DRV_HASH_NULL,
2554 .auth_mode = DRV_HASH_NULL,
2588 t_alg->auth_mode = tmpl->auth_mode; in cc_create_aead_alg()