Lines Matching defs:authctx

2130 	struct atmel_sha_authenc_reqctx *authctx  = ahash_request_ctx(req);
2132 authctx->cb(authctx->aes_dev, err, authctx->base.dd->is_async);
2138 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2143 * atmel_sha_authenc_complete(), which in turn calls authctx->cb().
2148 return authctx->cb(authctx->aes_dev, err, dd->is_async);
2248 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2249 struct atmel_sha_reqctx *ctx = &authctx->base;
2255 memset(authctx, 0, sizeof(*authctx));
2265 authctx->cb = cb;
2266 authctx->aes_dev = aes_dev;
2280 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2281 struct atmel_sha_reqctx *ctx = &authctx->base;
2289 authctx->cb = cb;
2290 authctx->aes_dev = aes_dev;
2291 authctx->assoc = assoc;
2292 authctx->assoclen = assoclen;
2293 authctx->textlen = textlen;
2303 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2304 struct atmel_sha_reqctx *ctx = &authctx->base;
2325 msg_size = authctx->assoclen + authctx->textlen;
2332 return atmel_sha_cpu_start(dd, authctx->assoc, authctx->assoclen,
2340 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2342 return authctx->cb(authctx->aes_dev, 0, dd->is_async);
2350 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2351 struct atmel_sha_reqctx *ctx = &authctx->base;
2356 authctx->digestlen = SHA1_DIGEST_SIZE;
2360 authctx->digestlen = SHA224_DIGEST_SIZE;
2364 authctx->digestlen = SHA256_DIGEST_SIZE;
2368 authctx->digestlen = SHA384_DIGEST_SIZE;
2372 authctx->digestlen = SHA512_DIGEST_SIZE;
2378 if (authctx->digestlen > digestlen)
2379 authctx->digestlen = digestlen;
2381 authctx->cb = cb;
2382 authctx->aes_dev = aes_dev;
2383 authctx->digest = digest;
2392 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2393 size_t i, num_words = authctx->digestlen / sizeof(u32);
2396 authctx->digest[i] = atmel_sha_read(dd, SHA_REG_DIGEST(i));
2403 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2404 struct atmel_sha_reqctx *ctx = &authctx->base;