Lines Matching defs:authctx

2106 	struct atmel_sha_authenc_reqctx *authctx  = ahash_request_ctx(req);
2108 authctx->cb(authctx->aes_dev, err, authctx->base.dd->is_async);
2114 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2119 * atmel_sha_authenc_complete(), which in turn calls authctx->cb().
2124 return authctx->cb(authctx->aes_dev, err, dd->is_async);
2224 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2225 struct atmel_sha_reqctx *ctx = &authctx->base;
2231 memset(authctx, 0, sizeof(*authctx));
2241 authctx->cb = cb;
2242 authctx->aes_dev = aes_dev;
2256 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2257 struct atmel_sha_reqctx *ctx = &authctx->base;
2265 authctx->cb = cb;
2266 authctx->aes_dev = aes_dev;
2267 authctx->assoc = assoc;
2268 authctx->assoclen = assoclen;
2269 authctx->textlen = textlen;
2279 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2280 struct atmel_sha_reqctx *ctx = &authctx->base;
2301 msg_size = authctx->assoclen + authctx->textlen;
2308 return atmel_sha_cpu_start(dd, authctx->assoc, authctx->assoclen,
2316 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2318 return authctx->cb(authctx->aes_dev, 0, dd->is_async);
2326 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2327 struct atmel_sha_reqctx *ctx = &authctx->base;
2332 authctx->digestlen = SHA1_DIGEST_SIZE;
2336 authctx->digestlen = SHA224_DIGEST_SIZE;
2340 authctx->digestlen = SHA256_DIGEST_SIZE;
2344 authctx->digestlen = SHA384_DIGEST_SIZE;
2348 authctx->digestlen = SHA512_DIGEST_SIZE;
2354 if (authctx->digestlen > digestlen)
2355 authctx->digestlen = digestlen;
2357 authctx->cb = cb;
2358 authctx->aes_dev = aes_dev;
2359 authctx->digest = digest;
2368 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2369 size_t i, num_words = authctx->digestlen / sizeof(u32);
2372 authctx->digest[i] = atmel_sha_read(dd, SHA_REG_DIGEST(i));
2379 struct atmel_sha_authenc_reqctx *authctx = ahash_request_ctx(req);
2380 struct atmel_sha_reqctx *ctx = &authctx->base;