/crypto/ |
D | ablk_helper.c | 37 int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, in ablk_set_key() 56 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in __ablk_encrypt() local 71 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in ablk_encrypt() local 91 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in ablk_decrypt() local 116 void ablk_exit(struct crypto_tfm *tfm) in ablk_exit() 124 int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name) in ablk_init_common() 142 int ablk_init(struct crypto_tfm *tfm) in ablk_init()
|
D | cipher.c | 23 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned() 46 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() 65 struct crypto_tfm *tfm, in cipher_crypt_unaligned() 78 static void cipher_encrypt_unaligned(struct crypto_tfm *tfm, in cipher_encrypt_unaligned() 92 static void cipher_decrypt_unaligned(struct crypto_tfm *tfm, in cipher_decrypt_unaligned() 106 int crypto_init_cipher_ops(struct crypto_tfm *tfm) in crypto_init_cipher_ops() 120 void crypto_exit_cipher_ops(struct crypto_tfm *tfm) in crypto_exit_cipher_ops()
|
D | skcipher.c | 39 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher() 62 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher() local 77 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_blkcipher() local 86 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_blkcipher() local 92 static void crypto_exit_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_exit_skcipher_ops_blkcipher() 99 static int crypto_init_skcipher_ops_blkcipher(struct crypto_tfm *tfm) in crypto_init_skcipher_ops_blkcipher() 131 static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_ablkcipher() 153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_ablkcipher() local 169 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_encrypt_ablkcipher() local 178 struct crypto_tfm *tfm = crypto_skcipher_tfm(skcipher); in skcipher_decrypt_ablkcipher() local [all …]
|
D | compress.c | 20 static int crypto_compress(struct crypto_tfm *tfm, in crypto_compress() 28 static int crypto_decompress(struct crypto_tfm *tfm, in crypto_decompress() 36 int crypto_init_compress_ops(struct crypto_tfm *tfm) in crypto_init_compress_ops() 46 void crypto_exit_compress_ops(struct crypto_tfm *tfm) in crypto_exit_compress_ops()
|
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 268 static int rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_pub_key() 302 static int rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in rsa_set_priv_key() 340 static int rsa_max_size(struct crypto_akcipher *tfm) in rsa_max_size() 347 static void rsa_exit_tfm(struct crypto_akcipher *tfm) in rsa_exit_tfm()
|
D | cryptd.c | 125 struct crypto_tfm *tfm; in cryptd_enqueue_request() local 186 static inline struct cryptd_queue *cryptd_get_queue(struct crypto_tfm *tfm) in cryptd_get_queue() 232 struct crypto_ablkcipher *tfm; in cryptd_blkcipher_crypt() local 284 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in cryptd_blkcipher_enqueue() local 304 static int cryptd_blkcipher_init_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_init_tfm() 322 static void cryptd_blkcipher_exit_tfm(struct crypto_tfm *tfm) in cryptd_blkcipher_exit_tfm() 435 static int cryptd_hash_init_tfm(struct crypto_tfm *tfm) in cryptd_hash_init_tfm() 454 static void cryptd_hash_exit_tfm(struct crypto_tfm *tfm) in cryptd_hash_exit_tfm() 481 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_enqueue() local 493 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cryptd_hash_complete() local [all …]
|
D | ecdh.c | 27 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx() 41 static int ecdh_set_secret(struct crypto_kpp *tfm, void *buf, unsigned int len) in ecdh_set_secret() 69 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local 108 static int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size() 117 static void no_exit_tfm(struct crypto_kpp *tfm) in no_exit_tfm()
|
D | cbc.c | 44 struct crypto_cipher *tfm) in crypto_cbc_encrypt_segment() 68 struct crypto_cipher *tfm) in crypto_cbc_encrypt_inplace() 95 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_encrypt() local 116 struct crypto_cipher *tfm) in crypto_cbc_decrypt_segment() 142 struct crypto_cipher *tfm) in crypto_cbc_decrypt_inplace() 174 struct crypto_blkcipher *tfm = desc->tfm; in crypto_cbc_decrypt() local 193 static int crypto_cbc_init_tfm(struct crypto_tfm *tfm) in crypto_cbc_init_tfm() 208 static void crypto_cbc_exit_tfm(struct crypto_tfm *tfm) in crypto_cbc_exit_tfm()
|
D | pcbc.c | 47 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment() 72 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace() 102 struct crypto_blkcipher *tfm = desc->tfm; in crypto_pcbc_encrypt() local 125 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment() 152 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace() 182 struct crypto_blkcipher *tfm = desc->tfm; in crypto_pcbc_decrypt() local 203 static int crypto_pcbc_init_tfm(struct crypto_tfm *tfm) in crypto_pcbc_init_tfm() 218 static void crypto_pcbc_exit_tfm(struct crypto_tfm *tfm) in crypto_pcbc_exit_tfm()
|
D | dh.c | 44 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx() 73 static int dh_set_secret(struct crypto_kpp *tfm, void *buf, unsigned int len) in dh_set_secret() 100 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() local 142 static int dh_max_size(struct crypto_kpp *tfm) in dh_max_size() 149 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
|
D | rsa-pkcs1pad.c | 109 static int pkcs1pad_set_pub_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_pub_key() 133 static int pkcs1pad_set_priv_key(struct crypto_akcipher *tfm, const void *key, in pkcs1pad_set_priv_key() 157 static int pkcs1pad_get_max_size(struct crypto_akcipher *tfm) in pkcs1pad_get_max_size() 184 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt_sign_complete() local 239 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_encrypt() local 298 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt_complete() local 367 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_decrypt() local 402 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_sign() local 459 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify_complete() local 545 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in pkcs1pad_verify() local [all …]
|
D | lzo.c | 30 static int lzo_init(struct crypto_tfm *tfm) in lzo_init() 44 static void lzo_exit(struct crypto_tfm *tfm) in lzo_exit() 51 static int lzo_compress(struct crypto_tfm *tfm, const u8 *src, in lzo_compress() 67 static int lzo_decompress(struct crypto_tfm *tfm, const u8 *src, in lzo_decompress()
|
D | lz4.c | 31 static int lz4_init(struct crypto_tfm *tfm) in lz4_init() 42 static void lz4_exit(struct crypto_tfm *tfm) in lz4_exit() 48 static int lz4_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_compress_crypto() 64 static int lz4_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4_decompress_crypto()
|
D | lz4hc.c | 30 static int lz4hc_init(struct crypto_tfm *tfm) in lz4hc_init() 41 static void lz4hc_exit(struct crypto_tfm *tfm) in lz4hc_exit() 48 static int lz4hc_compress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_compress_crypto() 64 static int lz4hc_decompress_crypto(struct crypto_tfm *tfm, const u8 *src, in lz4hc_decompress_crypto()
|
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()
|
D | crypto_null.c | 32 static int null_compress(struct crypto_tfm *tfm, const u8 *src, in null_compress() 64 static int null_hash_setkey(struct crypto_shash *tfm, const u8 *key, in null_hash_setkey() 68 static int null_setkey(struct crypto_tfm *tfm, const u8 *key, in null_setkey() 72 static void null_crypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in null_crypt() 158 struct crypto_skcipher *tfm; in crypto_get_default_null_skcipher() local
|
D | ctr.c | 56 struct crypto_cipher *tfm) in crypto_ctr_crypt_final() 75 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment() 101 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace() 132 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ctr_crypt() local 158 static int crypto_ctr_init_tfm(struct crypto_tfm *tfm) in crypto_ctr_init_tfm() 174 static void crypto_ctr_exit_tfm(struct crypto_tfm *tfm) in crypto_ctr_exit_tfm() 280 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt() local 306 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm() 330 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
|
D | aead.c | 31 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned() 52 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey() 64 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() 82 static void crypto_aead_exit_tfm(struct crypto_tfm *tfm) in crypto_aead_exit_tfm() 90 static int crypto_aead_init_tfm(struct crypto_tfm *tfm) in crypto_aead_init_tfm() 175 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey() 183 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize() 322 void aead_exit_geniv(struct crypto_aead *tfm) in aead_exit_geniv()
|
D | shash.c | 27 int shash_no_setkey(struct crypto_shash *tfm, const u8 *key, in shash_no_setkey() 34 static int shash_setkey_unaligned(struct crypto_shash *tfm, const u8 *key, in shash_setkey_unaligned() 55 int crypto_shash_setkey(struct crypto_shash *tfm, const u8 *key, in crypto_shash_setkey() 85 struct crypto_shash *tfm = desc->tfm; in shash_update_unaligned() local 109 struct crypto_shash *tfm = desc->tfm; in crypto_shash_update() local 122 struct crypto_shash *tfm = desc->tfm; in shash_final_unaligned() local 144 struct crypto_shash *tfm = desc->tfm; in crypto_shash_final() local 165 struct crypto_shash *tfm = desc->tfm; in crypto_shash_finup() local 186 struct crypto_shash *tfm = desc->tfm; in crypto_shash_digest() local 212 static int shash_async_setkey(struct crypto_ahash *tfm, const u8 *key, in shash_async_setkey() [all …]
|
D | ansi_cprng.c | 52 struct crypto_cipher *tfm; member 325 static int cprng_init(struct crypto_tfm *tfm) in cprng_init() 349 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit() 354 static int cprng_get_random(struct crypto_rng *tfm, in cprng_get_random() 369 static int cprng_reset(struct crypto_rng *tfm, in cprng_reset() 390 static int fips_cprng_get_random(struct crypto_rng *tfm, in fips_cprng_get_random() 399 static int fips_cprng_reset(struct crypto_rng *tfm, in fips_cprng_reset()
|
D | ecb.c | 43 struct crypto_cipher *tfm, in crypto_ecb_crypt() 74 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ecb_encrypt() local 88 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ecb_decrypt() local 97 static int crypto_ecb_init_tfm(struct crypto_tfm *tfm) in crypto_ecb_init_tfm() 112 static void crypto_ecb_exit_tfm(struct crypto_tfm *tfm) in crypto_ecb_exit_tfm()
|
D | blkcipher.c | 363 struct crypto_aead *tfm, in blkcipher_aead_walk_virt_block() 375 static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, in setkey_unaligned() 397 static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) in setkey() 413 static int async_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in async_setkey() 421 struct crypto_tfm *tfm = req->base.tfm; in async_encrypt() local 435 struct crypto_tfm *tfm = req->base.tfm; in async_decrypt() local 461 static int crypto_init_blkcipher_ops_async(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_async() 475 static int crypto_init_blkcipher_ops_sync(struct crypto_tfm *tfm) in crypto_init_blkcipher_ops_sync() 494 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops()
|
D | speck.c | 68 static void speck128_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in speck128_encrypt() 88 static void speck128_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in speck128_decrypt() 139 static int speck128_setkey(struct crypto_tfm *tfm, const u8 *key, in speck128_setkey() 180 static void speck64_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in speck64_encrypt() 200 static void speck64_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in speck64_decrypt() 242 static int speck64_setkey(struct crypto_tfm *tfm, const u8 *key, in speck64_setkey()
|
D | cts.c | 66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_reqctx_space() local 103 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local 148 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt() local 183 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() local 241 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt() local 283 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm() 311 static void crypto_cts_exit_tfm(struct crypto_skcipher *tfm) in crypto_cts_exit_tfm()
|
D | jitterentropy-kcapi.c | 125 static int jent_kcapi_init(struct crypto_tfm *tfm) in jent_kcapi_init() 138 static void jent_kcapi_cleanup(struct crypto_tfm *tfm) in jent_kcapi_cleanup() 149 static int jent_kcapi_random(struct crypto_rng *tfm, in jent_kcapi_random() 163 static int jent_kcapi_reset(struct crypto_rng *tfm, in jent_kcapi_reset()
|