Lines Matching refs:hmac

52 		struct cc_hmac_s hmac;  member
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()
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
338 hmac->padded_authkey_dma_addr, in hmac_setkey()
349 (hmac->ipad_opad_dma_addr + digest_ofs), in hmac_setkey()
426 ctx->auth_state.hmac.padded_authkey_dma_addr; in cc_get_plain_hmac_key()
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()