Home
last modified time | relevance | path

Searched full:aad (Results 1 – 25 of 61) sorted by relevance

123

/linux/net/mac80211/
H A Daes_gcm.h14 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_encrypt() argument
17 return aead_encrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_encrypt()
18 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_encrypt()
23 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_decrypt() argument
26 return aead_decrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_decrypt()
27 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_decrypt()
H A Daes_ccm.h22 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_encrypt() argument
25 return aead_encrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_encrypt()
26 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_encrypt()
32 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_decrypt() argument
35 return aead_decrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_decrypt()
36 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_decrypt()
H A Daes_cmac.c25 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
35 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac()
36 fc = (const __le16 *)aad; in ieee80211_aes_cmac()
49 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
58 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256()
59 fc = (const __le16 *)aad; in ieee80211_aes_cmac_256()
H A Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument
33 memcpy(__aad, aad, 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() argument
68 memcpy(__aad, aad, aad_len); in aead_decrypt()
H A Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
36 memcpy(__aad, aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
38 fc = (const __le16 *)aad; in ieee80211_aes_gmac()
H A Daead_api.h13 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,
H A Daes_cmac.h14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
H A Daes_gmac.h17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Dti,gpmc-child.yaml54 gpmc,adv-aad-mux-on-ns:
55 description: Assertion time for AAD
58 gpmc,adv-aad-mux-rd-off-ns:
59 description: Read deassertion time for AAD
62 gpmc,adv-aad-mux-wr-off-ns:
63 description: Write deassertion time for AAD
84 gpmc,oe-aad-mux-on-ns:
85 description: Assertion time for AAD
88 gpmc,oe-aad-mux-off-ns:
89 description: Deassertion time for AAD
/linux/sound/soc/codecs/
H A Dda7219-aad.c3 * da7219-aad.c - Dialog DA7219 ALSA SoC AAD Driver
24 #include "da7219-aad.h"
35 da7219->aad->jack = jack; in da7219_aad_jack_det()
36 da7219->aad->jack_inserted = false; in da7219_aad_jack_det()
766 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_pdata()
899 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_handle_gnd_switch_time()
930 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_suspend()
964 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_resume()
993 struct da7219_aad_priv *da7219_aad = da7219->aad; in da7219_aad_init()
1008 da7219_aad->aad_wq = create_singlethread_workqueue("da7219-aad"); in da7219_aad_init()
[all …]
H A Dda7219-aad.h3 * da7219-aad.h - DA7322 ASoC AAD Driver
17 #include <sound/da7219-aad.h>
208 /* AAD control */
/linux/net/tls/
H A Dtls_device_fallback.c41 struct crypto_aead *aead, char *aad, in chain_to_walk()
71 tls_make_aad(aad, len - cipher_desc->tag, (char *)&rcd_sn, buf[0], prot); in tls_enc_record()
77 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
78 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
133 struct scatterlist *sg_out, char *aad, char *iv,
143 rc = tls_enc_record(aead_req, aead, aad, iv, in tls_alloc_aead_request()
308 void *buf, *iv, *aad, *dummy_buf, *salt; in fill_sg_out()
329 aad = buf + cipher_desc->salt + cipher_desc->iv; in tls_enc_skb()
330 dummy_buf = aad + TLS_AAD_SPACE_SIZE; in tls_enc_skb()
341 if (tls_enc_records(aead_req, ctx->aead_send, sg_in, sg_out, aad, i in tls_enc_skb()
52 tls_enc_record(struct aead_request * aead_req,struct crypto_aead * aead,char * aad,char * iv,__be64 rcd_sn,struct scatter_walk * in,struct scatter_walk * out,int * in_len,struct tls_prot_info * prot) tls_enc_record() argument
149 tls_enc_records(struct aead_request * aead_req,struct crypto_aead * aead,struct scatterlist * sg_in,struct scatterlist * sg_out,char * aad,char * iv,u64 rcd_sn,int len,struct tls_prot_info * prot) tls_enc_records() argument
327 void *buf, *iv, *aad, *dummy_buf, *salt; tls_enc_skb() local
[all...]
/linux/include/linux/platform_data/
H A Dgpmc-omap.h43 u32 adv_aad_mux_on; /* ADV assertion time for AAD */
44 u32 adv_aad_mux_rd_off; /* ADV read deassertion time for AAD */
45 u32 adv_aad_mux_wr_off; /* ADV write deassertion time for AAD */
54 u32 oe_aad_mux_on; /* OE assertion time for AAD */
55 u32 oe_aad_mux_off; /* OE deassertion time for AAD */
/linux/drivers/clk/imx/
H A Dclk-imx35.c88 struct arm_ahb_div *aad; in _mx35_clocks_init() local
96 aad = &clk_consumer[consumer_sel]; in _mx35_clocks_init()
97 if (!aad->arm) { in _mx35_clocks_init()
103 aad = &clk_consumer[0]; in _mx35_clocks_init()
113 if (aad->sel) in _mx35_clocks_init()
114 clk[arm] = imx_clk_fixed_factor("arm", "mpll_075", 1, aad->arm); in _mx35_clocks_init()
116 clk[arm] = imx_clk_fixed_factor("arm", "mpll", 1, aad->arm); in _mx35_clocks_init()
131 clk[ahb] = imx_clk_fixed_factor("ahb", "arm", 1, aad->ahb); in _mx35_clocks_init()
/linux/drivers/crypto/bcm/
H A Dcipher.h169 /* SPU request msg padding for GCM AAD */
204 * context. For SPU-M, the payload is the combination of AAD and data.
282 * API src scatterlist for AEAD starts with AAD, if present. For first
283 * chunk, src_sg is sg entry at beginning of input data (after AAD).
291 * Same for destination. For AEAD, if there is AAD, output data must
292 * be written at offset following AAD.
/linux/include/sound/
H A Dda7219-aad.h3 * da7219-aad.h - DA7322 ASoC Codec AAD Driver Platform Data
H A Dda7219.h47 /* AAD */
/linux/Documentation/crypto/
H A Duserspace-if.rst235 - specification of the associated authentication data (AAD) with the
236 flag ALG_SET_AEAD_ASSOCLEN. The AAD is sent to the kernel together
265 - associated authentication data (AAD)
269 The sizes of the AAD and the authentication tag are provided with the
277 - AEAD encryption input: AAD \|\| plaintext
279 - AEAD decryption input: AAD \|\| ciphertext \|\| authentication tag
/linux/arch/s390/include/asm/
H A Dcpacf.h181 #define CPACF_KMA_LAAD 0x200 /* Last-AAD */
710 * @aad: address of additional authenticated data memory area
711 * @aad_len: length of aad operand in bytes
715 const u8 *aad, unsigned long aad_len) in cpacf_kma() argument
722 a.even = (unsigned long)aad; in cpacf_kma()
727 "0: .insn rrf,%[opc] << 16,%[dst],%[src],%[aad],0\n" in cpacf_kma()
730 [aad] "+&d" (a.pair) in cpacf_kma()
/linux/security/apparmor/include/
H A Daudit.h171 #define aad(SA) (container_of(SA, struct apparmor_audit_data, common)) macro
172 #define aad_of_va(VA) aad((struct common_audit_data *)(VA))
/linux/arch/x86/crypto/
H A Daes-gcm-aesni-x86_64.S564 // u8 ghash_acc[16], const u8 *aad, int aadlen);
566 // This function processes the AAD (Additional Authenticated Data) in GCM.
568 // data given by |aad| and |aadlen|. On the first call, |ghash_acc| must be all
576 .set AAD, %rdx define
594 // Process the AAD one full block at a time.
598 movdqu (AAD), %xmm0
602 add $16, AAD
612 _load_partial_block AAD, %xmm0, %r10, %r10d
H A Daesni-intel_glue.c958 u8 ghash_acc[16], const u8 *aad, int aadlen);
961 u8 ghash_acc[16], const u8 *aad, int aadlen);
964 u8 ghash_acc[16], const u8 *aad, int aadlen);
967 const u8 *aad, int aadlen, int flags) in aes_gcm_aad_update() argument
971 aad, aadlen); in aes_gcm_aad_update()
974 aad, aadlen); in aes_gcm_aad_update()
977 aad, aadlen); in aes_gcm_aad_update()
/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-galois.c98 * AAD in ccp_aes_gcm_crypt()
115 /* The AAD + plaintext are concatenated in the src buffer */ in ccp_aes_gcm_crypt()
/linux/drivers/crypto/caam/
H A Dcaamalg_desc.c857 * Input sequence: AAD | PTXT
858 * Output sequence: AAD | CTXT | ICV
859 * AAD length (assoclen), which includes the IV length, is available in Math3.
908 /* Skip AAD */ in cnstr_shdsc_rfc4106_encap()
914 /* If cryptlen is ZERO jump to AAD command */ in cnstr_shdsc_rfc4106_encap()
918 /* Read AAD data */ in cnstr_shdsc_rfc4106_encap()
936 /* Jump instructions to avoid double reading of AAD */ in cnstr_shdsc_rfc4106_encap()
942 /* Read AAD */ in cnstr_shdsc_rfc4106_encap()
/linux/drivers/crypto/
H A Dsa2ul.h237 * @aad: Associated data
254 struct sa_cmdl_param_info aad; member

123