Home
last modified time | relevance | path

Searched full:mac (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/hal_espressif-latest/components/esp_hw_support/include/
Desp_mac.h22 ESP_MAC_WIFI_STA, /**< MAC for WiFi Station (6 bytes) */
23 ESP_MAC_WIFI_SOFTAP, /**< MAC for WiFi Soft-AP (6 bytes) */
24 ESP_MAC_BT, /**< MAC for Bluetooth (6 bytes) */
25 ESP_MAC_ETH, /**< MAC for Ethernet (6 bytes) */
26 … ESP_MAC_IEEE802154, /**< if CONFIG_SOC_IEEE802154_SUPPORTED=y, MAC for IEEE802154 (8 bytes) */
27 ESP_MAC_BASE, /**< Base MAC for that used for other MAC types (6 bytes) */
30 …_IEEE802154_SUPPORTED=y, MAC_EXT eFuse which is used as an extender for IEEE802154 MAC (2 bytes) */
53 * @brief Set base MAC address with the MAC address which is stored in BLK3 of EFUSE or
56 * Base MAC address is used to generate the MAC addresses used by network interfaces.
58 * If using a custom base MAC address, call this API before initializing any network interfaces.
[all …]
/hal_espressif-latest/components/esp_hw_support/
Dmac_addr.c13 /* esp_system.h APIs relating to MAC addresses */
38 uint8_t mac[ESP_MAC_ADDRESS_LEN]; member
65 static esp_err_t generate_mac(uint8_t *mac, uint8_t *base_mac_addr, esp_mac_type_t type);
66 static esp_err_t get_efuse_factory_mac(uint8_t *mac);
67 static esp_err_t get_efuse_mac_custom(uint8_t *mac);
69 static esp_err_t get_efuse_mac_ext(uint8_t *mac);
79 ESP_LOGE(TAG, "%d mac type is incorrect (not found)", type); in get_idx()
83 static esp_err_t get_mac_addr_from_mac_table(uint8_t *mac, int idx, bool silent) in get_mac_addr_from_mac_table() argument
97 err = get_efuse_factory_mac(s_mac_table[idx].mac); in get_mac_addr_from_mac_table()
103 err = get_efuse_mac_custom(s_mac_table[idx].mac); in get_mac_addr_from_mac_table()
[all …]
/hal_espressif-latest/components/esp_hw_support/port/esp32c2/
DKconfig.mac2 bool "Number of universally administered (by IEEE) MAC address"
5 Configure the number of universally administered (by IEEE) MAC addresses.
7 … During initialization, MAC addresses for each network interface are generated or derived from a
8 single base MAC address.
10 … If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap,
11 Bluetooth and Ethernet) receive a universally administered MAC address. These are generated
12 … sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address.
14 … If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth)
15 receive a universally administered MAC address. These are generated sequentially by adding 0
16 …and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethern…
[all …]
/hal_espressif-latest/components/esp_hw_support/port/esp32c6/
DKconfig.mac2 bool "Number of universally administered (by IEEE) MAC address"
5 Configure the number of universally administered (by IEEE) MAC addresses.
7 … During initialization, MAC addresses for each network interface are generated or derived from a
8 single base MAC address.
10 … If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap,
11 Bluetooth and Ethernet) receive a universally administered MAC address. These are generated
12 … sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address.
14 … If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth)
15 receive a universally administered MAC address. These are generated sequentially by adding 0
16 …and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethern…
[all …]
/hal_espressif-latest/components/esp_hw_support/port/esp32c3/
DKconfig.mac2 bool "Number of universally administered (by IEEE) MAC address"
5 Configure the number of universally administered (by IEEE) MAC addresses.
7 … During initialization, MAC addresses for each network interface are generated or derived from a
8 single base MAC address.
10 … If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap,
11 Bluetooth and Ethernet) receive a universally administered MAC address. These are generated
12 … sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address.
14 … If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth)
15 receive a universally administered MAC address. These are generated sequentially by adding 0
16 …and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethern…
[all …]
/hal_espressif-latest/components/soc/esp32/include/soc/
Demac_mac_struct.h25 …nning of every Transmit frame. The preamble reduction occurs only when the MAC is operating in the…
26 … the receiver state machine of the MAC is enabled for receiving frames from the MII. When this bi…
27 …set the transmit state machine of the MAC is enabled for transmission on the MII. When this bit i…
29 …mber (r) of slot time delays (512 bit times for 10/100 Mbps) for which the MAC waits before resche…
30MAC strips the Pad or FCS field on the incoming frames only if the value of the length field is le…
32MAC attempts only one transmission. When a collision occurs on the MII interface the MAC ignores …
33MAC calculates the 16-bit one's complement of the one's complement sum of all received Ethernet fr…
34 …uint32_t duplex : 1; /*When this bit is set the MAC operates in the full-duplex mode where…
35 …uint32_t loopback : 1; /*When this bit is set the MAC operates in the loopback mode MII. The…
36MAC disables the reception of frames when the TX_EN is asserted in the half-duplex mode. When this…
[all …]
/hal_espressif-latest/components/esp_hw_support/port/esp32s2/
DKconfig.mac2 bool "Number of universally administered (by IEEE) MAC address"
5 Configure the number of universally administered (by IEEE) MAC addresses.
6 … During initialization, MAC addresses for each network interface are generated or derived from a
7 single base MAC address.
8 …If the number of universal MAC addresses is Two, all interfaces (WiFi station, WiFi softap) receiv…
9 …universally administered MAC address. They are generated sequentially by adding 0, and 1 (respecti…
10 to the final octet of the base MAC address. If the number of universal MAC addresses is one,
11 only WiFi station receives a universally administered MAC address.
12 It's generated by adding 0 to the base MAC address.
13 …The WiFi softap receives local MAC addresses. It's derived from the universal WiFi station MAC add…
[all …]
/hal_espressif-latest/components/esp_hw_support/port/esp32s3/
DKconfig.mac2 bool "Number of universally administered (by IEEE) MAC address"
5 Configure the number of universally administered (by IEEE) MAC addresses.
6 … During initialization, MAC addresses for each network interface are generated or derived from a
7 single base MAC address.
8 … If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap,
9 Bluetooth and Ethernet) receive a universally administered MAC address. These are generated
10 … sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address.
11 … If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth)
12 receive a universally administered MAC address. These are generated sequentially by adding 0
13 …and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethern…
[all …]
/hal_espressif-latest/components/esp_hw_support/port/esp32/
DKconfig.mac2 bool "Number of universally administered (by IEEE) MAC address"
5 Configure the number of universally administered (by IEEE) MAC addresses.
6 … During initialization, MAC addresses for each network interface are generated or derived from a
7 single base MAC address.
8 … If the number of universal MAC addresses is four, all four interfaces (WiFi station, WiFi softap,
9 Bluetooth and Ethernet) receive a universally administered MAC address. These are generated
10 … sequentially by adding 0, 1, 2 and 3 (respectively) to the final octet of the base MAC address.
11 … If the number of universal MAC addresses is two, only two interfaces (WiFi station and Bluetooth)
12 receive a universally administered MAC address. These are generated sequentially by adding 0
13 …and 1 (respectively) to the base MAC address. The remaining two interfaces (WiFi softap and Ethern…
[all …]
/hal_espressif-latest/components/wpa_supplicant/src/crypto/
Daes-omac1.c2 * One-key CBC MAC (OMAC1) hash with AES
30 * omac1_aes_vector - One-Key CBC MAC (OMAC1) hash with AES
36 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes)
44 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_vector() argument
114 aes_encrypt(ctx, pad, mac); in omac1_aes_vector()
121 * omac1_aes_128_vector - One-Key CBC MAC (OMAC1) hash with AES-128
126 * @mac: Buffer for MAC (128 bits, i.e., 16 bytes)
134 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_128_vector() argument
136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector()
141 * omac1_aes_128 - One-Key CBC MAC (OMAC1) hash with AES-128 (aka AES-CMAC)
[all …]
Dcrypto_internal.c179 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) in crypto_hash_finish() argument
187 if (mac == NULL || len == NULL) { in crypto_hash_finish()
200 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish()
209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
219 sha256_done(&ctx->u.sha256, mac); in crypto_hash_finish()
230 sha384_done(&ctx->u.sha384, mac); in crypto_hash_finish()
241 sha512_done(&ctx->u.sha512, mac); in crypto_hash_finish()
252 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish()
261 MD5Update(&ctx->u.md5, mac, 16); in crypto_hash_finish()
262 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish()
[all …]
Dmd5.c23 * @mac: Buffer for the hash (16 bytes)
27 const u8 *addr[], const size_t *len, u8 *mac) in hmac_md5_vector() argument
75 if (md5_vector(1 + num_elem, _addr, _len, mac)) in hmac_md5_vector()
87 _addr[1] = mac; in hmac_md5_vector()
89 res = md5_vector(2, _addr, _len, mac); in hmac_md5_vector()
102 * @mac: Buffer for the hash (16 bytes)
106 u8 *mac) in hmac_md5() argument
108 return hmac_md5_vector(key, key_len, 1, &data, &data_len, mac); in hmac_md5()
Dsha1.c23 * @mac: Buffer for the hash (20 bytes)
27 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha1_vector() argument
74 if (sha1_vector(1 + num_elem, _addr, _len, mac)) in hmac_sha1_vector()
86 _addr[1] = mac; in hmac_sha1_vector()
88 ret = sha1_vector(2, _addr, _len, mac); in hmac_sha1_vector()
101 * @mac: Buffer for the hash (20 bytes)
105 u8 *mac) in hmac_sha1() argument
107 return hmac_sha1_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha1()
Dsha256.c23 * @mac: Buffer for the hash (32 bytes)
27 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha256_vector() argument
73 if (sha256_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha256_vector()
85 _addr[1] = mac; in hmac_sha256_vector()
87 return sha256_vector(2, _addr, _len, mac); in hmac_sha256_vector()
97 * @mac: Buffer for the hash (32 bytes)
101 size_t data_len, u8 *mac) in hmac_sha256() argument
103 return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha256()
/hal_espressif-latest/tools/esptool_py/docs/en/espefuse/
Dburn-custom-mac-cmd.rst1 .. _burn-custom-mac-cmd:
3 Burn Custom Mac
6 The ``espefuse.py burn_custom_mac`` command burns a 48-bit Custom MAC Address.
10 * ``MAC``. Custom MAC Address (``CUSTOM_MAC``) to burn given in hexadecimal format with bytes separ…
31 - 'MAC_VERSION' (Version of the MAC field) 0x00 -> 0x1
32 - 'CUSTOM_MAC' (Custom MAC) 0x000000000000 -> 0x167215926348
33 - 'CUSTOM_MAC_CRC' (CRC of custom MAC) 0x00 -> 0x75
44 Custom MAC Address version 1: 48:63:92:15:72:16 (CRC 0x75 OK)
49 …LOCK3): Version of the MAC field = Custom M…
50 CUSTOM_MAC (BLOCK3): Custom MAC
[all …]
Dget-custom-mac-cmd.rst1 .. _get-custom-mac-cmd:
3 Get Custom Mac
6 The ``espefuse.py burn_custom_mac`` command prints the Custom MAC Address (``CUSTOM_MAC``).
8 The chips also have a factory MAC address (eFuse name ``MAC``), which is written at the factory. It…
17 Custom MAC Address version 1: 48:63:92:15:72:16 (CRC 0x75 OK)
19MAC address is not burned, then you will see the message "Custom MAC Address is not set in the dev…
28 Custom MAC Address: 48:63:92:15:72:16 (OK)
30 …If the custom MAC address is not burned, then you will see the message "Custom MAC Address: 00:00:…
/hal_espressif-latest/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls.c54 const u8 *addr[], const size_t *len, u8 *mac) in digest_vector() argument
89 ret = mbedtls_md_finish(&md_ctx, mac); in digest_vector()
98 u8 *mac) in sha256_vector() argument
100 return digest_vector(MBEDTLS_MD_SHA256, num_elem, addr, len, mac); in sha256_vector()
104 u8 *mac) in sha384_vector() argument
106 return digest_vector(MBEDTLS_MD_SHA384, num_elem, addr, len, mac); in sha384_vector()
110 u8 *mac) in sha512_vector() argument
112 return digest_vector(MBEDTLS_MD_SHA512, num_elem, addr, len, mac); in sha512_vector()
115 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument
117 return digest_vector(MBEDTLS_MD_SHA1, num_elem, addr, len, mac); in sha1_vector()
[all …]
/hal_espressif-latest/components/esp_hw_support/include/esp_private/
Dsleep_modem.h21 …* This file contains declarations of MAC and baseband power consumption related functions in light…
27 * @brief A callback function completes MAC and baseband power down operation
29 * In light sleep mode, execute Wi-Fi and Bluetooth module MAC and baseband
35 * @brief A callback function completes MAC and baseband power up operation
37 * In light sleep mode, execute Wi-Fi and Bluetooth module MAC and baseband
46 * @brief Register sleep prepare callback for Bluetooth/IEEE802154 MAC and baseband
55 * @brief Unregister sleep prepare callback for Bluetooth/IEEE802154 MAC and baseband
64 * @brief MAC and baseband power up operation
66 * In light sleep mode, execute IEEE802154/Bluetooth module MAC and baseband
72 * @brief MAC and baseband power up operation
[all …]
/hal_espressif-latest/components/efuse/esp32/
Desp_efuse_table.csv19 WR_DIS.MAC, EFUSE_BLK0, 3, 1, [WR_DIS.MAC_FACTORY] wr_dis …
74 MAC, EFUSE_BLK0, 72, 8, [MAC_FACTORY] MAC address
75 , EFUSE_BLK0, 64, 8, [MAC_FACTORY] MAC address
76 , EFUSE_BLK0, 56, 8, [MAC_FACTORY] MAC address
77 , EFUSE_BLK0, 48, 8, [MAC_FACTORY] MAC address
78 , EFUSE_BLK0, 40, 8, [MAC_FACTORY] MAC address
79 , EFUSE_BLK0, 32, 8, [MAC_FACTORY] MAC address
80 … EFUSE_BLK0, 80, 8, [MAC_FACTORY_CRC] CRC8 for MAC address
116 … EFUSE_BLK3, 0, 8, [MAC_CUSTOM_CRC] CRC8 for custom MAC address
117 MAC_CUSTOM, EFUSE_BLK3, 8, 48, [MAC_CUSTOM] Custom MAC addr…
[all …]
Desp_efuse_table.c50 {EFUSE_BLK0, 3, 1}, // [WR_DIS.MAC_FACTORY] wr_dis of MAC,
269 static const esp_efuse_desc_t MAC[] = { variable
270 {EFUSE_BLK0, 72, 8}, // [MAC_FACTORY] MAC address,
271 {EFUSE_BLK0, 64, 8}, // [MAC_FACTORY] MAC address,
272 {EFUSE_BLK0, 56, 8}, // [MAC_FACTORY] MAC address,
273 {EFUSE_BLK0, 48, 8}, // [MAC_FACTORY] MAC address,
274 {EFUSE_BLK0, 40, 8}, // [MAC_FACTORY] MAC address,
275 {EFUSE_BLK0, 32, 8}, // [MAC_FACTORY] MAC address,
279 {EFUSE_BLK0, 80, 8}, // [MAC_FACTORY_CRC] CRC8 for MAC address,
423 {EFUSE_BLK3, 0, 8}, // [MAC_CUSTOM_CRC] CRC8 for custom MAC address,
[all …]
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32c6/
Dfields.py300 "mac": EfuseMacField,
339 "Required MAC Address in AA:CD:EF:01:02:03 format!"
344 f"MAC Address needs to be a {num_bytes}-byte hexadecimal format "
351 f"MAC Address needs to be a {num_bytes}-byte hexadecimal number "
361 raise esptool.FatalError("Custom MAC must be a unicast MAC!")
374 mac = self.get_raw(from_read)[::-1]
375 elif self.name == "MAC":
376 mac = self.get_raw(from_read)
378 mac = self.parent["MAC"].get_bitstring(from_read).copy()
380 mac.insert(mac_ext, 24)
[all …]
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32p4/
Dfields.py291 "mac": EfuseMacField,
317 "Required MAC Address in AA:CD:EF:01:02:03 format!"
322 f"MAC Address needs to be a {num_bytes}-byte hexadecimal format "
329 f"MAC Address needs to be a {num_bytes}-byte hexadecimal number "
339 raise esptool.FatalError("Custom MAC must be a unicast MAC!")
352 mac = self.get_raw(from_read)[::-1]
353 elif self.name == "MAC":
354 mac = self.get_raw(from_read)
356 mac = self.parent["MAC"].get_bitstring(from_read).copy()
358 mac.insert(mac_ext, 24)
[all …]
/hal_espressif-latest/components/bt/porting/ext/tinycrypt/include/tinycrypt/
Dccm_mode.h37 * Overview: CCM (for "Counter with CBC-MAC") mode is a NIST approved mode of
53 * Security: The mac length parameter is an important parameter to estimate the
61 * applications to use a mac length greater than 8. Besides, the
94 unsigned int mlen; /* mac length in bytes (parameter t in SP-800 38C) */
109 * @param mlen -- mac length in bytes (parameter t in SP-800 38C)
146 * b = [FLAGS | nonce | length(mac length)], where:
149 * length(mac length) is 2 bytes long
152 * 3-5 bits: mac length (encoded as: (mlen-2)/2)
192 * b = [FLAGS | nonce | length(mac length)], where:
195 * length(mac length) is 2 bytes long
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/
Dccm_mode.h37 * Overview: CCM (for "Counter with CBC-MAC") mode is a NIST approved mode of
53 * Security: The mac length parameter is an important parameter to estimate the
61 * applications to use a mac length greater than 8. Besides, the
94 unsigned int mlen; /* mac length in bytes (parameter t in SP-800 38C) */
109 * @param mlen -- mac length in bytes (parameter t in SP-800 38C)
146 * b = [FLAGS | nonce | length(mac length)], where:
149 * length(mac length) is 2 bytes long
152 * 3-5 bits: mac length (encoded as: (mlen-2)/2)
192 * b = [FLAGS | nonce | length(mac length)], where:
195 * length(mac length) is 2 bytes long
[all …]
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32h2beta1/
Dfields.py300 "mac": EfuseMacField,
339 "Required MAC Address in AA:CD:EF:01:02:03 format!"
344 f"MAC Address needs to be a {num_bytes}-byte hexadecimal format "
351 f"MAC Address needs to be a {num_bytes}-byte hexadecimal number "
361 raise esptool.FatalError("Custom MAC must be a unicast MAC!")
374 mac = self.get_raw(from_read)[::-1]
375 elif self.name == "MAC":
376 mac = self.get_raw(from_read)
378 mac = self.parent["MAC"].get_bitstring(from_read).copy()
380 mac.insert(mac_ext, 24)
[all …]

12345678910>>...12