/linux-4.19.296/include/crypto/ |
D | hash.h | 148 struct crypto_shash *tfm; member 230 static inline struct crypto_ahash *__crypto_ahash_cast(struct crypto_tfm *tfm) in __crypto_ahash_cast() 252 static inline struct crypto_tfm *crypto_ahash_tfm(struct crypto_ahash *tfm) in crypto_ahash_tfm() 263 static inline void crypto_free_ahash(struct crypto_ahash *tfm) in crypto_free_ahash() 280 static inline const char *crypto_ahash_alg_name(struct crypto_ahash *tfm) in crypto_ahash_alg_name() 285 static inline const char *crypto_ahash_driver_name(struct crypto_ahash *tfm) in crypto_ahash_driver_name() 291 struct crypto_ahash *tfm) in crypto_ahash_alignmask() 305 static inline unsigned int crypto_ahash_blocksize(struct crypto_ahash *tfm) in crypto_ahash_blocksize() 317 struct crypto_ahash *tfm) in crypto_hash_alg_common() 332 static inline unsigned int crypto_ahash_digestsize(struct crypto_ahash *tfm) in crypto_ahash_digestsize() [all …]
|
D | skcipher.h | 142 #define SKCIPHER_REQUEST_ON_STACK(name, tfm) \ argument 178 struct crypto_tfm *tfm) in __crypto_skcipher_cast() 201 struct crypto_skcipher *tfm) in crypto_skcipher_tfm() 212 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher() 247 struct crypto_skcipher *tfm) in crypto_skcipher_driver_name() 253 struct crypto_skcipher *tfm) in crypto_skcipher_alg() 280 static inline unsigned int crypto_skcipher_ivsize(struct crypto_skcipher *tfm) in crypto_skcipher_ivsize() 323 struct crypto_skcipher *tfm) in crypto_skcipher_chunksize() 340 struct crypto_skcipher *tfm) in crypto_skcipher_walksize() 356 struct crypto_skcipher *tfm) in crypto_skcipher_blocksize() [all …]
|
D | akcipher.h | 134 struct crypto_akcipher *tfm) in crypto_akcipher_tfm() 145 struct crypto_tfm *tfm) in __crypto_akcipher_tfm() 151 struct crypto_akcipher *tfm) in crypto_akcipher_alg() 156 static inline unsigned int crypto_akcipher_reqsize(struct crypto_akcipher *tfm) in crypto_akcipher_reqsize() 162 struct crypto_akcipher *tfm) in akcipher_request_set_tfm() 180 static inline void crypto_free_akcipher(struct crypto_akcipher *tfm) in crypto_free_akcipher() 194 struct crypto_akcipher *tfm, gfp_t gfp) in akcipher_request_alloc() 269 static inline unsigned int crypto_akcipher_maxsize(struct crypto_akcipher *tfm) in crypto_akcipher_maxsize() 288 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_encrypt() local 306 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_decrypt() local [all …]
|
D | aead.h | 161 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() 182 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() 193 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead() 198 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg() 218 static inline unsigned int crypto_aead_ivsize(struct crypto_aead *tfm) in crypto_aead_ivsize() 235 static inline unsigned int crypto_aead_authsize(struct crypto_aead *tfm) in crypto_aead_authsize() 250 static inline unsigned int crypto_aead_blocksize(struct crypto_aead *tfm) in crypto_aead_blocksize() 255 static inline unsigned int crypto_aead_alignmask(struct crypto_aead *tfm) in crypto_aead_alignmask() 260 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags() 265 static inline void crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) in crypto_aead_set_flags() [all …]
|
D | kpp.h | 112 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() 122 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm() 127 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg() 132 static inline unsigned int crypto_kpp_reqsize(struct crypto_kpp *tfm) in crypto_kpp_reqsize() 138 struct crypto_kpp *tfm) in kpp_request_set_tfm() 148 static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) in crypto_kpp_get_flags() 153 static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) in crypto_kpp_set_flags() 165 static inline void crypto_free_kpp(struct crypto_kpp *tfm) in crypto_free_kpp() 178 static inline struct kpp_request *kpp_request_alloc(struct crypto_kpp *tfm, in kpp_request_alloc() 288 static inline int crypto_kpp_set_secret(struct crypto_kpp *tfm, in crypto_kpp_set_secret() [all …]
|
D | rng.h | 97 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm() 110 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg() 122 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng() 141 static inline int crypto_rng_generate(struct crypto_rng *tfm, in crypto_rng_generate() 159 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes() 197 static inline int crypto_rng_seedsize(struct crypto_rng *tfm) in crypto_rng_seedsize()
|
D | acompress.h | 115 static inline struct crypto_tfm *crypto_acomp_tfm(struct crypto_acomp *tfm) in crypto_acomp_tfm() 125 static inline struct crypto_acomp *__crypto_acomp_tfm(struct crypto_tfm *tfm) in __crypto_acomp_tfm() 130 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg() 135 static inline unsigned int crypto_acomp_reqsize(struct crypto_acomp *tfm) in crypto_acomp_reqsize() 141 struct crypto_acomp *tfm) in acomp_request_set_tfm() 158 static inline void crypto_free_acomp(struct crypto_acomp *tfm) in crypto_free_acomp() 250 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_compress() local 266 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in crypto_acomp_decompress() local
|
D | cbc.h | 21 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_segment() 43 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_inplace() 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt_walk() local 86 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_segment() 110 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_inplace() 137 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_blocks()
|
/linux-4.19.296/include/linux/ |
D | crypto.h | 175 struct crypto_tfm *tfm; member 194 struct crypto_blkcipher *tfm; member 200 struct crypto_tfm *tfm; member 660 static inline void crypto_free_tfm(struct crypto_tfm *tfm) in crypto_free_tfm() 670 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) in crypto_tfm_alg_name() 675 static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) in crypto_tfm_alg_driver_name() 680 static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) in crypto_tfm_alg_priority() 685 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type() 690 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) in crypto_tfm_alg_blocksize() 695 static inline unsigned int crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) in crypto_tfm_alg_alignmask() [all …]
|
/linux-4.19.296/include/crypto/internal/ |
D | scompress.h | 50 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() 55 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm() 60 static inline void crypto_free_scomp(struct crypto_scomp *tfm) in crypto_free_scomp() 65 static inline struct scomp_alg *crypto_scomp_alg(struct crypto_scomp *tfm) in crypto_scomp_alg() 70 static inline void *crypto_scomp_alloc_ctx(struct crypto_scomp *tfm) in crypto_scomp_alloc_ctx() 75 static inline void crypto_scomp_free_ctx(struct crypto_scomp *tfm, in crypto_scomp_free_ctx() 81 static inline int crypto_scomp_compress(struct crypto_scomp *tfm, in crypto_scomp_compress() 88 static inline int crypto_scomp_decompress(struct crypto_scomp *tfm, in crypto_scomp_decompress()
|
/linux-4.19.296/crypto/ |
D | 842.c | 40 static void *crypto842_alloc_ctx(struct crypto_scomp *tfm) in crypto842_alloc_ctx() 51 static int crypto842_init(struct crypto_tfm *tfm) in crypto842_init() 62 static void crypto842_free_ctx(struct crypto_scomp *tfm, void *ctx) in crypto842_free_ctx() 67 static void crypto842_exit(struct crypto_tfm *tfm) in crypto842_exit() 74 static int crypto842_compress(struct crypto_tfm *tfm, in crypto842_compress() 83 static int crypto842_scompress(struct crypto_scomp *tfm, in crypto842_scompress() 90 static int crypto842_decompress(struct crypto_tfm *tfm, in crypto842_decompress() 97 static int crypto842_sdecompress(struct crypto_scomp *tfm, in crypto842_sdecompress()
|
D | cfb.c | 36 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() 44 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() 54 struct crypto_skcipher *tfm) in crypto_cfb_final() 69 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment() 92 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace() 115 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt() local 139 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment() 162 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace() 181 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks() 207 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt() local [all …]
|
D | lz4hc.c | 31 static void *lz4hc_alloc_ctx(struct crypto_scomp *tfm) in lz4hc_alloc_ctx() 42 static int lz4hc_init(struct crypto_tfm *tfm) in lz4hc_init() 53 static void lz4hc_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4hc_free_ctx() 58 static void lz4hc_exit(struct crypto_tfm *tfm) in lz4hc_exit() 78 static int lz4hc_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_scompress() 85 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_compress_crypto() 107 static int lz4hc_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4hc_sdecompress() 114 static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_decompress_crypto()
|
D | lz4.c | 32 static void *lz4_alloc_ctx(struct crypto_scomp *tfm) in lz4_alloc_ctx() 43 static int lz4_init(struct crypto_tfm *tfm) in lz4_init() 54 static void lz4_free_ctx(struct crypto_scomp *tfm, void *ctx) in lz4_free_ctx() 59 static void lz4_exit(struct crypto_tfm *tfm) in lz4_exit() 79 static int lz4_scompress(struct crypto_scomp *tfm, const u8 *src, in lz4_scompress() 86 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_compress_crypto() 106 static int lz4_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lz4_sdecompress() 113 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_decompress_crypto()
|
D | lzo.c | 31 static void *lzo_alloc_ctx(struct crypto_scomp *tfm) in lzo_alloc_ctx() 42 static int lzo_init(struct crypto_tfm *tfm) in lzo_init() 53 static void lzo_free_ctx(struct crypto_scomp *tfm, void *ctx) in lzo_free_ctx() 58 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit() 80 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress() 88 static int lzo_scompress(struct crypto_scomp *tfm, const u8 *src, in lzo_scompress() 110 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress() 116 static int lzo_sdecompress(struct crypto_scomp *tfm, const u8 *src, in lzo_sdecompress()
|
D | cipher.c | 24 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned() 47 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() 66 struct crypto_tfm *tfm, in cipher_crypt_unaligned() 79 static void cipher_encrypt_unaligned(struct crypto_tfm *tfm, in cipher_encrypt_unaligned() 93 static void cipher_decrypt_unaligned(struct crypto_tfm *tfm, in cipher_decrypt_unaligned() 107 int crypto_init_cipher_ops(struct crypto_tfm *tfm) in crypto_init_cipher_ops()
|
D | cryptd.c | 199 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue() 245 struct crypto_ablkcipher *tfm; in cryptd_blkcipher_crypt() local 297 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in cryptd_blkcipher_enqueue() local 317 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_init_tfm() 335 static void cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_exit_tfm() 466 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_complete() local 484 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_encrypt() local 512 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_decrypt() local 539 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cryptd_skcipher_enqueue() local 559 static int cryptd_skcipher_init_tfm(struct crypto_skcipher *tfm) in cryptd_skcipher_init_tfm() [all …]
|
D | deflate.c | 126 static void *gen_deflate_alloc_ctx(struct crypto_scomp *tfm, int format) in gen_deflate_alloc_ctx() 144 static void *deflate_alloc_ctx(struct crypto_scomp *tfm) in deflate_alloc_ctx() 149 static void *zlib_deflate_alloc_ctx(struct crypto_scomp *tfm) in zlib_deflate_alloc_ctx() 154 static int deflate_init(struct crypto_tfm *tfm) in deflate_init() 167 static void deflate_free_ctx(struct crypto_scomp *tfm, void *ctx) in deflate_free_ctx() 173 static void deflate_exit(struct crypto_tfm *tfm) in deflate_exit() 209 static int deflate_compress(struct crypto_tfm *tfm, const u8 *src, in deflate_compress() 217 static int deflate_scompress(struct crypto_scomp *tfm, const u8 *src, in deflate_scompress() 265 static int deflate_decompress(struct crypto_tfm *tfm, const u8 *src, in deflate_decompress() 273 static int deflate_sdecompress(struct crypto_scomp *tfm, const u8 *src, in deflate_sdecompress()
|
D | rsa.c | 81 static inline struct rsa_mpi_key *rsa_get_key(struct crypto_akcipher *tfm) in rsa_get_key() 88 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_enc() local 127 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_dec() local 165 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_sign() local 204 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in rsa_verify() local 267 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() 301 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() 339 static unsigned int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() 346 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
|
D | skcipher.c | 456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher() local 516 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_common() local 576 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_decrypt() local 596 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey() 602 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher() 630 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher() local 645 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher() local 654 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher() local 660 static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_exit_skcipher_ops_blkcipher() 667 static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_init_skcipher_ops_blkcipher() [all …]
|
D | pcbc.c | 48 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment() 70 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace() 92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_encrypt() local 116 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment() 138 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace() 160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_decrypt() local 182 static int crypto_pcbc_init_tfm(struct crypto_skcipher *tfm) in crypto_pcbc_init_tfm() 197 static void crypto_pcbc_exit_tfm(struct crypto_skcipher *tfm) in crypto_pcbc_exit_tfm()
|
D | zstd.c | 114 static void *zstd_alloc_ctx(struct crypto_scomp *tfm) in zstd_alloc_ctx() 132 static int zstd_init(struct crypto_tfm *tfm) in zstd_init() 145 static void zstd_free_ctx(struct crypto_scomp *tfm, void *ctx) in zstd_free_ctx() 151 static void zstd_exit(struct crypto_tfm *tfm) in zstd_exit() 172 static int zstd_compress(struct crypto_tfm *tfm, const u8 *src, in zstd_compress() 180 static int zstd_scompress(struct crypto_scomp *tfm, const u8 *src, in zstd_scompress() 200 static int zstd_decompress(struct crypto_tfm *tfm, const u8 *src, in zstd_decompress() 208 static int zstd_sdecompress(struct crypto_scomp *tfm, const u8 *src, in zstd_sdecompress()
|
D | algif_aead.c | 55 struct crypto_aead *tfm = aeadc->aead; in aead_sufficient_data() local 72 struct crypto_aead *tfm = aeadc->aead; in aead_sendmsg() local 101 struct crypto_aead *tfm = aeadc->aead; in _aead_recvmsg() local 387 struct aead_tfm *tfm; in aead_check_key() local 477 struct aead_tfm *tfm; in aead_bind() local 506 struct aead_tfm *tfm = private; in aead_release() local 515 struct aead_tfm *tfm = private; in aead_setauthsize() local 522 struct aead_tfm *tfm = private; in aead_setkey() local 534 struct crypto_aead *tfm = aeadc->aead; in aead_sock_destruct() local 547 struct aead_tfm *tfm = private; in aead_accept_parent_nokey() local [all …]
|
D | rsa-pkcs1pad.c | 109 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key() 130 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key() 151 static unsigned int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size() 178 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete() local 231 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() local 279 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 435 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() local 520 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() local [all …]
|
D | tea.c | 47 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey() 62 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_encrypt() 90 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_decrypt() 120 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey() 135 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_encrypt() 156 static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_decrypt() 179 static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_encrypt() 200 static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_decrypt()
|