Lines Matching refs:cipher
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()
429 struct crypto_lskcipher *cipher = lskcipher_cipher_simple(tfm); in lskcipher_setkey_simple() local
431 crypto_lskcipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK); in lskcipher_setkey_simple()
432 crypto_lskcipher_set_flags(cipher, crypto_lskcipher_get_flags(tfm) & in lskcipher_setkey_simple()
434 return crypto_lskcipher_setkey(cipher, key, keylen); in lskcipher_setkey_simple()
442 struct crypto_lskcipher *cipher; in lskcipher_init_tfm_simple() local
445 cipher = crypto_spawn_lskcipher(spawn); in lskcipher_init_tfm_simple()
446 if (IS_ERR(cipher)) in lskcipher_init_tfm_simple()
447 return PTR_ERR(cipher); in lskcipher_init_tfm_simple()
449 *ctx = cipher; in lskcipher_init_tfm_simple()