/crypto/ |
D | 842.c | 31 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()
|
D | cfb.c | 30 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() 35 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() 43 struct crypto_skcipher *tfm) in crypto_cfb_final() 58 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment() 81 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace() 104 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt() local 128 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment() 151 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace() 170 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks() 180 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt() local
|
D | des_generic.c | 19 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() 40 static void crypto_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_encrypt() 47 static void crypto_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_decrypt() 54 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_setkey() 75 static void crypto_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_encrypt() 83 static void crypto_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_decrypt()
|
D | lz4.c | 19 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()
|
D | lz4hc.c | 18 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()
|
D | lzo-rle.c | 18 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()
|
D | lzo.c | 18 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()
|
D | cipher.c | 19 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned() 42 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() 61 struct crypto_tfm *tfm, in cipher_crypt_unaligned() 74 static void cipher_encrypt_unaligned(struct crypto_tfm *tfm, in cipher_encrypt_unaligned() 88 static void cipher_decrypt_unaligned(struct crypto_tfm *tfm, in cipher_decrypt_unaligned() 102 int crypto_init_cipher_ops(struct crypto_tfm *tfm) in crypto_init_cipher_ops()
|
D | deflate.c | 122 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()
|
D | simd.c | 50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey() 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt() local 89 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt() local 108 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit() 115 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init() 148 struct crypto_skcipher *tfm; in simd_skcipher_create_compat() local 293 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey() 309 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() 319 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() local 340 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() local [all …]
|
D | rsa.c | 49 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()
|
D | skcipher.c | 451 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher() local 513 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_common() local 573 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_decrypt() local 592 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey() 598 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher() 626 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher() local 641 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher() local 650 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher() local 656 static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_exit_skcipher_ops_blkcipher() 663 static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_init_skcipher_ops_blkcipher() [all …]
|
D | crypto_null.c | 27 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
|
D | cryptd.c | 187 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue() 270 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_complete() local 288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_encrypt() local 316 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_decrypt() local 343 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_enqueue() local 363 static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_init_tfm() 381 static void cryptd_skcipher_exit_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_exit_tfm() 463 static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) in cryptd_hash_init_tfm() 482 static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) in cryptd_hash_exit_tfm() 509 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue() local [all …]
|
D | zstd.c | 106 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()
|
D | algif_aead.c | 51 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 382 struct aead_tfm *tfm; in aead_check_key() local 475 struct aead_tfm *tfm; in aead_bind() local 504 struct aead_tfm *tfm = private; in aead_release() local 513 struct aead_tfm *tfm = private; in aead_setauthsize() local 520 struct aead_tfm *tfm = private; in aead_setkey() local 532 struct crypto_aead *tfm = aeadc->aead; in aead_sock_destruct() local 545 struct aead_tfm *tfm = private; in aead_accept_parent_nokey() local [all …]
|
D | pcbc.c | 21 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment() 43 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace() 65 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_encrypt() local 88 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment() 110 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace() 132 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_decrypt() local
|
D | rsa-pkcs1pad.c | 106 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key() 127 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key() 148 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size() 175 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete() local 230 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() local 278 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() local 347 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() local 380 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() local 437 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() local 533 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() local [all …]
|
D | compress.c | 15 static int crypto_compress(struct crypto_tfm *tfm, in crypto_compress() 23 static int crypto_decompress(struct crypto_tfm *tfm, in crypto_decompress() 31 int crypto_init_compress_ops(struct crypto_tfm *tfm) in crypto_init_compress_ops()
|
D | tea.c | 42 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()
|
D | chacha_generic.c | 80 static int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey() 96 int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_chacha20_setkey() 103 int crypto_chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_chacha12_setkey() 112 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_chacha_crypt() local 121 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_xchacha_crypt() local
|
D | shash.c | 23 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 30 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() 51 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey() 58 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() 83 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() local 113 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local 126 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local 154 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local 175 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local 196 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local [all …]
|
D | dh.c | 42 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx() 74 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret() 151 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() local 196 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size() 203 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
|
D | ecdh.c | 21 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() 67 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local 133 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size()
|
D | aes_ti.c | 12 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()
|