Lines Matching full:cipher
8 #include <crypto/internal/cipher.h>
16 static int crypto_ecb_crypt(struct crypto_cipher *cipher, const u8 *src, in crypto_ecb_crypt() argument
20 const unsigned int bsize = crypto_cipher_blocksize(cipher); in crypto_ecb_crypt()
23 fn(crypto_cipher_tfm(cipher), dst, src); in crypto_ecb_crypt()
38 struct crypto_cipher *cipher = *ctx; in crypto_ecb_encrypt2() local
40 return crypto_ecb_crypt(cipher, src, dst, len, in crypto_ecb_encrypt2()
42 crypto_cipher_alg(cipher)->cia_encrypt); in crypto_ecb_encrypt2()
49 struct crypto_cipher *cipher = *ctx; in crypto_ecb_decrypt2() local
51 return crypto_ecb_crypt(cipher, src, dst, len, in crypto_ecb_decrypt2()
53 crypto_cipher_alg(cipher)->cia_decrypt); in crypto_ecb_decrypt2()
60 struct crypto_cipher *cipher = *ctx; in lskcipher_setkey_simple2() local
62 crypto_cipher_clear_flags(cipher, CRYPTO_TFM_REQ_MASK); in lskcipher_setkey_simple2()
63 crypto_cipher_set_flags(cipher, crypto_lskcipher_get_flags(tfm) & in lskcipher_setkey_simple2()
65 return crypto_cipher_setkey(cipher, key, keylen); in lskcipher_setkey_simple2()
73 struct crypto_cipher *cipher; in lskcipher_init_tfm_simple2() local
76 cipher = crypto_spawn_cipher(spawn); in lskcipher_init_tfm_simple2()
77 if (IS_ERR(cipher)) in lskcipher_init_tfm_simple2()
78 return PTR_ERR(cipher); in lskcipher_init_tfm_simple2()
80 *ctx = cipher; in lskcipher_init_tfm_simple2()
226 MODULE_DESCRIPTION("ECB block cipher mode of operation");