/openbmc/linux/include/crypto/ |
H A D | skcipher.h | 42 struct crypto_skcipher { struct 49 struct crypto_skcipher base; argument 217 struct crypto_skcipher *tfm) in crypto_skcipher_tfm() 251 struct crypto_skcipher *tfm) in crypto_skcipher_driver_name() 257 struct crypto_skcipher *tfm) in crypto_skcipher_alg() 299 struct crypto_skcipher *tfm) in crypto_skcipher_blocksize() 322 struct crypto_skcipher *tfm) in crypto_skcipher_chunksize() 334 struct crypto_skcipher *tfm) in crypto_skcipher_alignmask() 400 struct crypto_skcipher *tfm) in crypto_skcipher_min_keysize() 406 struct crypto_skcipher *tfm) in crypto_skcipher_max_keysize() [all …]
|
/openbmc/linux/include/crypto/internal/ |
H A D | skcipher.h | 84 struct crypto_skcipher *skcipher) in skcipher_alg_instance() 121 static inline struct crypto_skcipher *crypto_spawn_skcipher( in crypto_spawn_skcipher() 128 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize() 134 struct crypto_skcipher *skcipher, unsigned int reqsize) in crypto_skcipher_set_reqsize_dma() 164 static inline void *crypto_skcipher_ctx(struct crypto_skcipher *tfm) in crypto_skcipher_ctx() 169 static inline void *crypto_skcipher_ctx_dma(struct crypto_skcipher *tfm) in crypto_skcipher_ctx_dma() 224 struct crypto_skcipher *tfm) in crypto_skcipher_walksize() 234 skcipher_cipher_simple(struct crypto_skcipher *tfm) in skcipher_cipher_simple()
|
H A D | chacha.h | 15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey() 31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha20_setkey() 37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha12_setkey()
|
/openbmc/linux/crypto/ |
H A D | cfb.c | 31 static unsigned int crypto_cfb_bsize(struct crypto_skcipher *tfm) in crypto_cfb_bsize() 36 static void crypto_cfb_encrypt_one(struct crypto_skcipher *tfm, in crypto_cfb_encrypt_one() 44 struct crypto_skcipher *tfm) in crypto_cfb_final() 59 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_segment() 82 struct crypto_skcipher *tfm) in crypto_cfb_encrypt_inplace() 105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_encrypt() 129 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_segment() 152 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_inplace() 171 struct crypto_skcipher *tfm) in crypto_cfb_decrypt_blocks() 181 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cfb_decrypt()
|
H A 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() 80 struct crypto_skcipher *child = ctx->child; in crypto_cts_setkey() 101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() 145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt() 182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() 239 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() 288 struct crypto_skcipher *cipher; in crypto_cts_init_tfm() [all …]
|
H A D | ctr.c | 19 struct crypto_skcipher *child; 101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_ctr_crypt() 169 static int crypto_rfc3686_setkey(struct crypto_skcipher *parent, in crypto_rfc3686_setkey() 173 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_setkey() 192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt() 194 struct crypto_skcipher *child = ctx->child; in crypto_rfc3686_crypt() 218 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm() 223 struct crypto_skcipher *cipher; in crypto_rfc3686_init_tfm() 242 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
|
H A D | cbc.c | 18 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_segment() 46 struct crypto_skcipher *skcipher) in crypto_cbc_encrypt_inplace() 75 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_encrypt() 93 struct crypto_skcipher *skcipher) in crypto_cbc_decrypt_segment() 123 struct crypto_skcipher *skcipher) in crypto_cbc_decrypt_inplace() 157 struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); in crypto_cbc_decrypt()
|
H A D | arc4.c | 18 static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in crypto_arc4_setkey() 28 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_arc4_crypt() 44 static int crypto_arc4_init(struct crypto_skcipher *tfm) in crypto_arc4_init()
|
H A D | lrw.c | 31 struct crypto_skcipher *child; 68 static int lrw_setkey(struct crypto_skcipher *parent, const u8 *key, in lrw_setkey() 72 struct crypto_skcipher *child = ctx->child; in lrw_setkey() 143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in lrw_xor_tweak() 265 static int lrw_init_tfm(struct crypto_skcipher *tfm) in lrw_init_tfm() 270 struct crypto_skcipher *cipher; in lrw_init_tfm() 284 static void lrw_exit_tfm(struct crypto_skcipher *tfm) in lrw_exit_tfm()
|
/openbmc/linux/drivers/crypto/vmx/ |
H A D | aes_cbc.c | 19 struct crypto_skcipher *fallback; 24 static int p8_aes_cbc_init(struct crypto_skcipher *tfm) in p8_aes_cbc_init() 27 struct crypto_skcipher *fallback; in p8_aes_cbc_init() 44 static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) in p8_aes_cbc_exit() 51 static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_cbc_setkey() 73 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_cbc_crypt()
|
H A D | aes_ctr.c | 19 struct crypto_skcipher *fallback; 23 static int p8_aes_ctr_init(struct crypto_skcipher *tfm) in p8_aes_ctr_init() 26 struct crypto_skcipher *fallback; in p8_aes_ctr_init() 43 static void p8_aes_ctr_exit(struct crypto_skcipher *tfm) in p8_aes_ctr_exit() 50 static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_ctr_setkey() 92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_ctr_crypt()
|
H A D | aes_xts.c | 20 struct crypto_skcipher *fallback; 26 static int p8_aes_xts_init(struct crypto_skcipher *tfm) in p8_aes_xts_init() 29 struct crypto_skcipher *fallback; in p8_aes_xts_init() 46 static void p8_aes_xts_exit(struct crypto_skcipher *tfm) in p8_aes_xts_exit() 53 static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_xts_setkey() 80 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_xts_crypt()
|
/openbmc/linux/arch/arm/crypto/ |
H A D | aes-neonbs-glue.c | 54 struct crypto_skcipher *enc_tfm; 68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() 92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() 151 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() 166 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() 192 static int cbc_init(struct crypto_skcipher *tfm) in cbc_init() 209 static void cbc_exit(struct crypto_skcipher *tfm) in cbc_exit() 237 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() 314 static int xts_init(struct crypto_skcipher *tfm) in xts_init() 329 static void xts_exit(struct crypto_skcipher *tfm) in xts_exit() [all …]
|
/openbmc/linux/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-cipher.c | 17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll() 150 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback() 178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll() 399 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() 410 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() 422 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() 433 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() 445 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() 456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() 468 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() [all …]
|
H A D | sun4i-ss.h | 181 struct crypto_skcipher *fallback_tfm; 228 int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, 230 int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, 232 int sun4i_ss_des3_setkey(struct crypto_skcipher *tfm, const u8 *key,
|
/openbmc/linux/drivers/crypto/amcc/ |
H A D | crypto4xx_core.h | 163 int crypto4xx_setkey_aes_cbc(struct crypto_skcipher *cipher, 165 int crypto4xx_setkey_aes_cfb(struct crypto_skcipher *cipher, 167 int crypto4xx_setkey_aes_ctr(struct crypto_skcipher *cipher, 169 int crypto4xx_setkey_aes_ecb(struct crypto_skcipher *cipher, 171 int crypto4xx_setkey_aes_ofb(struct crypto_skcipher *cipher, 173 int crypto4xx_setkey_rfc3686(struct crypto_skcipher *cipher,
|
/openbmc/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_skcipher.c | 83 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_cipher_callback() 108 static int nitrox_skcipher_init(struct crypto_skcipher *tfm) in nitrox_skcipher_init() 134 static int nitrox_cbc_init(struct crypto_skcipher *tfm) in nitrox_cbc_init() 147 static void nitrox_skcipher_exit(struct crypto_skcipher *tfm) in nitrox_skcipher_exit() 165 static inline int nitrox_skcipher_setkey(struct crypto_skcipher *cipher, in nitrox_skcipher_setkey() 197 static int nitrox_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in nitrox_aes_setkey() 249 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_skcipher_crypt() 293 struct crypto_skcipher *cipher = crypto_skcipher_reqtfm(skreq); in nitrox_cbc_decrypt() 320 static int nitrox_3des_setkey(struct crypto_skcipher *cipher, in nitrox_3des_setkey() 337 static int nitrox_aes_xts_setkey(struct crypto_skcipher *cipher, in nitrox_aes_xts_setkey() [all …]
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | sm4-neon-glue.c | 30 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_setkey() 68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_encrypt() 76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_decrypt() 84 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() 116 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_decrypt() 147 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cfb_encrypt() 187 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cfb_decrypt() 231 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ctr_crypt()
|
/openbmc/linux/arch/s390/crypto/ |
H A D | paes_s390.c | 161 static int ecb_paes_init(struct crypto_skcipher *tfm) in ecb_paes_init() 171 static void ecb_paes_exit(struct crypto_skcipher *tfm) in ecb_paes_exit() 214 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_paes_crypt() 276 static int cbc_paes_init(struct crypto_skcipher *tfm) in cbc_paes_init() 286 static void cbc_paes_exit(struct crypto_skcipher *tfm) in cbc_paes_exit() 329 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_paes_crypt() 396 static int xts_paes_init(struct crypto_skcipher *tfm) in xts_paes_init() 407 static void xts_paes_exit(struct crypto_skcipher *tfm) in xts_paes_exit() 495 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_paes_crypt() 576 static int ctr_paes_init(struct crypto_skcipher *tfm) in ctr_paes_init() [all …]
|
/openbmc/linux/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 98 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in create_ctx_hdr() 195 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cvm_enc_dec() 232 static int cvm_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_xts_setkey() 288 static int cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_setkey() 302 static int cvm_cbc_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_aes_setkey() 308 static int cvm_ecb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_aes_setkey() 314 static int cvm_cfb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cfb_aes_setkey() 320 static int cvm_cbc_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_des3_setkey() 327 static int cvm_ecb_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_des3_setkey() 334 static int cvm_enc_dec_init(struct crypto_skcipher *tfm) in cvm_enc_dec_init()
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-aes-ctr.c | 22 static int ctr_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr_aes_nx_set_key() 54 static int ctr3686_aes_nx_set_key(struct crypto_skcipher *tfm, in ctr3686_aes_nx_set_key() 74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_aes_nx_crypt() 117 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr3686_aes_nx_crypt()
|
H A D | nx.h | 148 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm); 149 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm); 150 int nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm); 153 void nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm);
|
/openbmc/linux/arch/x86/crypto/ |
H A D | aria_aesni_avx_glue.c | 66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_encrypt() 74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_decrypt() 80 static int aria_avx_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx_set_key() 89 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ctr_encrypt() 146 static int aria_avx_init_tfm(struct crypto_skcipher *tfm) in aria_avx_init_tfm()
|
H A D | aria_gfni_avx512_glue.c | 55 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx512_ecb_encrypt() 63 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx512_ecb_decrypt() 69 static int aria_avx512_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx512_set_key() 78 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx512_ctr_encrypt() 158 static int aria_avx512_init_tfm(struct crypto_skcipher *tfm) in aria_avx512_init_tfm()
|
/openbmc/linux/drivers/crypto/qce/ |
H A D | cipher.h | 17 struct crypto_skcipher *fallback; 48 static inline struct qce_alg_template *to_cipher_tmpl(struct crypto_skcipher *tfm) in to_cipher_tmpl()
|