Lines Matching defs:cipher
3 * Symmetric key cipher operations.
582 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm);
594 ret = cipher->setkey(tfm, alignbuffer, keylen);
602 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm);
606 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize)
612 err = cipher->setkey(tfm, key, keylen);
882 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm);
884 crypto_cipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK);
885 crypto_cipher_set_flags(cipher, crypto_skcipher_get_flags(tfm) &
887 return crypto_cipher_setkey(cipher, key, keylen);
895 struct crypto_cipher *cipher;
897 cipher = crypto_spawn_cipher(spawn);
898 if (IS_ERR(cipher))
899 return PTR_ERR(cipher);
901 ctx->cipher = cipher;
909 crypto_free_cipher(ctx->cipher);
919 * skcipher_alloc_instance_simple - allocate instance of simple block cipher mode
921 * Allocate an skcipher_instance for a simple block cipher mode of operation,
923 * that for the underlying cipher. The {min,max}_keysize, ivsize, blocksize,
924 * alignmask, and priority are set from the underlying cipher but can be
988 MODULE_DESCRIPTION("Symmetric key cipher type");