Lines Matching refs:hmac
52 struct cc_hmac_s hmac;
95 struct cc_hmac_s *hmac = &ctx->auth_state.hmac;
97 if (hmac->ipad_opad) {
99 hmac->ipad_opad,
100 hmac->ipad_opad_dma_addr);
102 &hmac->ipad_opad_dma_addr);
103 hmac->ipad_opad_dma_addr = 0;
104 hmac->ipad_opad = NULL;
106 if (hmac->padded_authkey) {
108 hmac->padded_authkey,
109 hmac->padded_authkey_dma_addr);
111 &hmac->padded_authkey_dma_addr);
112 hmac->padded_authkey_dma_addr = 0;
113 hmac->padded_authkey = NULL;
169 struct cc_hmac_s *hmac = &ctx->auth_state.hmac;
171 dma_addr_t *pkey_dma = &hmac->padded_authkey_dma_addr;
174 hmac->ipad_opad = dma_alloc_coherent(dev, digest_size,
175 &hmac->ipad_opad_dma_addr,
178 if (!hmac->ipad_opad) {
184 hmac->ipad_opad);
186 hmac->padded_authkey = dma_alloc_coherent(dev,
191 if (!hmac->padded_authkey) {
196 ctx->auth_state.hmac.ipad_opad = NULL;
197 ctx->auth_state.hmac.padded_authkey = NULL;
301 struct cc_hmac_s *hmac = &ctx->auth_state.hmac;
338 hmac->padded_authkey_dma_addr,
349 (hmac->ipad_opad_dma_addr + digest_ofs),
407 /* This function prepers the user key so it can pass to the hmac processing
426 ctx->auth_state.hmac.padded_authkey_dma_addr;
1003 ctx->auth_state.hmac.ipad_opad_dma_addr, digest_size,
1132 (ctx->auth_state.hmac.ipad_opad_dma_addr + digest_size),
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",