HomeSort by: relevance | last modified time | path
    Searched defs:mac (Results 1 - 25 of 75) sorted by relevancy

1 2 3

  /src/sys/arch/arm/arm/
bootconfig.c 127 char mac[18]; local in function:get_bootconf_option
130 strlcpy(mac, ptr, sizeof(mac));
132 ETHER_ADDR_LEN, mac))
  /src/sys/external/isc/libsodium/dist/test/default/
secretbox_easy.c 34 unsigned char *mac; local in function:main
38 mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES);
39 assert(c != NULL && mac != NULL);
47 crypto_secretbox_detached(c, mac, m, 131, nonce, firstkey);
49 printf(",0x%02x", (unsigned int) mac[i]);
120 sodium_free(mac);
secretbox_easy2.c 13 unsigned char *mac; local in function:main
23 mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES);
42 crypto_secretbox_detached(c, mac, m, (unsigned long long) mlen, nonce, k);
43 if (crypto_secretbox_open_detached(NULL, c, mac, (unsigned long long) mlen,
47 if (crypto_secretbox_open_detached(m2, c, mac, (unsigned long long) mlen,
69 sodium_free(mac);
aead_chacha20poly1305.c 26 unsigned char *mac = (unsigned char *) sodium_malloc(crypto_aead_chacha20poly1305_ABYTES); local in function:tv
47 mac, &found_maclen,
70 c, MLEN, mac,
74 c, MLEN, mac,
164 sodium_free(mac);
207 unsigned char *mac = (unsigned char *) sodium_malloc(crypto_aead_chacha20poly1305_ietf_ABYTES); local in function:tv_ietf
230 mac, &found_maclen,
253 c, MLEN, mac,
257 c, MLEN, mac,
345 sodium_free(mac);
    [all...]
aead_xchacha20poly1305.c 33 unsigned char *mac = (unsigned char *) sodium_malloc(crypto_aead_xchacha20poly1305_ietf_ABYTES); local in function:tv
56 mac, &found_maclen,
79 c, MLEN, mac,
174 sodium_free(mac);
box_easy2.c 18 unsigned char *mac; local in function:main
41 mac = (unsigned char *) sodium_malloc(crypto_box_MACBYTES);
110 ret = crypto_box_detached(c, mac, m, (unsigned long long) mlen, nonce,
113 ret = crypto_box_detached(c, mac, m, (unsigned long long) mlen, nonce,
116 if (crypto_box_open_detached(m2, c, mac, (unsigned long long) mlen, nonce,
120 if (crypto_box_open_detached(m2, c, mac, (unsigned long long) mlen, nonce,
127 crypto_box_detached_afternm(c, mac, m, (unsigned long long) mlen, nonce,
129 if (crypto_box_open_detached_afternm(m2, c, mac, (unsigned long long) mlen,
139 sodium_free(mac);
aead_aes256gcm.c 3089 unsigned char *mac; local in function:tv
3103 mac = (unsigned char *) sodium_malloc(crypto_aead_aes256gcm_ABYTES);
3138 crypto_aead_aes256gcm_encrypt_detached(detached_ciphertext, mac,
3145 memcmp(mac, expected_ciphertext + message_len,
3206 mac, ad, ad_len, nonce, key) != 0) {
3222 sodium_free(mac);
xchacha20.c 307 unsigned char *mac; local in function:tv_box_xchacha20poly1305
318 mac = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_MACBYTES);
369 assert(crypto_box_curve25519xchacha20poly1305_detached(out, mac, m, m_len,
371 assert(crypto_box_curve25519xchacha20poly1305_detached(out, mac, m, m_len,
374 (m2, out, mac, m_len, nonce, small_order_p, sk) == -1);
376 (m2, out, mac, m_len, nonce, pk, sk) == 0);
381 (out, mac, m, m_len, nonce, pc) == 0);
383 (m2, out, mac, m_len, nonce, pc) == 0);
390 sodium_free(mac);
  /src/sys/dev/pci/igc/
igc_base.c 34 return hw->mac.ops.acquire_swfw_sync(hw, mask);
53 hw->mac.ops.release_swfw_sync(hw, mask);
65 struct igc_mac_info *mac = &hw->mac; local in function:igc_init_hw_base
66 uint16_t i, rar_count = mac->rar_entry_count;
76 for (i = 0; i < mac->mta_reg_count; i++)
81 for (i = 0; i < mac->uta_reg_count; i++)
85 ret_val = mac->ops.setup_link(hw);
igc_api.c 16 * igc_init_mac_params - Initialize MAC function pointers
19 * This function initializes the function pointers for the MAC
27 if (hw->mac.ops.init_params) {
28 ret_val = hw->mac.ops.init_params(hw);
30 DEBUGOUT("MAC Initialization Error\n");
34 DEBUGOUT("mac.init_mac_params was NULL\n");
94 * igc_set_mac_type - Sets MAC type
97 * This function sets the mac type of the adapter based on the
105 struct igc_mac_info *mac = &hw->mac; local in function:igc_set_mac_type
    [all...]
  /src/tests/crypto/opencrypto/
h_md5hmac.c 48 unsigned char mac[16]; member in struct:__anonc7ff8ff80108
155 cs.mac = CRYPTO_MD5_HMAC;
168 co.mac = buf;
173 if (memcmp(co.mac, tests[i].mac, sizeof(tests[i].mac)))
h_sha1hmac.c 48 unsigned char mac[20]; member in struct:__anonb8df601f0108
165 cs.mac = CRYPTO_SHA1_HMAC;
178 co.mac = buf;
183 if (memcmp(co.mac, &tests[i].mac, sizeof(tests[i].mac)))
h_xcbcmac.c 54 unsigned char mac[12]; member in struct:__anon596978ea0108
85 cs.mac = CRYPTO_AES_XCBC_MAC_96;
101 co.mac = buf;
105 if (memcmp(buf, &tests[i].mac, sizeof(tests[i].mac)))
h_sha2hmac.c 48 unsigned char mac[80]; member in struct:__anon05d99ce00108
241 cs.mac = tests[i].alg;
254 co.mac = buf;
260 if (memcmp(co.mac, &tests[i].mac, sizeof(tests[i].mac)))
  /src/sys/arch/evbppc/ev64260/
autoconf.c 133 prop_data_t mac; local in function:device_register
142 aprint_error("WARNING: unknown mac-no. for %s\n",
146 mac = prop_data_create_data_nocopy(enaddr, ETHER_ADDR_LEN);
147 KASSERT(mac != NULL);
148 if (prop_dictionary_set(dict, "mac-addr", mac) == false)
150 "WARNING: unable to set mac-addr property for %s\n",
152 prop_object_release(mac);
  /src/sys/arch/i386/stand/efiboot/
efipxe.c 34 EFI_MAC_ADDRESS mac; member in struct:efipxeinfo
92 memcmp(net->Mode->CurrentAddress.Addr, epi->mac.Addr,
109 memcpy(epi->mac.Addr, net->Mode->CurrentAddress.Addr, epi->addrsz);
126 printf("%c%02x", i == 0 ? ' ' : ':', epi->mac.Addr[i]);
132 efi_pxe_match_booted_interface(const EFI_MAC_ADDRESS *mac, UINT32 addrsz)
138 memcmp(mac->Addr, epi->mac.Addr, addrsz) == 0)
  /src/sys/stand/efiboot/
efipxe.c 34 EFI_MAC_ADDRESS mac; member in struct:efipxeinfo
92 memcmp(net->Mode->CurrentAddress.Addr, epi->mac.Addr,
109 memcpy(epi->mac.Addr, net->Mode->CurrentAddress.Addr, epi->addrsz);
117 efi_pxe_match_booted_interface(const EFI_MAC_ADDRESS *mac, UINT32 addrsz)
123 memcmp(mac->Addr, epi->mac.Addr, addrsz) == 0)
  /src/sys/arch/evbarm/iyonix/
autoconf.c 115 prop_data_t mac; local in function:device_register
129 mac = prop_data_create_data_nocopy(iyonix_macaddr,
131 KASSERT(mac != NULL);
133 SETPROP("mac-address", mac);
  /src/sys/arch/iyonix/iyonix/
autoconf.c 115 prop_data_t mac; local in function:device_register
129 mac = prop_data_create_data_nocopy(iyonix_macaddr,
131 KASSERT(mac != NULL);
133 SETPROP("mac-address", mac);
  /src/sys/external/gpl2/dts/dist/arch/mips/boot/dts/ingenic/
x1000.dtsi 84 mac_phy_ctrl: mac-phy-ctrl@e8 {
344 mac: ethernet@134b0000 { label
345 compatible = "ingenic,x1000-mac", "snps,dwmac";
x1830.dtsi 77 mac_phy_ctrl: mac-phy-ctrl@e8 {
333 mac: ethernet@134b0000 { label
334 compatible = "ingenic,x1830-mac", "snps,dwmac";
  /src/sys/external/isc/libsodium/dist/src/libsodium/crypto_secretstream/xchacha20poly1305/
secretstream_xchacha20poly1305.c 121 unsigned char *mac; local in function:crypto_secretstream_xchacha20poly1305_push
155 mac = c + mlen;
156 crypto_onetimeauth_poly1305_final(&poly1305_state, mac);
161 XOR_BUF(STATE_INONCE(state), mac,
186 unsigned char mac[crypto_onetimeauth_poly1305_BYTES]; local in function:crypto_secretstream_xchacha20poly1305_pull
231 crypto_onetimeauth_poly1305_final(&poly1305_state, mac);
235 if (sodium_memcmp(mac, stored_mac, sizeof mac) != 0) {
236 sodium_memzero(mac, sizeof mac);
    [all...]
  /src/sys/net80211/
ieee80211_acl.c 41 * IEEE 802.11 MAC ACL support.
68 ACL_POLICY_ALLOW = 1, /* allow traffic from MAC */
69 ACL_POLICY_DENY = 2, /* deny traffic from MAC */
148 acl_check(struct ieee80211com *ic, const u_int8_t mac[IEEE80211_ADDR_LEN])
156 return _find_acl(as, mac) != NULL;
158 return _find_acl(as, mac) == NULL;
164 acl_add(struct ieee80211com *ic, const u_int8_t mac[IEEE80211_ADDR_LEN])
173 hash = ACL_HASH(mac);
175 if (IEEE80211_ADDR_EQ(acl->acl_macaddr, mac)) {
180 ether_sprintf(mac));
308 static const struct ieee80211_aclator mac = { variable in typeref:typename:const struct ieee80211_aclator
    [all...]
  /src/sys/opencrypto/
ocryptodev.h 92 u_int32_t mac; /* ie. CRYPTO_MD5_HMAC */ member in struct:osession_op
95 int mackeylen; /* mac key */
103 u_int32_t mac; /* ie. CRYPTO_MD5_HMAC */ member in struct:osession_n_op
107 int mackeylen; /* mac key */
120 void * mac; /* must be big enough for chosen MAC */ member in struct:ocrypt_op
154 void * mac; /* must be big enough for chosen MAC */ member in struct:ocrypt_n_op
  /src/sys/arch/usermode/usermode/
machdep.c 161 char *mac = strchr(tap, ','); local in function:main
163 if (mac == NULL) {
176 usermode_tap_eaddr = mac + 1;

Completed in 23 milliseconds

1 2 3