Home
last modified time | relevance | path

Searched refs:crypto_aead (Results 1 – 36 of 36) sorted by relevance

/linux-4.1.27/net/mac80211/
Daes_gcm.h14 void ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad,
16 int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad,
18 struct crypto_aead *ieee80211_aes_gcm_key_setup_encrypt(const u8 key[],
20 void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm);
Daes_ccm.h15 struct crypto_aead *ieee80211_aes_key_setup_encrypt(const u8 key[],
18 void ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
21 int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
24 void ieee80211_aes_key_free(struct crypto_aead *tfm);
Daes_gcm.c19 void ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_encrypt()
44 int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, u8 *j_0, u8 *aad, in ieee80211_aes_gcm_decrypt()
72 struct crypto_aead *ieee80211_aes_gcm_key_setup_encrypt(const u8 key[], in ieee80211_aes_gcm_key_setup_encrypt()
75 struct crypto_aead *tfm; in ieee80211_aes_gcm_key_setup_encrypt()
96 void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free()
Daes_ccm.c22 void ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_encrypt()
48 int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, in ieee80211_aes_ccm_decrypt()
76 struct crypto_aead *ieee80211_aes_key_setup_encrypt(const u8 key[], in ieee80211_aes_key_setup_encrypt()
80 struct crypto_aead *tfm; in ieee80211_aes_key_setup_encrypt()
101 void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
Daes_gmac.h14 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);
Daes_gmac.c24 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
61 struct crypto_aead *ieee80211_aes_gmac_key_setup(const u8 key[], in ieee80211_aes_gmac_key_setup()
64 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup()
81 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
Dkey.h89 struct crypto_aead *tfm;
102 struct crypto_aead *tfm;
114 struct crypto_aead *tfm;
/linux-4.1.27/include/linux/
Dcrypto.h138 struct crypto_aead;
323 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
325 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
606 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
613 struct crypto_aead *base;
697 struct crypto_aead { struct
1226 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast()
1228 return (struct crypto_aead *)tfm; in __crypto_aead_cast()
1245 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask);
1247 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm()
[all …]
/linux-4.1.27/net/ipv6/
Desp6.c65 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqihlen) in esp_alloc_tmp()
92 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv()
100 struct crypto_aead *aead, u8 *iv) in esp_tmp_givreq()
110 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
120 static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead, in esp_req_sg()
129 struct crypto_aead *aead, struct aead_givcrypt_request *req) in esp_givreq_sg()
148 struct crypto_aead *aead; in esp6_output()
271 struct crypto_aead *aead = x->data; in esp_input_done2()
324 struct crypto_aead *aead = x->data; in esp6_input()
413 struct crypto_aead *aead = x->data; in esp6_get_mtu()
[all …]
/linux-4.1.27/include/crypto/
Dcryptd.h53 struct crypto_aead base;
57 struct crypto_aead *tfm) in __cryptd_aead_cast()
65 struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm);
Daead.h33 static inline struct crypto_aead *aead_givcrypt_reqtfm( in aead_givcrypt_reqtfm()
52 struct crypto_aead *tfm) in aead_givcrypt_set_tfm()
58 struct crypto_aead *tfm, gfp_t gfp) in aead_givcrypt_alloc()
Dalgapi.h200 struct crypto_aead *tfm,
242 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg()
247 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx()
253 struct crypto_aead *aead) in crypto_aead_alg_instance()
/linux-4.1.27/include/crypto/internal/
Daead.h50 static inline struct crypto_aead *crypto_spawn_aead( in crypto_spawn_aead()
65 static inline struct crypto_aead *aead_geniv_base(struct crypto_aead *geniv) in aead_geniv_base()
/linux-4.1.27/net/ipv4/
Desp4.c38 static void *esp_alloc_tmp(struct crypto_aead *aead, int nfrags, int seqhilen) in esp_alloc_tmp()
64 static inline u8 *esp_tmp_iv(struct crypto_aead *aead, void *tmp, int seqhilen) in esp_tmp_iv()
72 struct crypto_aead *aead, u8 *iv) in esp_tmp_givreq()
82 static inline struct aead_request *esp_tmp_req(struct crypto_aead *aead, u8 *iv) in esp_tmp_req()
92 static inline struct scatterlist *esp_req_sg(struct crypto_aead *aead, in esp_req_sg()
101 struct crypto_aead *aead, struct aead_givcrypt_request *req) in esp_givreq_sg()
120 struct crypto_aead *aead; in esp_output()
280 struct crypto_aead *aead = x->data; in esp_input_done2()
375 struct crypto_aead *aead = x->data; in esp_input()
459 struct crypto_aead *aead = x->data; in esp4_get_mtu()
[all …]
/linux-4.1.27/crypto/
Dccm.c35 struct crypto_aead *child;
76 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey()
104 static int crypto_ccm_setauthsize(struct crypto_aead *tfm, in crypto_ccm_setauthsize()
126 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input()
248 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth()
284 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done()
305 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt()
361 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done()
375 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt()
638 static int crypto_rfc4309_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4309_setkey()
[all …]
Dauthenc.c85 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey()
126 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_update_done()
155 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done()
178 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_verify_ahash_update_done()
227 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_verify_ahash_done()
261 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_ahash_fb()
300 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_ahash()
327 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv()
381 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in crypto_authenc_encrypt_done()
396 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt()
[all …]
Dauthencesn.c59 static int crypto_authenc_esn_setkey(struct crypto_aead *authenc_esn, const u8 *key, in crypto_authenc_esn_setkey()
100 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in authenc_esn_geniv_ahash_update_done()
140 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in authenc_esn_geniv_ahash_update_done2()
171 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in authenc_esn_geniv_ahash_done()
195 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in authenc_esn_verify_ahash_update_done()
256 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in authenc_esn_verify_ahash_update_done2()
306 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in authenc_esn_verify_ahash_done()
341 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_ahash()
389 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(req); in crypto_authenc_esn_genicv()
458 struct crypto_aead *authenc_esn = crypto_aead_reqtfm(areq); in crypto_authenc_esn_encrypt_done()
[all …]
Dgcm.c36 struct crypto_aead *child;
46 struct crypto_aead *child;
104 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_gcm_setkey()
170 static int crypto_gcm_setauthsize(struct crypto_aead *tfm, in crypto_gcm_setauthsize()
193 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt()
510 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash()
577 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify()
621 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt()
858 static int crypto_rfc4106_setkey(struct crypto_aead *parent, const u8 *key, in crypto_rfc4106_setkey()
862 struct crypto_aead *child = ctx->child; in crypto_rfc4106_setkey()
[all …]
Dpcrypt.c68 struct crypto_aead *child;
101 static int pcrypt_aead_setkey(struct crypto_aead *parent, in pcrypt_aead_setkey()
109 static int pcrypt_aead_setauthsize(struct crypto_aead *parent, in pcrypt_aead_setauthsize()
164 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_encrypt()
206 struct crypto_aead *aead = crypto_aead_reqtfm(req); in pcrypt_aead_decrypt()
249 struct crypto_aead *aead = aead_givcrypt_reqtfm(req); in pcrypt_aead_givencrypt()
279 struct crypto_aead *cipher; in pcrypt_aead_init_tfm()
Dseqiv.c61 struct crypto_aead *geniv; in seqiv_aead_complete2()
145 struct crypto_aead *geniv = aead_givcrypt_reqtfm(req); in seqiv_aead_givencrypt()
214 struct crypto_aead *geniv = aead_givcrypt_reqtfm(req); in seqiv_aead_givencrypt_first()
249 struct crypto_aead *geniv = __crypto_aead_cast(tfm); in seqiv_aead_init()
Daead.c29 static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key, in setkey_unaligned()
51 static int setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) in setkey()
62 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in crypto_aead_setauthsize()
377 struct crypto_aead *aead; in aead_geniv_init()
526 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead()
Dcryptd.c78 struct crypto_aead *child;
658 struct crypto_aead *child, in cryptd_aead_crypt()
679 struct crypto_aead *child = ctx->child; in cryptd_aead_encrypt()
689 struct crypto_aead *child = ctx->child; in cryptd_aead_decrypt()
700 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in cryptd_aead_enqueue()
724 struct crypto_aead *cipher; in cryptd_aead_init_tfm()
935 struct crypto_aead *tfm; in cryptd_alloc_aead()
951 struct crypto_aead *cryptd_aead_child(struct cryptd_aead *tfm) in cryptd_aead_child()
Dblkcipher.c362 struct crypto_aead *tfm, in blkcipher_aead_walk_virt_block()
Dtcrypt.c274 struct crypto_aead *tfm; in test_aead_speed()
326 get_driver_name(crypto_aead, tfm), e); in test_aead_speed()
Dtestmgr.c417 static int __test_aead(struct crypto_aead *tfm, int enc, in __test_aead()
798 static int test_aead(struct crypto_aead *tfm, int enc, in test_aead()
1505 struct crypto_aead *tfm; in alg_test_aead()
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-ccm-glue.c47 static int ccm_setkey(struct crypto_aead *tfm, const u8 *in_key, in ccm_setkey()
61 static int ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in ccm_setauthsize()
70 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_init_mac()
108 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_calculate_auth_mac()
150 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_encrypt()
205 struct crypto_aead *aead = crypto_aead_reqtfm(req); in ccm_decrypt()
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c284 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm) in aesni_rfc4106_gcm_ctx_get()
798 struct crypto_aead *cryptd_child; in rfc4106_init()
895 static int common_rfc4106_set_key(struct crypto_aead *aead, const u8 *key, in common_rfc4106_set_key()
950 static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key, in rfc4106_set_key()
954 struct crypto_aead *child = cryptd_aead_child(ctx->cryptd_tfm); in rfc4106_set_key()
967 static int common_rfc4106_set_authsize(struct crypto_aead *aead, in common_rfc4106_set_authsize()
984 static int rfc4106_set_authsize(struct crypto_aead *parent, in rfc4106_set_authsize()
988 struct crypto_aead *child = cryptd_aead_child(ctx->cryptd_tfm); in rfc4106_set_authsize()
1002 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in __driver_rfc4106_encrypt()
1088 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in __driver_rfc4106_decrypt()
[all …]
/linux-4.1.27/drivers/crypto/nx/
Dnx-aes-gcm.c35 static int gcm_aes_nx_set_key(struct crypto_aead *tfm, in gcm_aes_nx_set_key()
74 static int gcm4106_aes_nx_set_key(struct crypto_aead *tfm, in gcm4106_aes_nx_set_key()
96 static int gcm_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm_aes_nx_setauthsize()
107 static int gcm4106_aes_nx_setauthsize(struct crypto_aead *tfm, in gcm4106_aes_nx_setauthsize()
Dnx-aes-ccm.c35 static int ccm_aes_nx_set_key(struct crypto_aead *tfm, in ccm_aes_nx_set_key()
65 static int ccm4309_aes_nx_set_key(struct crypto_aead *tfm, in ccm4309_aes_nx_set_key()
81 static int ccm_aes_nx_setauthsize(struct crypto_aead *tfm, in ccm_aes_nx_setauthsize()
102 static int ccm4309_aes_nx_setauthsize(struct crypto_aead *tfm, in ccm4309_aes_nx_setauthsize()
/linux-4.1.27/net/mac802154/
Dllsec.h32 struct crypto_aead *tfm[3];
Dllsec.c632 static struct crypto_aead*
/linux-4.1.27/drivers/crypto/caam/
Dcaamalg.c259 static int aead_null_set_sh_desc(struct crypto_aead *aead) in aead_null_set_sh_desc()
450 static int aead_set_sh_desc(struct crypto_aead *aead) in aead_set_sh_desc()
728 static int aead_setauthsize(struct crypto_aead *authenc, in aead_setauthsize()
739 static int gcm_set_sh_desc(struct crypto_aead *aead) in gcm_set_sh_desc()
959 static int gcm_setauthsize(struct crypto_aead *authenc, unsigned int authsize) in gcm_setauthsize()
969 static int rfc4106_set_sh_desc(struct crypto_aead *aead) in rfc4106_set_sh_desc()
1239 static int rfc4106_setauthsize(struct crypto_aead *authenc, in rfc4106_setauthsize()
1250 static int rfc4543_set_sh_desc(struct crypto_aead *aead) in rfc4543_set_sh_desc()
1634 static int rfc4543_setauthsize(struct crypto_aead *authenc, in rfc4543_setauthsize()
1653 static int aead_setkey(struct crypto_aead *aead, in aead_setkey()
[all …]
/linux-4.1.27/drivers/crypto/
Dpicoxcell_crypto.c175 struct crypto_aead *sw_cipher;
445 static int spacc_aead_des_setkey(struct crypto_aead *aead, const u8 *key, in spacc_aead_des_setkey()
465 static int spacc_aead_aes_setkey(struct crypto_aead *aead, const u8 *key, in spacc_aead_aes_setkey()
493 static int spacc_aead_setkey(struct crypto_aead *tfm, const u8 *key, in spacc_aead_setkey()
529 static int spacc_aead_setauthsize(struct crypto_aead *tfm, in spacc_aead_setauthsize()
730 struct crypto_aead *aead = crypto_aead_reqtfm(req); in spacc_aead_encrypt()
739 struct crypto_aead *tfm = aead_givcrypt_reqtfm(req); in spacc_aead_givencrypt()
760 struct crypto_aead *aead = crypto_aead_reqtfm(req); in spacc_aead_decrypt()
Dixp4xx_crypto.c340 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in finish_scattered_hmac()
992 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in aead_perform()
1094 static int aead_setup(struct crypto_aead *tfm, unsigned int authsize) in aead_setup()
1138 static int aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in aead_setauthsize()
1147 static int aead_setkey(struct crypto_aead *tfm, const u8 *key, in aead_setkey()
1189 struct crypto_aead *tfm = aead_givcrypt_reqtfm(req); in aead_givencrypt()
Dtalitos.c669 static int aead_setauthsize(struct crypto_aead *authenc, in aead_setauthsize()
679 static int aead_setkey(struct crypto_aead *authenc, in aead_setkey()
821 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in ipsec_esp_encrypt_done()
851 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in ipsec_esp_decrypt_swauth_done()
945 struct crypto_aead *aead = crypto_aead_reqtfm(areq); in ipsec_esp()
1220 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in aead_edesc_alloc()
1232 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in aead_encrypt()
1249 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in aead_decrypt()
1301 struct crypto_aead *authenc = crypto_aead_reqtfm(areq); in aead_givencrypt()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dqat_algs.c285 struct crypto_aead *aead_tfm = __crypto_aead_cast(ctx->tfm); in qat_alg_aead_init_enc_session()
365 struct crypto_aead *aead_tfm = __crypto_aead_cast(ctx->tfm); in qat_alg_aead_init_dec_session()
564 static int qat_alg_aead_setkey(struct crypto_aead *tfm, const uint8_t *key, in qat_alg_aead_setkey()
839 struct crypto_aead *aead_tfm = crypto_aead_reqtfm(areq); in qat_alg_aead_dec()
884 struct crypto_aead *aead_tfm = crypto_aead_reqtfm(areq); in qat_alg_aead_enc_internal()
938 struct crypto_aead *aead_tfm = crypto_aead_reqtfm(&req->areq); in qat_alg_aead_genivenc()