Lines Matching defs:authctx

2132 	struct atmel_sha_authenc_reqctx *authctx  = ahash_request_ctx(req);
2134 authctx->cb(authctx->aes_dev, err, authctx->base.dd->is_async);
2140 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2145 * atmel_sha_authenc_complete(), which in turn calls authctx->cb().
2150 return authctx->cb(authctx->aes_dev, err, dd->is_async);
2250 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2251 struct atmel_sha_reqctx *ctx = &authctx->base;
2257 memset(authctx, 0, sizeof(*authctx));
2267 authctx->cb = cb;
2268 authctx->aes_dev = aes_dev;
2282 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2283 struct atmel_sha_reqctx *ctx = &authctx->base;
2291 authctx->cb = cb;
2292 authctx->aes_dev = aes_dev;
2293 authctx->assoc = assoc;
2294 authctx->assoclen = assoclen;
2295 authctx->textlen = textlen;
2305 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2306 struct atmel_sha_reqctx *ctx = &authctx->base;
2327 msg_size = authctx->assoclen + authctx->textlen;
2334 return atmel_sha_cpu_start(dd, authctx->assoc, authctx->assoclen,
2342 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2344 return authctx->cb(authctx->aes_dev, 0, dd->is_async);
2352 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2353 struct atmel_sha_reqctx *ctx = &authctx->base;
2358 authctx->digestlen = SHA1_DIGEST_SIZE;
2362 authctx->digestlen = SHA224_DIGEST_SIZE;
2366 authctx->digestlen = SHA256_DIGEST_SIZE;
2370 authctx->digestlen = SHA384_DIGEST_SIZE;
2374 authctx->digestlen = SHA512_DIGEST_SIZE;
2380 if (authctx->digestlen > digestlen)
2381 authctx->digestlen = digestlen;
2383 authctx->cb = cb;
2384 authctx->aes_dev = aes_dev;
2385 authctx->digest = digest;
2394 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2395 size_t i, num_words = authctx->digestlen / sizeof(u32);
2398 authctx->digest[i] = atmel_sha_read(dd, SHA_REG_DIGEST(i));
2405 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2406 struct atmel_sha_reqctx *ctx = &authctx->base;