Lines Matching full:cipher
3 * Linear symmetric key cipher operations.
36 struct lskcipher_alg *cipher = crypto_lskcipher_alg(tfm); in lskcipher_setkey_unaligned() local
48 ret = cipher->setkey(tfm, alignbuffer, keylen); in lskcipher_setkey_unaligned()
57 struct lskcipher_alg *cipher = crypto_lskcipher_alg(tfm); in crypto_lskcipher_setkey() local
59 if (keylen < cipher->co.min_keysize || keylen > cipher->co.max_keysize) in crypto_lskcipher_setkey()
65 return cipher->setkey(tfm, key, keylen); in crypto_lskcipher_setkey()
428 struct crypto_lskcipher *cipher = lskcipher_cipher_simple(tfm); in lskcipher_setkey_simple() local
430 crypto_lskcipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK); in lskcipher_setkey_simple()
431 crypto_lskcipher_set_flags(cipher, crypto_lskcipher_get_flags(tfm) & in lskcipher_setkey_simple()
433 return crypto_lskcipher_setkey(cipher, key, keylen); in lskcipher_setkey_simple()
441 struct crypto_lskcipher *cipher; in lskcipher_init_tfm_simple() local
444 cipher = crypto_spawn_lskcipher(spawn); in lskcipher_init_tfm_simple()
445 if (IS_ERR(cipher)) in lskcipher_init_tfm_simple()
446 return PTR_ERR(cipher); in lskcipher_init_tfm_simple()
448 *ctx = cipher; in lskcipher_init_tfm_simple()
466 * lskcipher_alloc_instance_simple - allocate instance of simple block cipher
468 * Allocate an lskcipher_instance for a simple block cipher mode of operation,
470 * that for the underlying cipher. The {min,max}_keysize, ivsize, blocksize,
471 * alignmask, and priority are set from the underlying cipher but can be