/Linux-v4.19/include/crypto/ |
D | skcipher.h | 55 struct crypto_skcipher { struct 56 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, argument 126 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key, 130 int (*init)(struct crypto_skcipher *tfm); 131 void (*exit)(struct crypto_skcipher *tfm); 177 static inline struct crypto_skcipher *__crypto_skcipher_cast( in __crypto_skcipher_cast() 180 return container_of(tfm, struct crypto_skcipher, base); in __crypto_skcipher_cast() 197 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, 201 struct crypto_skcipher *tfm) in crypto_skcipher_tfm() 210 static inline void crypto_free_skcipher(struct crypto_skcipher *tfm) in crypto_free_skcipher() [all …]
|
D | cbc.h | 21 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_segment() 22 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_encrypt_segment() argument 43 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_encrypt_inplace() 44 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_encrypt_inplace() argument 65 void (*fn)(struct crypto_skcipher *, in crypto_cbc_encrypt_walk() argument 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt_walk() 86 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_segment() 87 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_decrypt_segment() argument 110 struct skcipher_walk *walk, struct crypto_skcipher *tfm, in crypto_cbc_decrypt_inplace() 111 void (*fn)(struct crypto_skcipher *, const u8 *, u8 *)) in crypto_cbc_decrypt_inplace() argument [all …]
|
/Linux-v4.19/include/linux/sunrpc/ |
D | gss_krb5.h | 74 u32 (*encrypt) (struct crypto_skcipher *tfm, 77 u32 (*decrypt) (struct crypto_skcipher *tfm, 101 struct crypto_skcipher *enc; 102 struct crypto_skcipher *seq; 103 struct crypto_skcipher *acceptor_enc; 104 struct crypto_skcipher *initiator_enc; 105 struct crypto_skcipher *acceptor_enc_aux; 106 struct crypto_skcipher *initiator_enc_aux; 265 krb5_encrypt(struct crypto_skcipher *key, 269 krb5_decrypt(struct crypto_skcipher *key, [all …]
|
/Linux-v4.19/arch/x86/crypto/ |
D | fpu.c | 23 struct crypto_skcipher *child; 26 static int crypto_fpu_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_fpu_setkey() 30 struct crypto_skcipher *child = ctx->child; in crypto_fpu_setkey() 44 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_fpu_encrypt() 46 struct crypto_skcipher *child = ctx->child; in crypto_fpu_encrypt() 65 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_fpu_decrypt() 67 struct crypto_skcipher *child = ctx->child; in crypto_fpu_decrypt() 84 static int crypto_fpu_init_tfm(struct crypto_skcipher *tfm) in crypto_fpu_init_tfm() 89 struct crypto_skcipher *cipher; in crypto_fpu_init_tfm() 101 static void crypto_fpu_exit_tfm(struct crypto_skcipher *tfm) in crypto_fpu_exit_tfm()
|
/Linux-v4.19/crypto/ |
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() 90 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace() 113 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt() 137 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment() 160 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace() 181 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks() 189 static int crypto_cfb_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cfb_setkey() [all …]
|
D | simd.c | 43 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey() 47 struct crypto_skcipher *child = &ctx->cryptd_tfm->base; in simd_skcipher_setkey() 61 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt() 64 struct crypto_skcipher *child; in simd_skcipher_encrypt() 82 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt() 85 struct crypto_skcipher *child; in simd_skcipher_decrypt() 101 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit() 108 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init() 140 struct crypto_skcipher *tfm; in simd_skcipher_create_compat()
|
D | cts.c | 56 struct crypto_skcipher *child; 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_reqctx_space() 70 struct crypto_skcipher *child = ctx->child; in crypto_cts_reqctx_space() 76 static int crypto_cts_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cts_setkey() 80 struct crypto_skcipher *child = ctx->child; in crypto_cts_setkey() 105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() 149 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt() 184 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() 241 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt() 283 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm() [all …]
|
D | cbc.c | 27 static int crypto_cbc_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_cbc_setkey() 43 static inline void crypto_cbc_encrypt_one(struct crypto_skcipher *tfm, in crypto_cbc_encrypt_one() 56 static inline void crypto_cbc_decrypt_one(struct crypto_skcipher *tfm, in crypto_cbc_decrypt_one() 66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cbc_decrypt() 81 static int crypto_cbc_init_tfm(struct crypto_skcipher *tfm) in crypto_cbc_init_tfm() 96 static void crypto_cbc_exit_tfm(struct crypto_skcipher *tfm) in crypto_cbc_exit_tfm()
|
D | skcipher.c | 447 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_skcipher() 587 static int skcipher_setkey_blkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_blkcipher() 613 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_blkcipher() 627 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_blkcipher() 636 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_blkcipher() 653 struct crypto_skcipher *skcipher = __crypto_skcipher_cast(tfm); in crypto_init_skcipher_ops_blkcipher() 685 static int skcipher_setkey_ablkcipher(struct crypto_skcipher *tfm, in skcipher_setkey_ablkcipher() 710 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_crypt_ablkcipher() 725 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_encrypt_ablkcipher() 734 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in skcipher_decrypt_ablkcipher() [all …]
|
D | ctr.c | 29 struct crypto_skcipher *child; 260 static int crypto_rfc3686_setkey(struct crypto_skcipher *parent, in crypto_rfc3686_setkey() 264 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_setkey() 288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt() 290 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_crypt() 314 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm() 319 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm() 338 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
|
D | algif_skcipher.c | 48 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg() 62 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg() 217 struct crypto_skcipher *tfm; in skcipher_check_key() 329 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct() 341 struct crypto_skcipher *tfm = private; in skcipher_accept_parent_nokey() 375 struct crypto_skcipher *tfm = private; in skcipher_accept_parent()
|
D | pcbc.c | 30 static int crypto_pcbc_setkey(struct crypto_skcipher *parent, const u8 *key, in crypto_pcbc_setkey() 94 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_encrypt() 166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_pcbc_decrypt() 188 static int crypto_pcbc_init_tfm(struct crypto_skcipher *tfm) in crypto_pcbc_init_tfm() 203 static void crypto_pcbc_exit_tfm(struct crypto_skcipher *tfm) in crypto_pcbc_exit_tfm()
|
/Linux-v4.19/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-cipher.c | 21 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll() 129 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll() 322 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() 333 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() 345 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() 356 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() 368 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() 379 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() 391 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() 402 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_decrypt() [all …]
|
D | sun4i-ss.h | 206 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, 208 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, 210 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key,
|
/Linux-v4.19/drivers/crypto/amcc/ |
D | crypto4xx_core.h | 131 struct crypto_skcipher *cipher; 168 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, 170 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, 172 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, 174 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, 176 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, 178 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
|
D | crypto4xx_alg.c | 81 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_crypt() 116 static int crypto4xx_setkey_aes(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes() 169 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cbc() 176 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_cfb() 183 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ecb() 190 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, in crypto4xx_setkey_aes_ofb() 197 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher, in crypto4xx_setkey_rfc3686() 216 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_rfc3686_encrypt() 231 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_rfc3686_decrypt() 247 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(req); in crypto4xx_ctr_crypt() [all …]
|
/Linux-v4.19/net/sunrpc/auth_gss/ |
D | gss_krb5_seqnum.c | 46 struct crypto_skcipher *cipher; in krb5_make_rc4_seq_num() 76 struct crypto_skcipher *key, in krb5_make_seq_num() 104 struct crypto_skcipher *cipher; in krb5_get_rc4_seq_num() 145 struct crypto_skcipher *key = kctx->seq; in krb5_get_seq_num()
|
/Linux-v4.19/drivers/crypto/cavium/nitrox/ |
D | nitrox_algs.c | 73 static int nitrox_skcipher_init(struct crypto_skcipher *tfm) in nitrox_skcipher_init() 95 static void nitrox_skcipher_exit(struct crypto_skcipher *tfm) in nitrox_skcipher_exit() 113 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey() 143 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in nitrox_aes_setkey() 168 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt() 217 static int nitrox_3des_setkey(struct crypto_skcipher *cipher, in nitrox_3des_setkey() 238 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, in nitrox_aes_xts_setkey() 265 static int nitrox_aes_ctr_rfc3686_setkey(struct crypto_skcipher *cipher, in nitrox_aes_ctr_rfc3686_setkey()
|
/Linux-v4.19/arch/arm64/crypto/ |
D | aes-neonbs-glue.c | 73 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() 97 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() 132 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() 156 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() 179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() 205 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync() 226 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() 265 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() 288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt_sync() 301 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt()
|
D | aes-glue.c | 105 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() 111 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() 134 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() 154 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() 174 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() 194 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() 214 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() 253 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt_sync() 264 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() 286 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt()
|
/Linux-v4.19/arch/arm/crypto/ |
D | aes-ce-glue.c | 137 static int ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ce_aes_setkey() 156 static int xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in xts_set_key() 179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() 199 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() 219 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() 240 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() 261 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() 298 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() 320 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt()
|
D | aes-neonbs-glue.c | 60 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() 84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() 119 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() 139 static void cbc_encrypt_one(struct crypto_skcipher *tfm, const u8 *src, u8 *dst) in cbc_encrypt_one() 153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() 197 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() 237 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() 275 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt()
|
/Linux-v4.19/include/crypto/internal/ |
D | skcipher.h | 82 struct crypto_skcipher *skcipher) in skcipher_alg_instance() 124 static inline struct crypto_skcipher *crypto_spawn_skcipher( in crypto_spawn_skcipher() 131 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() 169 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx()
|
/Linux-v4.19/drivers/crypto/hisilicon/sec/ |
D | sec_algs.c | 142 static void sec_alg_skcipher_init_context(struct crypto_skcipher *atfm, in sec_alg_skcipher_init_context() 231 static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey() 257 static int sec_alg_skcipher_setkey_aes_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ecb() 279 static int sec_alg_skcipher_setkey_aes_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_cbc() 301 static int sec_alg_skcipher_setkey_aes_ctr(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ctr() 323 static int sec_alg_skcipher_setkey_aes_xts(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_xts() 347 static int sec_alg_skcipher_setkey_des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_ecb() 356 static int sec_alg_skcipher_setkey_des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_cbc() 365 static int sec_alg_skcipher_setkey_3des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_ecb() 375 static int sec_alg_skcipher_setkey_3des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_cbc() [all …]
|
/Linux-v4.19/arch/x86/include/asm/crypto/ |
D | serpent-avx.h | 9 struct crypto_skcipher; 39 extern int xts_serpent_setkey(struct crypto_skcipher *tfm, const u8 *key,
|