Home
last modified time | relevance | path

Searched defs:tfm (Results 1 – 25 of 96) sorted by relevance

1234

/crypto/
D842.c31 static void *crypto842_alloc_ctx(struct crypto_scomp *tfm) in crypto842_alloc_ctx()
42 static int crypto842_init(struct crypto_tfm *tfm) in crypto842_init()
53 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) in crypto842_free_ctx()
58 static void crypto842_exit(struct crypto_tfm *tfm) in crypto842_exit()
65 static int crypto842_compress(struct crypto_tfm *tfm, in crypto842_compress()
74 static int crypto842_scompress(struct crypto_scomp *tfm, in crypto842_scompress()
81 static int crypto842_decompress(struct crypto_tfm *tfm, in crypto842_decompress()
88 static int crypto842_sdecompress(struct crypto_scomp *tfm, in crypto842_sdecompress()
Dcfb.c31 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize()
36 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one()
44 struct crypto_skcipher *tfm) in crypto_cfb_final()
59 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment()
82 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace()
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt() local
129 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment()
152 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace()
171 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks()
181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt() local
Ddes_generic.c19 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey()
37 static void crypto_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_encrypt()
44 static void crypto_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_decrypt()
51 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_setkey()
69 static void crypto_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_encrypt()
77 static void crypto_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_decrypt()
Dlz4hc.c18 static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) in lz4hc_alloc_ctx()
29 static int lz4hc_init(struct crypto_tfm *tfm) in lz4hc_init()
40 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx()
45 static void lz4hc_exit(struct crypto_tfm *tfm) in lz4hc_exit()
65 static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_scompress()
72 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_compress_crypto()
94 static int lz4hc_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_sdecompress()
101 static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_decompress_crypto()
Dlz4.c19 static void *lz4_alloc_ctx(struct crypto_scomp *tfm) in lz4_alloc_ctx()
30 static int lz4_init(struct crypto_tfm *tfm) in lz4_init()
41 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx()
46 static void lz4_exit(struct crypto_tfm *tfm) in lz4_exit()
66 static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4_scompress()
73 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_compress_crypto()
93 static int lz4_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4_sdecompress()
100 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_decompress_crypto()
Dlzo-rle.c18 static void *lzorle_alloc_ctx(struct crypto_scomp *tfm) in lzorle_alloc_ctx()
29 static int lzorle_init(struct crypto_tfm *tfm) in lzorle_init()
40 static void lzorle_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzorle_free_ctx()
45 static void lzorle_exit(struct crypto_tfm *tfm) in lzorle_exit()
67 static int lzorle_compress(struct crypto_tfm *tfm, const u8 *src, in lzorle_compress()
75 static int lzorle_scompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_scompress()
97 static int lzorle_decompress(struct crypto_tfm *tfm, const u8 *src, in lzorle_decompress()
103 static int lzorle_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzorle_sdecompress()
Dlzo.c18 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) in lzo_alloc_ctx()
29 static int lzo_init(struct crypto_tfm *tfm) in lzo_init()
40 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx()
45 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit()
67 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress()
75 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, in lzo_scompress()
97 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress()
103 static int lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzo_sdecompress()
Ddeflate.c122 static void *gen_deflate_alloc_ctx(struct crypto_scomp *tfm, int format) in gen_deflate_alloc_ctx()
140 static void *deflate_alloc_ctx(struct crypto_scomp *tfm) in deflate_alloc_ctx()
145 static void *zlib_deflate_alloc_ctx(struct crypto_scomp *tfm) in zlib_deflate_alloc_ctx()
150 static int deflate_init(struct crypto_tfm *tfm) in deflate_init()
163 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx()
169 static void deflate_exit(struct crypto_tfm *tfm) in deflate_exit()
205 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, in deflate_compress()
213 static int deflate_scompress(struct crypto_scomp *tfm, const u8 *src, in deflate_scompress()
261 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, in deflate_decompress()
269 static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, in deflate_sdecompress()
Dsimd.c50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey()
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt() local
85 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt() local
104 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit()
111 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init()
144 struct crypto_skcipher *tfm; in simd_skcipher_create_compat() local
290 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey()
302 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize()
312 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() local
333 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() local
[all …]
Drsa.c49 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key()
56 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local
95 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local
156 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key()
190 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key()
228 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size()
235 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
Dcipher.c20 static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, in setkey_unaligned()
43 int crypto_cipher_setkey(struct crypto_cipher *tfm, in crypto_cipher_setkey()
59 static inline void cipher_crypt_one(struct crypto_cipher *tfm, in cipher_crypt_one()
80 void crypto_cipher_encrypt_one(struct crypto_cipher *tfm, in crypto_cipher_encrypt_one()
87 void crypto_cipher_decrypt_one(struct crypto_cipher *tfm, in crypto_cipher_decrypt_one()
Dcrypto_null.c27 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress()
59 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey()
63 static int null_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in null_skcipher_setkey()
67 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey()
71 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt()
155 struct crypto_sync_skcipher *tfm; in crypto_get_default_null_skcipher() local
Dshash.c23 static int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey()
42 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned()
63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey()
69 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey()
94 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() local
124 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local
137 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local
165 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local
186 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local
207 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local
[all …]
Dcryptd.c187 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue()
242 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_complete() local
260 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_encrypt() local
288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_decrypt() local
315 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_enqueue() local
335 static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_init_tfm()
354 static void cryptd_skcipher_exit_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_exit_tfm()
426 static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) in cryptd_hash_init_tfm()
445 static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) in cryptd_hash_exit_tfm()
468 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue() local
[all …]
Dzstd.c106 static void *zstd_alloc_ctx(struct crypto_scomp *tfm) in zstd_alloc_ctx()
124 static int zstd_init(struct crypto_tfm *tfm) in zstd_init()
137 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) in zstd_free_ctx()
143 static void zstd_exit(struct crypto_tfm *tfm) in zstd_exit()
164 static int zstd_compress(struct crypto_tfm *tfm, const u8 *src, in zstd_compress()
172 static int zstd_scompress(struct crypto_scomp *tfm, const u8 *src, in zstd_scompress()
192 static int zstd_decompress(struct crypto_tfm *tfm, const u8 *src, in zstd_decompress()
200 static int zstd_sdecompress(struct crypto_scomp *tfm, const u8 *src, in zstd_sdecompress()
Dpcbc.c22 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment()
44 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace()
66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_encrypt() local
89 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment()
111 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace()
133 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_decrypt() local
Dalgif_aead.c51 struct crypto_aead *tfm = aeadc->aead; in aead_sufficient_data() local
68 struct crypto_aead *tfm = aeadc->aead; in aead_sendmsg() local
97 struct crypto_aead *tfm = aeadc->aead; in _aead_recvmsg() local
381 struct aead_tfm *tfm; in aead_check_key() local
469 struct aead_tfm *tfm; in aead_bind() local
498 struct aead_tfm *tfm = private; in aead_release() local
507 struct aead_tfm *tfm = private; in aead_setauthsize() local
514 struct aead_tfm *tfm = private; in aead_setkey() local
526 struct crypto_aead *tfm = aeadc->aead; in aead_sock_destruct() local
539 struct aead_tfm *tfm = private; in aead_accept_parent_nokey() local
[all …]
Drsa-pkcs1pad.c107 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key()
128 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key()
149 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size()
176 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete() local
229 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() local
277 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() local
345 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() local
378 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() local
435 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() local
532 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() local
[all …]
Dtea.c42 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey()
57 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_encrypt()
85 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_decrypt()
115 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey()
130 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_encrypt()
151 static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_decrypt()
174 static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_encrypt()
195 static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_decrypt()
Darc4.c18 static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in crypto_arc4_setkey()
28 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_arc4_crypt() local
44 static int crypto_arc4_init(struct crypto_skcipher *tfm) in crypto_arc4_init()
Ddh.c43 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx()
75 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret()
152 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() local
234 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size()
241 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
Dahash.c137 static int ahash_setkey_unaligned(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey_unaligned()
157 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
163 static void ahash_set_needkey(struct crypto_ahash *tfm) in ahash_set_needkey()
172 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
201 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_save_req() local
331 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_op() local
342 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_final() local
356 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_finup() local
370 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in crypto_ahash_digest() local
433 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ahash_def_finup() local
[all …]
Decdh.c21 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx()
35 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in ecdh_set_secret()
69 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local
135 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size()
Dcurve25519-generic.c9 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret()
26 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_value() local
57 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
Daes_ti.c12 static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesti_set_key()
20 static void aesti_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_encrypt()
36 static void aesti_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_decrypt()

1234