| /linux/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 163 struct crypto_aead base; argument 177 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() 179 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast() 196 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask); [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/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 | des.h | 111 static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des_key() 119 static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des3_key()
|
| /linux/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 | 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.h | 14 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], 16 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, 18 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm);
|
| H A D | aes_gmac.c | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() 71 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup() 74 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() 91 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
|
| H A D | key.h | 91 struct crypto_aead *tfm; 102 struct crypto_aead *tfm; 113 struct crypto_aead *tfm;
|
| /linux/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() 189 .tfmsize = offsetof(struct crypto_aead, base), 202 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() 210 struct crypto_aead *tfm; in crypto_alloc_sync_aead()
|
| 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 | authenc.c | 82 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() 112 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_finish() 147 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() 189 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() 231 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail() 280 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() 304 static int crypto_authenc_init_tfm(struct crypto_aead *tfm) in crypto_authenc_init_tfm() 342 static void crypto_authenc_exit_tfm(struct crypto_aead *tfm) in crypto_authenc_exit_tfm()
|
| H A D | essiv.c | 53 struct crypto_aead *aead; 93 static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, in essiv_aead_setkey() 126 static int essiv_aead_setauthsize(struct crypto_aead *tfm, in essiv_aead_setauthsize() 185 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in essiv_aead_crypt() 320 static int essiv_aead_init_tfm(struct crypto_aead *tfm) in essiv_aead_init_tfm() 325 struct crypto_aead *aead; in essiv_aead_init_tfm() 362 static void essiv_aead_exit_tfm(struct crypto_aead *tfm) in essiv_aead_exit_tfm()
|
| H A D | seqiv.c | 24 struct crypto_aead *geniv; in seqiv_aead_encrypt_complete2() 49 struct crypto_aead *geniv = crypto_aead_reqtfm(req); in seqiv_aead_encrypt() 101 struct crypto_aead *geniv = crypto_aead_reqtfm(req); in seqiv_aead_decrypt()
|
| /linux/net/rxrpc/ |
| H A D | rxgk_common.h | 29 struct crypto_aead *tx_enc; /* Transmission key */ 30 struct crypto_aead *rx_enc; /* Reception key */ 33 struct crypto_aead *resp_enc; /* Response packet enc key */ 58 struct crypto_aead **token_key, 70 struct crypto_aead *aead, in rxgk_decrypt_skb()
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_aead.c | 33 static int nitrox_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key, in nitrox_aes_gcm_setkey() 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() 359 static int nitrox_rfc4106_setkey(struct crypto_aead *aead, const u8 *key, in nitrox_rfc4106_setkey() [all …]
|
| /linux/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() 59 static int gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_setauthsize() 73 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_calculate_auth_mac() 137 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_crypt() 177 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_encrypt() 196 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_decrypt()
|
| H A D | sm4-ce-ccm-glue.c | 30 static int ccm_setkey(struct crypto_aead *tfm, const u8 *key, in ccm_setkey() 45 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize() 55 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_format_input() 92 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac() 193 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt() 220 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt()
|
| H A D | ghash-ce-glue.c | 201 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey, in gcm_aes_setkey() 233 static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in gcm_aes_setauthsize() 271 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_calculate_auth_mac() 297 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_encrypt() 359 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_decrypt() 439 static int rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey, in rfc4106_setkey() 454 static int rfc4106_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in rfc4106_setauthsize() 461 struct crypto_aead *aead = crypto_aead_reqtfm(req); in rfc4106_encrypt() 474 struct crypto_aead *aead = crypto_aead_reqtfm(req); in rfc4106_decrypt()
|
| H A D | aes-ce-ccm-glue.c | 48 static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, in ccm_setkey() 56 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize() 65 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_init_mac() 135 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac() 169 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt() 233 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt()
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 103 struct crypto_aead *tfm; in validate_hmac_cipher_null() 506 static int cpt_aead_init(struct crypto_aead *tfm, u8 cipher_type, u8 mac_type) in cpt_aead_init() 572 static int otx_cpt_aead_cbc_aes_sha1_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha1_init() 577 static int otx_cpt_aead_cbc_aes_sha256_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha256_init() 582 static int otx_cpt_aead_cbc_aes_sha384_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha384_init() 587 static int otx_cpt_aead_cbc_aes_sha512_init(struct crypto_aead *tfm) in otx_cpt_aead_cbc_aes_sha512_init() 592 static int otx_cpt_aead_ecb_null_sha1_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha1_init() 597 static int otx_cpt_aead_ecb_null_sha256_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha256_init() 602 static int otx_cpt_aead_ecb_null_sha384_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha384_init() 607 static int otx_cpt_aead_ecb_null_sha512_init(struct crypto_aead *tfm) in otx_cpt_aead_ecb_null_sha512_init() [all …]
|
| /linux/drivers/crypto/qce/ |
| H A D | aead.h | 23 struct crypto_aead *fallback; 47 static inline struct qce_alg_template *to_aead_tmpl(struct crypto_aead *tfm) in to_aead_tmpl()
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-crypto-aes-galois.c | 29 static int ccp_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in ccp_aes_gcm_setkey() 57 static int ccp_aes_gcm_setauthsize(struct crypto_aead *tfm, in ccp_aes_gcm_setauthsize() 78 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in ccp_aes_gcm_crypt() 149 static int ccp_aes_gcm_cra_init(struct crypto_aead *tfm) in ccp_aes_gcm_cra_init()
|