| /linux-6.15/include/crypto/ |
| H A D | aead.h | 77 struct crypto_aead; 140 int (*setkey)(struct crypto_aead *tfm, const u8 *key, 142 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); 145 int (*init)(struct crypto_aead *tfm); 146 void (*exit)(struct crypto_aead *tfm); 155 struct crypto_aead { struct 164 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast() 194 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead() 288 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags() 319 int crypto_aead_setkey(struct crypto_aead *tfm, [all …]
|
| H A D | cryptd.h | 54 struct crypto_aead base; 58 struct crypto_aead *tfm) in __cryptd_aead_cast() 66 struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm);
|
| /linux-6.15/include/crypto/internal/ |
| H A D | aead.h | 37 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx() 42 static inline void *crypto_aead_ctx_dma(struct crypto_aead *tfm) in crypto_aead_ctx_dma() 58 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance() 114 static inline struct crypto_aead *crypto_spawn_aead( in crypto_spawn_aead() 120 static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, in crypto_aead_set_reqsize() 126 static inline void crypto_aead_set_reqsize_dma(struct crypto_aead *aead, in crypto_aead_set_reqsize_dma() 155 static inline unsigned int crypto_aead_chunksize(struct crypto_aead *tfm) in crypto_aead_chunksize()
|
| H A D | geniv.h | 17 struct crypto_aead *child; 24 int aead_init_geniv(struct crypto_aead *tfm); 25 void aead_exit_geniv(struct crypto_aead *tfm);
|
| /linux-6.15/net/mac80211/ |
| H A D | aead_api.h | 9 struct crypto_aead * 13 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 17 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, 21 void aead_key_free(struct crypto_aead *tfm);
|
| H A D | aes_gcm.h | 13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_encrypt() 22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_decrypt() 31 static inline struct crypto_aead * 38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free()
|
| H A D | aes_ccm.h | 14 static inline struct crypto_aead * 21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_encrypt() 31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_decrypt() 40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
|
| H A D | aes_gmac.h | 15 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, 19 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
|
| H A D | aead_api.c | 18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() 50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() 85 struct crypto_aead * 89 struct crypto_aead *tfm; in aead_key_setup_encrypt() 110 void aead_key_free(struct crypto_aead *tfm) in aead_key_free()
|
| H A D | aes_gmac.c | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() 69 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup() 72 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() 89 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
|
| /linux-6.15/crypto/ |
| H A D | aead.c | 24 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned() 44 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey() 65 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() 86 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_encrypt() 97 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_decrypt() 111 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_exit_tfm() 119 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_init_tfm() 188 .tfmsize = offsetof(struct crypto_aead, base), 200 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead()
|
| H A D | gcm.c | 33 struct crypto_aead *child; 48 struct crypto_aead *child; 180 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt() 412 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash() 466 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify() 501 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt() 691 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey() 724 struct crypto_aead *child = ctx->child; in crypto_rfc4106_crypt() 790 struct crypto_aead *aead; in crypto_rfc4106_init_tfm() 899 struct crypto_aead *child = ctx->child; in crypto_rfc4543_setkey() [all …]
|
| H A D | pcrypt.c | 32 struct crypto_aead *child; 37 struct crypto_aead *tfm) in pcrypt_tfm_ictx() 42 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey() 50 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize() 98 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_encrypt() 149 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_decrypt() 179 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) in pcrypt_aead_init_tfm() 185 struct crypto_aead *cipher; in pcrypt_aead_init_tfm() 207 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) in pcrypt_aead_exit_tfm()
|
| H A D | geniv.c | 19 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey() 27 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize() 109 int aead_init_geniv(struct crypto_aead *aead) in aead_init_geniv() 113 struct crypto_aead *child; in aead_init_geniv() 153 void aead_exit_geniv(struct crypto_aead *tfm) in aead_exit_geniv()
|
| H A D | ccm.c | 30 struct crypto_aead *child; 131 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() 173 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth() 231 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done() 288 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt() 328 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done() 347 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt() 571 struct crypto_aead *child = ctx->child; in crypto_rfc4309_setkey() 606 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4309_crypt() 608 struct crypto_aead *child = ctx->child; in crypto_rfc4309_crypt() [all …]
|
| H A D | simd.c | 268 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey() 272 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setkey() 280 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() 283 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setauthsize() 290 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() 293 struct crypto_aead *child; in simd_aead_encrypt() 311 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() 314 struct crypto_aead *child; in simd_aead_decrypt() 330 static void simd_aead_exit(struct crypto_aead *tfm) in simd_aead_exit() 337 static int simd_aead_init(struct crypto_aead *tfm) in simd_aead_init()
|
| H A D | krb5enc.c | 99 static int krb5enc_setkey(struct crypto_aead *krb5enc, const u8 *key, in krb5enc_setkey() 140 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_dispatch_encrypt() 170 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_insert_checksum() 184 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_encrypt_ahash_done() 207 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_dispatch_encrypt_hash() 247 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_verify_hash() 279 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_dispatch_decrypt_hash() 308 struct crypto_aead *krb5enc = crypto_aead_reqtfm(req); in krb5enc_dispatch_decrypt() 344 static int krb5enc_init_tfm(struct crypto_aead *tfm) in krb5enc_init_tfm() 379 static void krb5enc_exit_tfm(struct crypto_aead *tfm) in krb5enc_exit_tfm()
|
| H A D | authencesn.c | 49 static int crypto_authenc_esn_setauthsize(struct crypto_aead *authenc_esn, in crypto_authenc_esn_setauthsize() 58 static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 *key, in crypto_authenc_esn_setkey() 89 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv_tail() 118 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv() 163 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_copy() 177 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_encrypt() 216 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt_tail() 264 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt() 313 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm() 362 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm()
|
| H A D | authenc.c | 84 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() 115 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() 134 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() 175 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_copy_assoc() 190 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() 228 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail() 275 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() 299 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm() 346 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm()
|
| /linux-6.15/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_aead.c | 58 static int nitrox_aead_setauthsize(struct crypto_aead *aead, in nitrox_aead_setauthsize() 74 static int nitrox_aes_gcm_setauthsize(struct crypto_aead *aead, in nitrox_aes_gcm_setauthsize() 215 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_enc() 249 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_dec() 281 static int nitrox_aead_init(struct crypto_aead *aead) in nitrox_aead_init() 305 static int nitrox_gcm_common_init(struct crypto_aead *aead) in nitrox_gcm_common_init() 326 static int nitrox_aes_gcm_init(struct crypto_aead *aead) in nitrox_aes_gcm_init() 341 static void nitrox_aead_exit(struct crypto_aead *aead) in nitrox_aead_exit() 442 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_rfc4106_enc() 474 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_rfc4106_dec() [all …]
|
| /linux-6.15/drivers/crypto/xilinx/ |
| H A D | zynqmp-aes-gcm.c | 70 struct crypto_aead *fbk_cipher; 79 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_cipher() 209 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_handle_aes_req() 241 static int zynqmp_aes_aead_setkey(struct crypto_aead *aead, const u8 *key, in zynqmp_aes_aead_setkey() 273 static int zynqmp_aes_aead_setauthsize(struct crypto_aead *aead, in zynqmp_aes_aead_setauthsize() 287 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_encrypt() 300 struct crypto_aead *aead = crypto_aead_reqtfm(req); in zynqmp_aes_aead_decrypt() 310 static int zynqmp_aes_aead_init(struct crypto_aead *aead) in zynqmp_aes_aead_init() 338 static void zynqmp_aes_aead_exit(struct crypto_aead *aead) in zynqmp_aes_aead_exit()
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | aegis128-aesni-glue.c | 139 static struct aegis_ctx *crypto_aegis128_aesni_ctx(struct crypto_aead *aead) in crypto_aegis128_aesni_ctx() 146 static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key, in crypto_aegis128_aesni_setkey() 159 static int crypto_aegis128_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis128_aesni_setauthsize() 174 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_crypt() 196 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_encrypt() 212 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_decrypt()
|
| /linux-6.15/drivers/crypto/ |
| H A D | omap-aes.h | 200 int omap_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, 202 int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key, 206 int omap_aes_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize); 209 int omap_aes_4106gcm_setauthsize(struct crypto_aead *parent, 211 int omap_aes_gcm_cra_init(struct crypto_aead *tfm);
|
| /linux-6.15/crypto/krb5/ |
| H A D | krb5_api.c | 161 struct crypto_aead *krb5_prepare_encryption(const struct krb5_enctype *krb5, in krb5_prepare_encryption() 165 struct crypto_aead *ci = NULL; in krb5_prepare_encryption() 206 struct crypto_aead *crypto_krb5_prepare_encryption(const struct krb5_enctype *krb5, in crypto_krb5_prepare_encryption() 210 struct crypto_aead *ci = NULL; in crypto_krb5_prepare_encryption() 329 struct crypto_aead *aead, in crypto_krb5_encrypt() 366 struct crypto_aead *aead, in crypto_krb5_decrypt()
|
| /linux-6.15/arch/arm64/crypto/ |
| H A D | sm4-ce-gcm-glue.c | 43 static int gcm_setkey(struct crypto_aead *tfm, const u8 *key, in gcm_setkey() 61 static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_setauthsize() 75 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_calculate_auth_mac() 139 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt() 195 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_encrypt() 214 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_decrypt()
|