Lines Matching refs:data
127 } *data; in adiantum_setkey() local
144 data = kzalloc(sizeof(*data) + in adiantum_setkey()
146 if (!data) in adiantum_setkey()
148 data->iv[0] = 1; in adiantum_setkey()
149 sg_init_one(&data->sg, data->derived_keys, sizeof(data->derived_keys)); in adiantum_setkey()
150 crypto_init_wait(&data->wait); in adiantum_setkey()
151 skcipher_request_set_tfm(&data->req, tctx->streamcipher); in adiantum_setkey()
152 skcipher_request_set_callback(&data->req, CRYPTO_TFM_REQ_MAY_SLEEP | in adiantum_setkey()
154 crypto_req_done, &data->wait); in adiantum_setkey()
155 skcipher_request_set_crypt(&data->req, &data->sg, &data->sg, in adiantum_setkey()
156 sizeof(data->derived_keys), data->iv); in adiantum_setkey()
157 err = crypto_wait_req(crypto_skcipher_encrypt(&data->req), &data->wait); in adiantum_setkey()
160 keyp = data->derived_keys; in adiantum_setkey()
187 WARN_ON(keyp != &data->derived_keys[ARRAY_SIZE(data->derived_keys)]); in adiantum_setkey()
189 kzfree(data); in adiantum_setkey()
322 struct skcipher_request *req = areq->data; in adiantum_streamcipher_done()