| /Linux-v5.4/include/crypto/ |
| D | aead.h | 69 struct crypto_aead; 131 int (*setkey)(struct crypto_aead *tfm, const u8 *key, 133 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize); 136 int (*init)(struct crypto_aead *tfm); 137 void (*exit)(struct crypto_aead *tfm); 146 struct crypto_aead { struct 153 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument 155 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast() 172 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask); 174 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() [all …]
|
| D | cryptd.h | 53 struct crypto_aead base; 57 struct crypto_aead *tfm) in __cryptd_aead_cast() 65 struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm);
|
| /Linux-v5.4/net/mac80211/ |
| 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);
|
| 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()
|
| 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()
|
| D | aead_api.c | 18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() 49 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() 84 struct crypto_aead * 88 struct crypto_aead *tfm; in aead_key_setup_encrypt() 109 void aead_key_free(struct crypto_aead *tfm) in aead_key_free()
|
| 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);
|
| D | aes_gmac.c | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() 56 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup() 59 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() 76 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
|
| D | key.h | 91 struct crypto_aead *tfm; 102 struct crypto_aead *tfm; 113 struct crypto_aead *tfm;
|
| /Linux-v5.4/include/crypto/internal/ |
| D | aead.h | 37 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx() 53 static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead) in aead_alg_instance() 104 static inline struct crypto_aead *crypto_spawn_aead( in crypto_spawn_aead() 110 static inline void crypto_aead_set_reqsize(struct crypto_aead *aead, in crypto_aead_set_reqsize() 121 static inline unsigned int crypto_aead_maxauthsize(struct crypto_aead *aead) in crypto_aead_maxauthsize() 173 static inline unsigned int crypto_aead_chunksize(struct crypto_aead *tfm) in crypto_aead_chunksize()
|
| D | geniv.h | 17 struct crypto_aead *child; 25 int aead_init_geniv(struct crypto_aead *tfm); 26 void aead_exit_geniv(struct crypto_aead *tfm);
|
| /Linux-v5.4/crypto/ |
| D | aead.c | 27 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned() 48 int crypto_aead_setkey(struct crypto_aead *tfm, in crypto_aead_setkey() 69 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize() 90 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_encrypt() 107 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_aead_decrypt() 126 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_exit_tfm() 134 struct crypto_aead *aead = __crypto_aead_cast(tfm); in crypto_aead_init_tfm() 212 .tfmsize = offsetof(struct crypto_aead, base), 215 static int aead_geniv_setkey(struct crypto_aead *tfm, in aead_geniv_setkey() 223 static int aead_geniv_setauthsize(struct crypto_aead *tfm, in aead_geniv_setauthsize() [all …]
|
| D | simd.c | 293 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey() 297 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setkey() 309 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() 312 struct crypto_aead *child = &ctx->cryptd_tfm->base; in simd_aead_setauthsize() 319 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() 322 struct crypto_aead *child; in simd_aead_encrypt() 340 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() 343 struct crypto_aead *child; in simd_aead_decrypt() 359 static void simd_aead_exit(struct crypto_aead *tfm) in simd_aead_exit() 366 static int simd_aead_init(struct crypto_aead *tfm) in simd_aead_init() [all …]
|
| D | gcm.c | 34 struct crypto_aead *child; 49 struct crypto_aead *child; 93 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_gcm_setkey() 152 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize() 186 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt() 420 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash() 474 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify() 509 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt() 527 static int crypto_gcm_init_tfm(struct crypto_aead *tfm) in crypto_gcm_init_tfm() 565 static void crypto_gcm_exit_tfm(struct crypto_aead *tfm) in crypto_gcm_exit_tfm() [all …]
|
| D | pcrypt.c | 31 struct crypto_aead *child; 35 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey() 43 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize() 90 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_encrypt() 132 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_decrypt() 155 static int pcrypt_aead_init_tfm(struct crypto_aead *tfm) in pcrypt_aead_init_tfm() 161 struct crypto_aead *cipher; in pcrypt_aead_init_tfm() 183 static void pcrypt_aead_exit_tfm(struct crypto_aead *tfm) in pcrypt_aead_exit_tfm()
|
| D | ccm.c | 31 struct crypto_aead *child; 88 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey() 116 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize() 138 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() 180 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth() 238 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done() 295 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt() 336 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done() 355 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt() 401 static int crypto_ccm_init_tfm(struct crypto_aead *tfm) in crypto_ccm_init_tfm() [all …]
|
| 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() 99 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv_tail() 132 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv() 179 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_copy() 193 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_encrypt() 232 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt_tail() 282 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_decrypt() 332 static int crypto_authenc_esn_init_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_init_tfm() 382 static void crypto_authenc_esn_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_esn_exit_tfm()
|
| D | authenc.c | 84 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() 125 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() 144 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() 189 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_copy_assoc() 204 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() 242 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail() 290 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() 317 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm() 364 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm()
|
| D | cryptd.c | 86 struct crypto_aead *child; 734 static int cryptd_aead_setkey(struct crypto_aead *parent, in cryptd_aead_setkey() 738 struct crypto_aead *child = ctx->child; in cryptd_aead_setkey() 743 static int cryptd_aead_setauthsize(struct crypto_aead *parent, in cryptd_aead_setauthsize() 747 struct crypto_aead *child = ctx->child; in cryptd_aead_setauthsize() 753 struct crypto_aead *child, in cryptd_aead_crypt() 760 struct crypto_aead *tfm; in cryptd_aead_crypt() 788 struct crypto_aead *child = ctx->child; in cryptd_aead_encrypt() 798 struct crypto_aead *child = ctx->child; in cryptd_aead_decrypt() 809 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cryptd_aead_enqueue() [all …]
|
| /Linux-v5.4/arch/x86/crypto/ |
| D | aegis128-aesni-glue.c | 135 static struct aegis_ctx *crypto_aegis128_aesni_ctx(struct crypto_aead *aead) in crypto_aegis128_aesni_ctx() 142 static int crypto_aegis128_aesni_setkey(struct crypto_aead *aead, const u8 *key, in crypto_aegis128_aesni_setkey() 157 static int crypto_aegis128_aesni_setauthsize(struct crypto_aead *tfm, in crypto_aegis128_aesni_setauthsize() 172 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_crypt() 197 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_encrypt() 219 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in crypto_aegis128_aesni_decrypt() 232 static int crypto_aegis128_aesni_init_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_init_tfm() 237 static void crypto_aegis128_aesni_exit_tfm(struct crypto_aead *aead) in crypto_aegis128_aesni_exit_tfm()
|
| /Linux-v5.4/drivers/crypto/cavium/nitrox/ |
| D | nitrox_aead.c | 34 static int nitrox_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key, in nitrox_aes_gcm_setkey() 61 static int nitrox_aead_setauthsize(struct crypto_aead *aead, in nitrox_aead_setauthsize() 191 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_enc() 222 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in nitrox_aes_gcm_dec() 251 static int nitrox_aead_init(struct crypto_aead *aead) in nitrox_aead_init() 275 static int nitrox_gcm_common_init(struct crypto_aead *aead) in nitrox_gcm_common_init() 296 static int nitrox_aes_gcm_init(struct crypto_aead *aead) in nitrox_aes_gcm_init() 311 static void nitrox_aead_exit(struct crypto_aead *aead) in nitrox_aead_exit() 329 static int nitrox_rfc4106_setkey(struct crypto_aead *aead, const u8 *key, in nitrox_rfc4106_setkey() 348 static int nitrox_rfc4106_setauthsize(struct crypto_aead *aead, in nitrox_rfc4106_setauthsize() [all …]
|
| /Linux-v5.4/drivers/crypto/nx/ |
| D | nx.h | 142 struct crypto_aead; 145 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm); 146 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm); 153 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm);
|
| /Linux-v5.4/drivers/crypto/ccree/ |
| D | cc_aead.c | 68 static void cc_aead_exit(struct crypto_aead *tfm) in cc_aead_exit() 122 static unsigned int cc_get_aead_hash_len(struct crypto_aead *tfm) in cc_get_aead_hash_len() 129 static int cc_aead_init(struct crypto_aead *tfm) in cc_aead_init() 216 struct crypto_aead *tfm = crypto_aead_reqtfm(cc_req); in cc_aead_complete() 413 static int cc_get_plain_hmac_key(struct crypto_aead *tfm, const u8 *authkey, in cc_get_plain_hmac_key() 543 static int cc_aead_setkey(struct crypto_aead *tfm, const u8 *key, in cc_aead_setkey() 648 static int cc_des3_aead_setkey(struct crypto_aead *aead, const u8 *key, in cc_des3_aead_setkey() 665 static int cc_rfc4309_ccm_setkey(struct crypto_aead *tfm, const u8 *key, in cc_rfc4309_ccm_setkey() 679 static int cc_aead_setauthsize(struct crypto_aead *authenc, in cc_aead_setauthsize() 697 static int cc_rfc4309_ccm_setauthsize(struct crypto_aead *authenc, in cc_rfc4309_ccm_setauthsize() [all …]
|
| /Linux-v5.4/net/ipv6/ |
| D | esp6.c | 53 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqihlen) in esp_alloc_tmp() 80 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv() 87 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req() 97 static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead, in esp_req_sg() 107 struct crypto_aead *aead = x->data; in esp_ssg_unref() 319 struct crypto_aead *aead; in esp6_output_tail() 430 struct crypto_aead *aead; in esp6_output() 477 struct crypto_aead *aead = x->data; in esp_remove_trailer() 522 struct crypto_aead *aead = x->data; in esp6_input_done2() 593 struct crypto_aead *aead = x->data; in esp6_input() [all …]
|
| /Linux-v5.4/drivers/crypto/amcc/ |
| D | crypto4xx_core.h | 125 struct crypto_aead *aead; 233 int crypto4xx_setauthsize_aead(struct crypto_aead *ciper, 235 int crypto4xx_setkey_aes_ccm(struct crypto_aead *cipher, 239 int crypto4xx_setkey_aes_gcm(struct crypto_aead *cipher,
|