Lines Matching full:hmac

52 		struct cc_hmac_s hmac;  member
94 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC auth. */ in cc_aead_exit()
95 struct cc_hmac_s *hmac = &ctx->auth_state.hmac; in cc_aead_exit() local
97 if (hmac->ipad_opad) { in cc_aead_exit()
99 hmac->ipad_opad, in cc_aead_exit()
100 hmac->ipad_opad_dma_addr); in cc_aead_exit()
102 &hmac->ipad_opad_dma_addr); in cc_aead_exit()
103 hmac->ipad_opad_dma_addr = 0; in cc_aead_exit()
104 hmac->ipad_opad = NULL; in cc_aead_exit()
106 if (hmac->padded_authkey) { in cc_aead_exit()
108 hmac->padded_authkey, in cc_aead_exit()
109 hmac->padded_authkey_dma_addr); in cc_aead_exit()
111 &hmac->padded_authkey_dma_addr); in cc_aead_exit()
112 hmac->padded_authkey_dma_addr = 0; in cc_aead_exit()
113 hmac->padded_authkey = NULL; in cc_aead_exit()
168 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC authentication */ in cc_aead_init()
169 struct cc_hmac_s *hmac = &ctx->auth_state.hmac; in cc_aead_init() local
171 dma_addr_t *pkey_dma = &hmac->padded_authkey_dma_addr; in cc_aead_init()
174 hmac->ipad_opad = dma_alloc_coherent(dev, digest_size, in cc_aead_init()
175 &hmac->ipad_opad_dma_addr, in cc_aead_init()
178 if (!hmac->ipad_opad) { in cc_aead_init()
184 hmac->ipad_opad); in cc_aead_init()
186 hmac->padded_authkey = dma_alloc_coherent(dev, in cc_aead_init()
191 if (!hmac->padded_authkey) { in cc_aead_init()
196 ctx->auth_state.hmac.ipad_opad = NULL; in cc_aead_init()
197 ctx->auth_state.hmac.padded_authkey = NULL; in cc_aead_init()
301 struct cc_hmac_s *hmac = &ctx->auth_state.hmac; in hmac_setkey() local
306 /* calc derived HMAC key */ in hmac_setkey()
338 hmac->padded_authkey_dma_addr, in hmac_setkey()
349 (hmac->ipad_opad_dma_addr + digest_ofs), in hmac_setkey()
407 /* This function prepers the user key so it can pass to the hmac processing
426 ctx->auth_state.hmac.padded_authkey_dma_addr; in cc_get_plain_hmac_key()
601 } else if (ctx->auth_mode != DRV_HASH_NULL) { /* HMAC */ in cc_aead_setkey()
1003 ctx->auth_state.hmac.ipad_opad_dma_addr, digest_size, in cc_set_hmac_desc()
1132 (ctx->auth_state.hmac.ipad_opad_dma_addr + digest_size), in cc_proc_scheme_desc()
2299 .name = "authenc(hmac(sha1),cbc(aes))",
2300 .driver_name = "authenc-hmac-sha1-cbc-aes-ccree",
2319 .name = "authenc(hmac(sha1),cbc(des3_ede))",
2320 .driver_name = "authenc-hmac-sha1-cbc-des3-ccree",
2339 .name = "authenc(hmac(sha256),cbc(aes))",
2340 .driver_name = "authenc-hmac-sha256-cbc-aes-ccree",
2359 .name = "authenc(hmac(sha256),cbc(des3_ede))",
2360 .driver_name = "authenc-hmac-sha256-cbc-des3-ccree",
2399 .name = "authenc(hmac(sha1),rfc3686(ctr(aes)))",
2400 .driver_name = "authenc-hmac-sha1-rfc3686-ctr-aes-ccree",
2419 .name = "authenc(hmac(sha256),rfc3686(ctr(aes)))",
2420 .driver_name = "authenc-hmac-sha256-rfc3686-ctr-aes-ccree",