/net/sunrpc/auth_gss/ |
D | svcauth_gss.c | 715 struct xdr_netobj mic; in gss_write_verf() local 726 mic.data = (u8 *)(p + 1); in gss_write_verf() 727 maj_stat = gss_get_mic(ctx_id, &verf_data, &mic); in gss_write_verf() 730 *p++ = htonl(mic.len); in gss_write_verf() 731 memset((u8 *)p + mic.len, 0, round_up_to_quad(mic.len) - mic.len); in gss_write_verf() 732 p += XDR_QUADLEN(mic.len); in gss_write_verf() 822 struct xdr_netobj mic; in unwrap_integ_data() local 833 if (read_u32_from_xdr_buf(buf, integ_len, &mic.len)) in unwrap_integ_data() 835 if (mic.len > RPC_MAX_AUTH_SIZE) in unwrap_integ_data() 837 mic.data = kmalloc(mic.len, GFP_KERNEL); in unwrap_integ_data() [all …]
|
D | auth_gss.c | 1031 struct xdr_netobj mic; in gss_marshal() local 1061 mic.data = (u8 *)(p + 1); in gss_marshal() 1062 maj_stat = gss_get_mic(ctx->gc_gss_ctx, &verf_buf, &mic); in gss_marshal() 1069 p = xdr_encode_opaque(p, NULL, mic.len); in gss_marshal() 1136 struct xdr_netobj mic; in gss_validate() local 1151 mic.data = (u8 *)p; in gss_validate() 1152 mic.len = len; in gss_validate() 1154 maj_stat = gss_verify_mic(ctx->gc_gss_ctx, &verf_buf, &mic); in gss_validate() 1182 struct xdr_netobj mic; in gss_wrap_req_integ() local 1208 mic.data = (u8 *)(p + 1); in gss_wrap_req_integ() [all …]
|
/net/mac80211/ |
D | aes_ccm.c | 54 u8 *cdata, u8 *mic) in ieee80211_aes_ccm_encrypt() argument 89 mic[i] = b[i] ^ s_0[i]; in ieee80211_aes_ccm_encrypt() 94 u8 *cdata, size_t data_len, u8 *mic, u8 *data) in ieee80211_aes_ccm_decrypt() argument 128 if ((mic[i] ^ s_0[i]) != a[i]) in ieee80211_aes_ccm_decrypt()
|
D | michael.c | 57 const u8 *data, size_t data_len, u8 *mic) in michael_mic() argument 84 put_unaligned_le32(mctx.l, mic); in michael_mic() 85 put_unaligned_le32(mctx.r, mic + 4); in michael_mic()
|
D | aes_ccm.h | 20 u8 *cdata, u8 *mic); 23 u8 *mic, u8 *data);
|
D | wpa.c | 27 u8 *data, *key, *mic, key_offset; in ieee80211_tx_h_michael_mic_add() local 73 mic = skb_put(skb, MICHAEL_MIC_LEN); in ieee80211_tx_h_michael_mic_add() 74 michael_mic(key, hdr, data, data_len, mic); in ieee80211_tx_h_michael_mic_add() 87 u8 mic[MICHAEL_MIC_LEN]; in ieee80211_rx_h_michael_mic_verify() local 117 michael_mic(key, hdr, data, data_len, mic); in ieee80211_rx_h_michael_mic_verify() 118 if (memcmp(mic, data + data_len, MICHAEL_MIC_LEN) != 0 || wpa_test) { in ieee80211_rx_h_michael_mic_verify()
|
D | michael.h | 22 const u8 *data, size_t data_len, u8 *mic);
|
/net/wireless/ |
D | lib80211_crypt_ccmp.c | 224 u8 *pos, *mic; in lib80211_ccmp_encrypt() local 240 mic = skb_put(skb, CCMP_MIC_LEN); in lib80211_ccmp_encrypt() 261 mic[i] = b[i] ^ s0[i]; in lib80211_ccmp_encrypt() 298 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in lib80211_ccmp_decrypt() local 356 xor_block(mic, b, CCMP_MIC_LEN); in lib80211_ccmp_decrypt() 374 if (memcmp(mic, a, CCMP_MIC_LEN) != 0) { in lib80211_ccmp_decrypt()
|
D | lib80211_crypt_tkip.c | 534 u8 * data, size_t data_len, u8 * mic) in michael_mic() argument 552 return crypto_hash_digest(&desc, sg, data_len + 16, mic); in michael_mic() 637 u8 mic[8]; in lib80211_michael_mic_verify() local 644 skb->data + hdr_len, skb->len - 8 - hdr_len, mic)) in lib80211_michael_mic_verify() 646 if (memcmp(mic, skb->data + skb->len - 8, 8) != 0) { in lib80211_michael_mic_verify()
|