Lines Matching refs:cipher
3 * Linear symmetric key cipher operations.
36 struct lskcipher_alg *cipher = crypto_lskcipher_alg(tfm);
48 ret = cipher->setkey(tfm, alignbuffer, keylen);
57 struct lskcipher_alg *cipher = crypto_lskcipher_alg(tfm);
59 if (keylen < cipher->co.min_keysize || keylen > cipher->co.max_keysize)
65 return cipher->setkey(tfm, key, keylen);
429 struct crypto_lskcipher *cipher = lskcipher_cipher_simple(tfm);
431 crypto_lskcipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK);
432 crypto_lskcipher_set_flags(cipher, crypto_lskcipher_get_flags(tfm) &
434 return crypto_lskcipher_setkey(cipher, key, keylen);
442 struct crypto_lskcipher *cipher;
445 cipher = crypto_spawn_lskcipher(spawn);
446 if (IS_ERR(cipher))
447 return PTR_ERR(cipher);
449 *ctx = cipher;
467 * lskcipher_alloc_instance_simple - allocate instance of simple block cipher
469 * Allocate an lskcipher_instance for a simple block cipher mode of operation,
471 * that for the underlying cipher. The {min,max}_keysize, ivsize, blocksize,
472 * alignmask, and priority are set from the underlying cipher but can be