Searched refs:mac (Results 101 - 125 of 900) sorted by relevance

1234567891011>>

/freebsd-current/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dcrypto_secretbox_xchacha20poly1305.h49 unsigned char *mac,
58 const unsigned char *mac,
H A Dcrypto_aead_aes256gcm.h89 unsigned char *mac,
104 const unsigned char *mac,
142 unsigned char *mac,
157 const unsigned char *mac,
H A Dcrypto_box_curve25519xchacha20poly1305.h74 unsigned char *mac,
85 const unsigned char *mac,
117 unsigned char *mac,
126 const unsigned char *mac,
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dzio_crypt.h127 uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out);
130 uint8_t *mac, zio_crypt_key_t *key);
137 void zio_crypt_encode_mac_bp(blkptr_t *bp, uint8_t *mac);
138 void zio_crypt_decode_mac_bp(const blkptr_t *bp, uint8_t *mac);
139 void zio_crypt_encode_mac_zil(void *data, uint8_t *mac);
140 void zio_crypt_decode_mac_zil(const void *data, uint8_t *mac);
153 uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf,
157 uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
/freebsd-current/sys/dev/igc/
H A Digc_base.c28 return hw->mac.ops.acquire_swfw_sync(hw, mask);
46 hw->mac.ops.release_swfw_sync(hw, mask);
57 struct igc_mac_info *mac = &hw->mac; local
59 u16 i, rar_count = mac->rar_entry_count;
68 for (i = 0; i < mac->mta_reg_count; i++)
73 for (i = 0; i < mac->uta_reg_count; i++)
77 ret_val = mac->ops.setup_link(hw);
H A Digc_mac.c20 struct igc_mac_info *mac = &hw->mac; local
24 mac->ops.init_params = igc_null_ops_generic;
25 mac->ops.config_collision_dist = igc_config_collision_dist_generic;
26 mac->ops.rar_set = igc_rar_set_generic;
179 hw->mac.ops.rar_set(hw, hw->mac.addr, 0);
184 hw->mac.ops.rar_set(hw, mac_addr, i);
249 hw->mac.ops.rar_set(hw, alt_mac_addr, 0);
309 hash_mask = (hw->mac
461 struct igc_mac_info *mac = &hw->mac; local
707 struct igc_mac_info *mac = &hw->mac; local
[all...]
/freebsd-current/sys/dev/mlx5/mlx5_core/
H A Deswitch.h41 /* L2 -mac address based- hash helpers */
51 #define l2addr_hash_find(hash, mac, type) ({ \
52 int ix = MLX5_L2_ADDR_HASH(mac); \
57 if (ether_addr_equal(ptr->node.addr, mac)) {\
66 #define l2addr_hash_add(hash, mac, type, gfp) ({ \
67 int ix = MLX5_L2_ADDR_HASH(mac); \
72 ether_addr_copy(ptr->node.addr, mac); \
143 __u8 mac[32]; member in struct:mlx5_esw_vport_info
159 int vport, u8 mac[ETH_ALEN]);
/freebsd-current/sys/dev/e1000/
H A De1000_base.c60 return hw->mac.ops.acquire_swfw_sync(hw, mask);
82 hw->mac.ops.release_swfw_sync(hw, mask);
93 struct e1000_mac_info *mac = &hw->mac; local
95 u16 i, rar_count = mac->rar_entry_count;
104 for (i = 0; i < mac->mta_reg_count; i++)
109 for (i = 0; i < mac->uta_reg_count; i++)
113 ret_val = mac->ops.setup_link(hw);
/freebsd-current/contrib/sendmail/src/
H A Dmacro.c361 ** mac -- Macro table.
367 ** clears entire mac structure including rpool pointer!
371 mactabclear(mac)
372 MACROS_T *mac;
376 if (mac->mac_rpool == NULL)
379 SM_FREE(mac->mac_table[i]);
381 memset((char *) mac, '\0', sizeof(*mac));
393 ** mac -- Macro table.
401 ** at least the lifetime of mac
[all...]
/freebsd-current/contrib/wpa/src/crypto/
H A Dcrypto_internal.c179 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) argument
187 if (mac == NULL || len == NULL) {
200 MD5Final(mac, &ctx->u.md5);
209 SHA1Final(mac, &ctx->u.sha1);
219 sha256_done(&ctx->u.sha256, mac);
230 sha384_done(&ctx->u.sha384, mac);
241 sha512_done(&ctx->u.sha512, mac);
252 MD5Final(mac, &ctx->u.md5);
261 MD5Update(&ctx->u.md5, mac, 16);
262 MD5Final(mac,
[all...]
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7915/
H A DMakefile5 mt7915e-y := pci.o init.o dma.o eeprom.o main.o mcu.o mac.o \
/freebsd-current/share/doc/psd/01.cacm/
H A DMakefile3 SRCS= stubs p.mac p1 p2 p3 p4 p5 p6
/freebsd-current/crypto/openssl/providers/implementations/signature/
H A Dmac_legacy_sig.c53 EVP_MAC *mac = NULL; local
68 mac = EVP_MAC_fetch(pmacctx->libctx, macname, propq);
69 if (mac == NULL)
72 pmacctx->macctx = EVP_MAC_CTX_new(mac);
76 EVP_MAC_free(mac);
83 EVP_MAC_free(mac);
153 int mac_digest_sign_final(void *vpmacctx, unsigned char *mac, size_t *maclen, argument
161 return EVP_MAC_final(pmacctx->macctx, mac, maclen, macsize);
221 EVP_MAC *mac = EVP_MAC_fetch(PROV_LIBCTX_OF(provctx), macname, local
225 if (mac
[all...]
/freebsd-current/crypto/openssl/crypto/poly1305/
H A Dpoly1305_ppc.c18 void poly1305_emit(void *ctx, unsigned char mac[16],
23 void poly1305_emit_fpu(void *ctx, unsigned char mac[16],
28 void poly1305_emit_vsx(void *ctx, unsigned char mac[16],
/freebsd-current/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_keycache.c100 * Sets the mac part of the specified key cache entry (and any
103 * Since mac[0] is shifted off and not presented to the hardware,
110 ar5212SetKeyCacheEntryMac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac) argument
124 if (mac != AH_NULL) {
132 if (mac[0] & 0x01)
135 macHi = (mac[5] << 8) | mac[4];
136 macLo = (mac[3] << 24)| (mac[2] << 16)
137 | (mac[
154 ar5212SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry, const HAL_KEYVAL *k, const uint8_t *mac, int xorKey) argument
[all...]
/freebsd-current/sys/net80211/
H A Dieee80211_acl.c173 acl_add(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) argument
183 "ACL: add %s failed, no memory\n", ether_sprintf(mac));
189 hash = ACL_HASH(mac);
191 if (IEEE80211_ADDR_EQ(acl->acl_macaddr, mac)) {
196 ether_sprintf(mac));
200 IEEE80211_ADDR_COPY(new->acl_macaddr, mac);
207 "ACL: add %s\n", ether_sprintf(mac));
212 acl_remove(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) argument
218 acl = _find_acl(as, mac);
224 "ACL: remove %s%s\n", ether_sprintf(mac),
329 static const struct ieee80211_aclator mac = { variable in typeref:struct:ieee80211_aclator
[all...]
/freebsd-current/sys/sys/
H A Dmac.h63 * struct mac is the data structure used to carry MAC labels in system calls
66 struct mac { struct
71 typedef struct mac *mac_t;
76 * Location of the userland MAC framework configuration file. mac.conf
79 #define MAC_CONFFILE "/etc/mac.conf"
106 int mac_to_text(mac_t mac, char **_text);
/freebsd-current/contrib/wpa/src/eap_common/
H A Deap_pax_common.c35 u8 mac[SHA1_MAC_LEN]; local
60 if (hmac_sha1_vector(key, key_len, 3, addr, len, mac) < 0)
62 os_memcpy(pos, mac, clen);
82 * @mac: Buffer for the MAC value (EAP_PAX_MAC_LEN = 16 bytes)
91 u8 *mac)
112 os_memcpy(mac, hash, EAP_PAX_MAC_LEN);
87 eap_pax_mac(u8 mac_id, const u8 *key, size_t key_len, const u8 *data1, size_t data1_len, const u8 *data2, size_t data2_len, const u8 *data3, size_t data3_len, u8 *mac) argument
/freebsd-current/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_block.c22 unsigned char **mac,
30 unsigned char **mac,
148 * mac: Location to store the pointer to the MAC
150 * *mac points into *buf
156 * the mac is random
161 unsigned char **mac, int *alloced, size_t macsize,
168 return ssl3_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac,
182 ret = tls1_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac,
158 ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion, unsigned char *buf, size_t *buflen, size_t blocksize, unsigned char **mac, int *alloced, size_t macsize, int aead) argument
/freebsd-current/crypto/openssl/demos/mac/
H A Dcmac-aes256.c70 EVP_MAC *mac = NULL; local
84 mac = EVP_MAC_fetch(library_context, "CMAC", propq);
85 if (mac == NULL) {
91 mctx = EVP_MAC_CTX_new(mac);
151 EVP_MAC_free(mac);
H A Dgmac.c61 EVP_MAC *mac = NULL; local
75 mac = EVP_MAC_fetch(library_context, "GMAC", propq);
76 if (mac == NULL) {
82 mctx = EVP_MAC_CTX_new(mac);
140 EVP_MAC_free(mac);
H A Dsiphash.c48 EVP_MAC *mac = NULL; local
63 mac = EVP_MAC_fetch(library_context, "SIPHASH", propq);
64 if (mac == NULL) {
70 mctx = EVP_MAC_CTX_new(mac);
124 EVP_MAC_free(mac);
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_secretstream/xchacha20poly1305/
H A Dsecretstream_xchacha20poly1305.c121 unsigned char *mac; local
155 mac = c + mlen;
156 crypto_onetimeauth_poly1305_final(&poly1305_state, mac);
161 XOR_BUF(STATE_INONCE(state), mac, local
186 unsigned char mac[crypto_onetimeauth_poly1305_BYTES]; local
231 crypto_onetimeauth_poly1305_final(&poly1305_state, mac);
235 if (sodium_memcmp(mac, stored_mac, sizeof mac) != 0) {
236 sodium_memzero(mac, sizeof mac);
241 XOR_BUF(STATE_INONCE(state), mac, local
[all...]
/freebsd-current/tools/tools/net80211/w00t/ap/
H A Dap.c39 char mac[6]; member in struct:client
52 char mac[6]; member in struct:params
82 "-m\t<mac>\n"
97 memcpy(wh->i_addr2, p->mac, 6);
163 memcpy(wh->i_addr3, p->mac, 6);
185 void send_pres(struct params *p, char *mac) argument
195 memcpy(wh->i_addr1, mac, 6);
196 memcpy(wh->i_addr3, p->mac, 6);
233 void send_auth(struct params* p, char *mac) argument
244 memcpy(wh->i_addr1, mac,
263 char mac[6*3]; local
283 send_assoc(struct params *p, char *mac) argument
380 send_cts(struct params *p, char *mac) argument
564 client_find(struct params *p, char *mac) argument
582 char mac[6*3]; local
[all...]
/freebsd-current/sys/dev/ixgbe/
H A Dixgbe_common.c72 struct ixgbe_mac_info *mac = &hw->mac; local
96 mac->ops.init_hw = ixgbe_init_hw_generic;
97 mac->ops.reset_hw = NULL;
98 mac->ops.start_hw = ixgbe_start_hw_generic;
99 mac->ops.clear_hw_cntrs = ixgbe_clear_hw_cntrs_generic;
100 mac->ops.get_media_type = NULL;
101 mac->ops.get_supported_physical_layer = NULL;
102 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_generic;
103 mac
1006 struct ixgbe_mac_info *mac = &hw->mac; local
1164 struct ixgbe_mac_info *mac = &hw->mac; local
[all...]

Completed in 369 milliseconds

1234567891011>>