/linux/include/crypto/internal/ |
H A D | cipher.h | 16 struct crypto_cipher { struct 37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) in __crypto_cipher_cast() argument 39 return (struct crypto_cipher *)tfm; in __crypto_cipher_cast() 56 static inline struct crypto_cipher *crypto_alloc_cipher(const char *alg_name, in crypto_alloc_cipher() 66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) in crypto_cipher_tfm() 75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) in crypto_free_cipher() 109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) in crypto_cipher_blocksize() 114 static inline unsigned int crypto_cipher_alignmask(struct crypto_cipher *tfm) in crypto_cipher_alignmask() 119 static inline u32 crypto_cipher_get_flags(struct crypto_cipher *tfm) in crypto_cipher_get_flags() 124 static inline void crypto_cipher_set_flags(struct crypto_cipher *tfm, in crypto_cipher_set_flags() [all …]
|
/linux/crypto/ |
H A D | cipher.c | 20 static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, in setkey_unaligned() 42 int crypto_cipher_setkey(struct crypto_cipher *tfm, in crypto_cipher_setkey() 58 static inline void cipher_crypt_one(struct crypto_cipher *tfm, in cipher_crypt_one() 79 void crypto_cipher_encrypt_one(struct crypto_cipher *tfm, in crypto_cipher_encrypt_one() 86 void crypto_cipher_decrypt_one(struct crypto_cipher *tfm, in crypto_cipher_decrypt_one() 93 struct crypto_cipher *crypto_clone_cipher(struct crypto_cipher *cipher) in crypto_clone_cipher() 97 struct crypto_cipher *ncipher; in crypto_clone_cipher()
|
H A D | ecb.c | 16 static int crypto_ecb_crypt(struct crypto_cipher *cipher, const u8 *src, in crypto_ecb_crypt() 37 struct crypto_cipher **ctx = crypto_lskcipher_ctx(tfm); in crypto_ecb_encrypt2() 38 struct crypto_cipher *cipher = *ctx; in crypto_ecb_encrypt2() 48 struct crypto_cipher **ctx = crypto_lskcipher_ctx(tfm); in crypto_ecb_decrypt2() 49 struct crypto_cipher *cipher = *ctx; in crypto_ecb_decrypt2() 59 struct crypto_cipher **ctx = crypto_lskcipher_ctx(tfm); in lskcipher_setkey_simple2() 60 struct crypto_cipher *cipher = *ctx; in lskcipher_setkey_simple2() 71 struct crypto_cipher **ctx = crypto_lskcipher_ctx(tfm); in lskcipher_init_tfm_simple2() 73 struct crypto_cipher *cipher; in lskcipher_init_tfm_simple2() 86 struct crypto_cipher **ctx = crypto_lskcipher_ctx(tfm); in lskcipher_exit_tfm_simple2() [all …]
|
H A D | pcbc.c | 22 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_segment() 44 struct crypto_cipher *tfm) in crypto_pcbc_encrypt_inplace() 67 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_pcbc_encrypt() 89 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_segment() 111 struct crypto_cipher *tfm) in crypto_pcbc_decrypt_inplace() 134 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_pcbc_decrypt()
|
H A D | xctr.c | 35 struct crypto_cipher *tfm, u32 byte_ctr) in crypto_xctr_crypt_final() 50 struct crypto_cipher *tfm, u32 byte_ctr) in crypto_xctr_crypt_segment() 75 struct crypto_cipher *tfm, u32 byte_ctr) in crypto_xctr_crypt_inplace() 103 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_xctr_crypt()
|
H A D | cmac.c | 30 struct crypto_cipher *child; 121 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() 166 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() 199 struct crypto_cipher *cipher; in cmac_init_tfm() 215 struct crypto_cipher *cipher; in cmac_clone_tfm()
|
H A D | xcbc.c | 29 struct crypto_cipher *child; 89 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_update() 134 struct crypto_cipher *tfm = tctx->child; in crypto_xcbc_digest_final() 164 struct crypto_cipher *cipher; in xcbc_init_tfm()
|
H A D | ctr.c | 29 struct crypto_cipher *tfm) in crypto_ctr_crypt_final() 47 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment() 73 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace() 102 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in crypto_ctr_crypt()
|
H A D | xts.c | 26 struct crypto_cipher *tweak; 46 struct crypto_cipher *tweak; in xts_setkey() 301 struct crypto_cipher *tweak; in xts_init_tfm()
|
H A D | ccm.c | 54 struct crypto_cipher *child; 801 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_update() 826 struct crypto_cipher *tfm = tctx->child; in crypto_cbcmac_digest_final() 838 struct crypto_cipher *cipher; in cbcmac_init_tfm()
|
H A D | drbg.c | 1724 struct crypto_cipher *tfm = in drbg_fini_sym_kernel() 1725 (struct crypto_cipher *)drbg->priv_data; in drbg_fini_sym_kernel() 1746 struct crypto_cipher *tfm; in drbg_init_sym_kernel() 1806 struct crypto_cipher *tfm = drbg->priv_data; in drbg_kcapi_symsetkey() 1814 struct crypto_cipher *tfm = drbg->priv_data; in drbg_kcapi_sym()
|
H A D | hctr2.c | 44 struct crypto_cipher *blockcipher; 340 struct crypto_cipher *blockcipher; in hctr2_init_tfm()
|
H A D | essiv.c | 55 struct crypto_cipher *essiv_cipher; 273 struct crypto_cipher *essiv_cipher; in essiv_init_tfm()
|
H A D | adiantum.c | 72 struct crypto_cipher *blockcipher; 433 struct crypto_cipher *blockcipher; in adiantum_init_tfm()
|
H A D | ansi_cprng.c | 47 struct crypto_cipher *tfm;
|
H A D | skcipher.c | 818 struct crypto_cipher *cipher = skcipher_cipher_simple(tfm); in skcipher_setkey_simple() 831 struct crypto_cipher *cipher; in skcipher_init_tfm_simple()
|
H A D | testmgr.c | 2755 static int test_cipher(struct crypto_cipher *tfm, int enc, in test_cipher() 3693 struct crypto_cipher *tfm; in alg_test_cipher()
|
/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_bpf_crypto.c | 17 char *crypto_cipher; member 20 .crypto_cipher = "ecb(aes)", 49 args.crypto_cipher = strdup(arg); in crypto_parse_arg() 50 if (!strlen(args.crypto_cipher) || in crypto_parse_arg() 51 strlen(args.crypto_cipher) > MAX_CIPHER_LEN) { in crypto_parse_arg() 99 snprintf(ctx.skel->bss->cipher, 128, "%s", args.crypto_cipher); in crypto_setup()
|
/linux/arch/powerpc/crypto/ |
H A D | aes.c | 23 struct crypto_cipher *fallback; 31 struct crypto_cipher *fallback; in p8_aes_init() 44 crypto_cipher *) in p8_aes_init()
|
/linux/drivers/crypto/ |
H A D | geode-aes.h | 53 struct crypto_cipher *cip;
|
/linux/arch/s390/crypto/ |
H A D | aes_s390.c | 49 struct crypto_cipher *cip;
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_algs.c | 92 struct crypto_cipher *tweak;
|