Lines Matching defs:cipher
3 * Symmetric key cipher operations.
13 #include <crypto/internal/cipher.h>
595 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm);
607 ret = cipher->setkey(tfm, alignbuffer, keylen);
615 struct skcipher_alg *cipher = crypto_skcipher_alg(tfm);
619 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize)
625 err = cipher->setkey(tfm, key, keylen);
761 strscpy(rcipher.type, "cipher", sizeof(rcipher.type));
928 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm);
930 crypto_cipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK);
931 crypto_cipher_set_flags(cipher, crypto_skcipher_get_flags(tfm) &
933 return crypto_cipher_setkey(cipher, key, keylen);
941 struct crypto_cipher *cipher;
943 cipher = crypto_spawn_cipher(spawn);
944 if (IS_ERR(cipher))
945 return PTR_ERR(cipher);
947 ctx->cipher = cipher;
955 crypto_free_cipher(ctx->cipher);
965 * skcipher_alloc_instance_simple - allocate instance of simple block cipher mode
967 * Allocate an skcipher_instance for a simple block cipher mode of operation,
969 * that for the underlying cipher. The {min,max}_keysize, ivsize, blocksize,
970 * alignmask, and priority are set from the underlying cipher but can be
1034 MODULE_DESCRIPTION("Symmetric key cipher type");