Lines Matching full:co
29 return container_of(alg, struct lskcipher_alg, co.base); in __crypto_lskcipher_alg()
59 if (keylen < cipher->co.min_keysize || keylen > cipher->co.max_keysize) in crypto_lskcipher_setkey()
256 seq_printf(m, "min keysize : %u\n", skcipher->co.min_keysize); in crypto_lskcipher_show()
257 seq_printf(m, "max keysize : %u\n", skcipher->co.max_keysize); in crypto_lskcipher_show()
258 seq_printf(m, "ivsize : %u\n", skcipher->co.ivsize); in crypto_lskcipher_show()
259 seq_printf(m, "chunksize : %u\n", skcipher->co.chunksize); in crypto_lskcipher_show()
260 seq_printf(m, "statesize : %u\n", skcipher->co.statesize); in crypto_lskcipher_show()
275 rblkcipher.min_keysize = skcipher->co.min_keysize; in crypto_lskcipher_report()
276 rblkcipher.max_keysize = skcipher->co.max_keysize; in crypto_lskcipher_report()
277 rblkcipher.ivsize = skcipher->co.ivsize; in crypto_lskcipher_report()
345 struct crypto_alg *base = &alg->co.base; in lskcipher_prepare_alg()
348 err = skcipher_prepare_alg_common(&alg->co); in lskcipher_prepare_alg()
352 if (alg->co.chunksize & (alg->co.chunksize - 1)) in lskcipher_prepare_alg()
363 struct crypto_alg *base = &alg->co.base; in crypto_register_lskcipher()
376 crypto_unregister_alg(&alg->co.base); in crypto_unregister_lskcipher()
528 &cipher_alg->co.base); in lskcipher_alloc_instance_simple()
536 len = strscpy(ecb_name, &cipher_alg->co.base.cra_name[4], in lskcipher_alloc_instance_simple()
547 if (snprintf(inst->alg.co.base.cra_name, CRYPTO_MAX_ALG_NAME, in lskcipher_alloc_instance_simple()
553 snprintf(inst->alg.co.base.cra_driver_name, in lskcipher_alloc_instance_simple()
561 if ((cipher_alg->co.base.cra_flags & CRYPTO_ALG_INSTANCE)) in lskcipher_alloc_instance_simple()
566 if (cipher_alg->co.ivsize) in lskcipher_alloc_instance_simple()
572 inst->alg.co.base.cra_blocksize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
573 inst->alg.co.base.cra_alignmask = cipher_alg->co.base.cra_alignmask; in lskcipher_alloc_instance_simple()
574 inst->alg.co.base.cra_priority = cipher_alg->co.base.cra_priority; in lskcipher_alloc_instance_simple()
575 inst->alg.co.min_keysize = cipher_alg->co.min_keysize; in lskcipher_alloc_instance_simple()
576 inst->alg.co.max_keysize = cipher_alg->co.max_keysize; in lskcipher_alloc_instance_simple()
577 inst->alg.co.ivsize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
578 inst->alg.co.statesize = cipher_alg->co.statesize; in lskcipher_alloc_instance_simple()
581 inst->alg.co.base.cra_ctxsize = sizeof(struct crypto_lskcipher *); in lskcipher_alloc_instance_simple()