Lines Matching full:co
29 return container_of(alg, struct lskcipher_alg, co.base); in __crypto_lskcipher_alg()
35 return skcipher_get_stat_common(&alg->co); in lskcipher_get_stat()
78 if (keylen < cipher->co.min_keysize || keylen > cipher->co.max_keysize) in crypto_lskcipher_setkey()
296 seq_printf(m, "min keysize : %u\n", skcipher->co.min_keysize); in crypto_lskcipher_show()
297 seq_printf(m, "max keysize : %u\n", skcipher->co.max_keysize); in crypto_lskcipher_show()
298 seq_printf(m, "ivsize : %u\n", skcipher->co.ivsize); in crypto_lskcipher_show()
299 seq_printf(m, "chunksize : %u\n", skcipher->co.chunksize); in crypto_lskcipher_show()
300 seq_printf(m, "statesize : %u\n", skcipher->co.statesize); in crypto_lskcipher_show()
315 rblkcipher.min_keysize = skcipher->co.min_keysize; in crypto_lskcipher_report()
316 rblkcipher.max_keysize = skcipher->co.max_keysize; in crypto_lskcipher_report()
317 rblkcipher.ivsize = skcipher->co.ivsize; in crypto_lskcipher_report()
410 struct crypto_alg *base = &alg->co.base; in lskcipher_prepare_alg()
413 err = skcipher_prepare_alg_common(&alg->co); in lskcipher_prepare_alg()
417 if (alg->co.chunksize & (alg->co.chunksize - 1)) in lskcipher_prepare_alg()
428 struct crypto_alg *base = &alg->co.base; in crypto_register_lskcipher()
441 crypto_unregister_alg(&alg->co.base); in crypto_unregister_lskcipher()
593 &cipher_alg->co.base); in lskcipher_alloc_instance_simple()
601 len = strscpy(ecb_name, &cipher_alg->co.base.cra_name[4], in lskcipher_alloc_instance_simple()
612 if (snprintf(inst->alg.co.base.cra_name, CRYPTO_MAX_ALG_NAME, in lskcipher_alloc_instance_simple()
618 snprintf(inst->alg.co.base.cra_driver_name, in lskcipher_alloc_instance_simple()
626 if ((cipher_alg->co.base.cra_flags & CRYPTO_ALG_INSTANCE)) in lskcipher_alloc_instance_simple()
631 if (cipher_alg->co.ivsize) in lskcipher_alloc_instance_simple()
637 inst->alg.co.base.cra_blocksize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
638 inst->alg.co.base.cra_alignmask = cipher_alg->co.base.cra_alignmask; in lskcipher_alloc_instance_simple()
639 inst->alg.co.base.cra_priority = cipher_alg->co.base.cra_priority; in lskcipher_alloc_instance_simple()
640 inst->alg.co.min_keysize = cipher_alg->co.min_keysize; in lskcipher_alloc_instance_simple()
641 inst->alg.co.max_keysize = cipher_alg->co.max_keysize; in lskcipher_alloc_instance_simple()
642 inst->alg.co.ivsize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
643 inst->alg.co.statesize = cipher_alg->co.statesize; in lskcipher_alloc_instance_simple()
646 inst->alg.co.base.cra_ctxsize = sizeof(struct crypto_lskcipher *); in lskcipher_alloc_instance_simple()