• Home
  • Raw
  • Download

Lines Matching refs:inst

289 	struct skcipher_instance *inst = skcipher_alg_instance(tfm);  in crypto_cts_init_tfm()  local
290 struct crypto_skcipher_spawn *spawn = skcipher_instance_ctx(inst); in crypto_cts_init_tfm()
322 static void crypto_cts_free(struct skcipher_instance *inst) in crypto_cts_free() argument
324 crypto_drop_skcipher(skcipher_instance_ctx(inst)); in crypto_cts_free()
325 kfree(inst); in crypto_cts_free()
331 struct skcipher_instance *inst; in crypto_cts_create() local
348 inst = kzalloc(sizeof(*inst) + sizeof(*spawn), GFP_KERNEL); in crypto_cts_create()
349 if (!inst) in crypto_cts_create()
352 spawn = skcipher_instance_ctx(inst); in crypto_cts_create()
354 crypto_set_skcipher_spawn(spawn, skcipher_crypto_instance(inst)); in crypto_cts_create()
370 err = crypto_inst_setname(skcipher_crypto_instance(inst), "cts", in crypto_cts_create()
375 inst->alg.base.cra_flags = alg->base.cra_flags & CRYPTO_ALG_ASYNC; in crypto_cts_create()
376 inst->alg.base.cra_priority = alg->base.cra_priority; in crypto_cts_create()
377 inst->alg.base.cra_blocksize = alg->base.cra_blocksize; in crypto_cts_create()
378 inst->alg.base.cra_alignmask = alg->base.cra_alignmask; in crypto_cts_create()
380 inst->alg.ivsize = alg->base.cra_blocksize; in crypto_cts_create()
381 inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); in crypto_cts_create()
382 inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg); in crypto_cts_create()
383 inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg); in crypto_cts_create()
385 inst->alg.base.cra_ctxsize = sizeof(struct crypto_cts_ctx); in crypto_cts_create()
387 inst->alg.init = crypto_cts_init_tfm; in crypto_cts_create()
388 inst->alg.exit = crypto_cts_exit_tfm; in crypto_cts_create()
390 inst->alg.setkey = crypto_cts_setkey; in crypto_cts_create()
391 inst->alg.encrypt = crypto_cts_encrypt; in crypto_cts_create()
392 inst->alg.decrypt = crypto_cts_decrypt; in crypto_cts_create()
394 inst->free = crypto_cts_free; in crypto_cts_create()
396 err = skcipher_register_instance(tmpl, inst); in crypto_cts_create()
406 kfree(inst); in crypto_cts_create()