Lines Matching refs:data
127 } *data; in adiantum_setkey() local
141 data = kzalloc(sizeof(*data) + in adiantum_setkey()
143 if (!data) in adiantum_setkey()
145 data->iv[0] = 1; in adiantum_setkey()
146 sg_init_one(&data->sg, data->derived_keys, sizeof(data->derived_keys)); in adiantum_setkey()
147 crypto_init_wait(&data->wait); in adiantum_setkey()
148 skcipher_request_set_tfm(&data->req, tctx->streamcipher); in adiantum_setkey()
149 skcipher_request_set_callback(&data->req, CRYPTO_TFM_REQ_MAY_SLEEP | in adiantum_setkey()
151 crypto_req_done, &data->wait); in adiantum_setkey()
152 skcipher_request_set_crypt(&data->req, &data->sg, &data->sg, in adiantum_setkey()
153 sizeof(data->derived_keys), data->iv); in adiantum_setkey()
154 err = crypto_wait_req(crypto_skcipher_encrypt(&data->req), &data->wait); in adiantum_setkey()
157 keyp = data->derived_keys; in adiantum_setkey()
179 WARN_ON(keyp != &data->derived_keys[ARRAY_SIZE(data->derived_keys)]); in adiantum_setkey()
181 kfree_sensitive(data); in adiantum_setkey()
311 static void adiantum_streamcipher_done(void *data, int err) in adiantum_streamcipher_done() argument
313 struct skcipher_request *req = data; in adiantum_streamcipher_done()