Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 602) sorted by relevance

12345678910>>...25

/NextBSD/sys/dev/bwi/
HDbwiphy.c87 static void bwi_tbl_write_2(struct bwi_mac *mac, uint16_t, uint16_t);
88 static void bwi_tbl_write_4(struct bwi_mac *mac, uint16_t, uint32_t);
136 bwi_phy_write(struct bwi_mac *mac, uint16_t ctrl, uint16_t data) in bwi_phy_write() argument
138 struct bwi_softc *sc = mac->mac_sc; in bwi_phy_write()
145 bwi_phy_read(struct bwi_mac *mac, uint16_t ctrl) in bwi_phy_read() argument
147 struct bwi_softc *sc = mac->mac_sc; in bwi_phy_read()
154 bwi_phy_attach(struct bwi_mac *mac) in bwi_phy_attach() argument
156 struct bwi_softc *sc = mac->mac_sc; in bwi_phy_attach()
157 struct bwi_phy *phy = &mac->mac_phy; in bwi_phy_attach()
224 bwi_phy_set_bbp_atten(struct bwi_mac *mac, uint16_t bbp_atten) in bwi_phy_set_bbp_atten() argument
[all …]
HDbwirf.c78 #define RF_LO_WRITE(mac, lo) bwi_rf_lo_write((mac), (lo)) argument
106 #define SAVE_RF_REG(mac, regs, n) (regs)->rf_##n = RF_READ((mac), 0x##n) argument
107 #define RESTORE_RF_REG(mac, regs, n) RF_WRITE((mac), 0x##n, (regs)->rf_##n) argument
109 #define SAVE_PHY_REG(mac, regs, n) (regs)->phy_##n = PHY_READ((mac), 0x##n) argument
110 #define RESTORE_PHY_REG(mac, regs, n) PHY_WRITE((mac), 0x##n, (regs)->phy_##n) argument
159 bwi_nrssi_11g(struct bwi_mac *mac) in bwi_nrssi_11g() argument
165 val = (int16_t)__SHIFTOUT(PHY_READ(mac, 0x47f), NRSSI_11G_MASK); in bwi_nrssi_11g()
174 bwi_get_rf_lo(struct bwi_mac *mac, uint16_t rf_atten, uint16_t bbp_atten) in bwi_get_rf_lo() argument
181 return &mac->mac_rf.rf_lo[n]; in bwi_get_rf_lo()
185 bwi_rf_lo_isused(struct bwi_mac *mac, const struct bwi_rf_lo *lo) in bwi_rf_lo_isused() argument
[all …]
HDbwimac.c118 bwi_tmplt_write_4(struct bwi_mac *mac, uint32_t ofs, uint32_t val) in bwi_tmplt_write_4() argument
120 struct bwi_softc *sc = mac->mac_sc; in bwi_tmplt_write_4()
122 if (mac->mac_flags & BWI_MAC_F_BSWAP) in bwi_tmplt_write_4()
130 bwi_hostflags_write(struct bwi_mac *mac, uint64_t flags) in bwi_hostflags_write() argument
135 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO, val); in bwi_hostflags_write()
138 MOBJ_WRITE_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI, val); in bwi_hostflags_write()
144 bwi_hostflags_read(struct bwi_mac *mac) in bwi_hostflags_read() argument
151 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_MI); in bwi_hostflags_read()
154 val = MOBJ_READ_2(mac, BWI_COMM_MOBJ, BWI_COMM_MOBJ_HFLAGS_LO); in bwi_hostflags_read()
161 bwi_memobj_read_2(struct bwi_mac *mac, uint16_t obj_id, uint16_t ofs0) in bwi_memobj_read_2() argument
[all …]
HDbwimac.h72 #define MOBJ_WRITE_2(mac, objid, ofs, val) \ argument
73 bwi_memobj_write_2((mac), (objid), (ofs), (val))
74 #define MOBJ_WRITE_4(mac, objid, ofs, val) \ argument
75 bwi_memobj_write_4((mac), (objid), (ofs), (val))
76 #define MOBJ_READ_2(mac, objid, ofs) \ argument
77 bwi_memobj_read_2((mac), (objid), (ofs))
78 #define MOBJ_READ_4(mac, objid, ofs) \ argument
79 bwi_memobj_read_4((mac), (objid), (ofs))
81 #define MOBJ_SETBITS_4(mac, objid, ofs, bits) \ argument
82 MOBJ_WRITE_4((mac), (objid), (ofs), \
[all …]
HDbwiphy.h66 #define PHY_WRITE(mac, ctrl, val) bwi_phy_write((mac), (ctrl), (val)) argument
67 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl)) argument
69 #define PHY_SETBITS(mac, ctrl, bits) \ argument
70 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits))
71 #define PHY_CLRBITS(mac, ctrl, bits) \ argument
72 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) & ~(bits))
73 #define PHY_FILT_SETBITS(mac, ctrl, filt, bits) \ argument
74 PHY_WRITE((mac), (ctrl), (PHY_READ((mac), (ctrl)) & (filt)) | (bits))
/NextBSD/sys/dev/bwn/
HDif_bwn.c921 struct bwn_mac *mac; in bwn_attach() local
946 mac = malloc(sizeof(*mac), M_DEVBUF, M_WAITOK | M_ZERO); in bwn_attach()
947 mac->mac_sc = sc; in bwn_attach()
948 mac->mac_status = BWN_MAC_STATUS_UNINIT; in bwn_attach()
950 mac->mac_flags |= BWN_MAC_FLAG_BADFRAME_PREEMP; in bwn_attach()
952 TASK_INIT(&mac->mac_hwreset, 0, bwn_hwreset, mac); in bwn_attach()
953 TASK_INIT(&mac->mac_intrtask, 0, bwn_intrtask, mac); in bwn_attach()
954 TASK_INIT(&mac->mac_txpower, 0, bwn_txpwr, mac); in bwn_attach()
956 error = bwn_attach_core(mac); in bwn_attach()
959 bwn_led_attach(mac); in bwn_attach()
[all …]
HDif_bwnvar.h58 #define BWN_ISOLDFMT(mac) ((mac)->mac_fw.rev <= 351) argument
61 #define BWN_HDRSIZE(mac) \ argument
62 ((BWN_ISOLDFMT(mac)) ? (100 + sizeof(struct bwn_plcp6)) : \
68 #define BWN_READ_2(mac, o) (siba_read_2(mac->mac_sc->sc_dev, o)) argument
69 #define BWN_READ_4(mac, o) (siba_read_4(mac->mac_sc->sc_dev, o)) argument
70 #define BWN_WRITE_2(mac, o, v) \ argument
71 (siba_write_2(mac->mac_sc->sc_dev, o, v))
72 #define BWN_WRITE_4(mac, o, v) \ argument
73 (siba_write_4(mac->mac_sc->sc_dev, o, v))
74 #define BWN_PIO_TXQOFFSET(mac) \ argument
[all …]
/NextBSD/sys/dev/cxgb/common/
HDcxgb_xgmac.c39 static inline int macidx(const struct cmac *mac) in macidx() argument
41 return mac->offset / (XGMAC0_1_BASE_ADDR - XGMAC0_0_BASE_ADDR); in macidx()
47 static inline int xgm_reset_ctrl(const struct cmac *mac) in xgm_reset_ctrl() argument
49 adapter_t *adap = mac->adapter; in xgm_reset_ctrl()
53 int cfg = t3_read_reg(adap, A_XGM_PORT_CFG + mac->offset); in xgm_reset_ctrl()
66 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset() argument
74 adapter_t *adap = mac->adapter; in xaui_serdes_reset()
75 u32 ctrl = A_XGM_SERDES_CTRL0 + mac->offset; in xaui_serdes_reset()
77 t3_write_reg(adap, ctrl, adap->params.vpd.xauicfg[macidx(mac)] | in xaui_serdes_reset()
96 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset() argument
[all …]
HDcxgb_vsc7323.c286 const struct mac_stats *t3_vsc7323_update_stats(struct cmac *mac) in t3_vsc7323_update_stats() argument
292 ret = t3_elmr_blk_read(mac->adapter, in t3_vsc7323_update_stats()
293 ELMR_STAT(mac->ext_port, STATS0_START), in t3_vsc7323_update_stats()
296 ret = t3_elmr_blk_read(mac->adapter, in t3_vsc7323_update_stats()
297 ELMR_STAT(mac->ext_port, STATS1_START), in t3_vsc7323_update_stats()
305 rx_ucast = mac->stats.rx_frames - mac->stats.rx_mcast_frames - in t3_vsc7323_update_stats()
306 mac->stats.rx_bcast_frames; in t3_vsc7323_update_stats()
308 tx_ucast = mac->stats.tx_frames - mac->stats.tx_mcast_frames - in t3_vsc7323_update_stats()
309 mac->stats.tx_bcast_frames; in t3_vsc7323_update_stats()
312 #define RMON_UPDATE(mac, name, hw_stat) \ in t3_vsc7323_update_stats() argument
[all …]
/NextBSD/crypto/openssh/
HDmac.c114 mac_setup_by_alg(Mac *mac, const struct macalg *macalg) in mac_setup_by_alg() argument
116 mac->type = macalg->type; in mac_setup_by_alg()
117 if (mac->type == SSH_DIGEST) { in mac_setup_by_alg()
118 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) in mac_setup_by_alg()
120 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); in mac_setup_by_alg()
122 mac->mac_len = macalg->len / 8; in mac_setup_by_alg()
123 mac->key_len = macalg->key_len / 8; in mac_setup_by_alg()
124 mac->umac_ctx = NULL; in mac_setup_by_alg()
127 mac->mac_len = macalg->truncatebits / 8; in mac_setup_by_alg()
128 mac->etm = macalg->etm; in mac_setup_by_alg()
[all …]
/NextBSD/lib/libc/posix1e/
HDmac.c295 mac_free(struct mac *mac) in mac_free() argument
298 if (mac->m_string != NULL) in mac_free()
299 free(mac->m_string); in mac_free()
300 free(mac); in mac_free()
306 mac_from_text(struct mac **mac, const char *text) in mac_from_text() argument
309 *mac = (struct mac *) malloc(sizeof(**mac)); in mac_from_text()
310 if (*mac == NULL) in mac_from_text()
313 (*mac)->m_string = strdup(text); in mac_from_text()
314 if ((*mac)->m_string == NULL) { in mac_from_text()
315 free(*mac); in mac_from_text()
[all …]
/NextBSD/sys/security/mac/
HDmac_syscalls.c83 struct mac mac; in sys___mac_get_pid() local
88 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_pid()
92 error = mac_check_structmac_consistent(&mac); in sys___mac_get_pid()
108 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_pid()
109 error = copyinstr(mac.m_string, elements, mac.m_buflen, NULL); in sys___mac_get_pid()
116 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in sys___mac_get_pid()
118 buffer, mac.m_buflen); in sys___mac_get_pid()
120 error = copyout(buffer, mac.m_string, strlen(buffer)+1); in sys___mac_get_pid()
132 struct mac mac; in sys___mac_get_proc() local
135 error = copyin(uap->mac_p, &mac, sizeof(mac)); in sys___mac_get_proc()
[all …]
/NextBSD/sys/dev/e1000/
HDe1000_api.c48 if (hw->mac.ops.init_params) { in e1000_init_mac_params()
49 ret_val = hw->mac.ops.init_params(hw); in e1000_init_mac_params()
152 struct e1000_mac_info *mac = &hw->mac; in e1000_set_mac_type() local
159 mac->type = e1000_82542; in e1000_set_mac_type()
163 mac->type = e1000_82543; in e1000_set_mac_type()
169 mac->type = e1000_82544; in e1000_set_mac_type()
176 mac->type = e1000_82540; in e1000_set_mac_type()
180 mac->type = e1000_82545; in e1000_set_mac_type()
185 mac->type = e1000_82545_rev_3; in e1000_set_mac_type()
190 mac->type = e1000_82546; in e1000_set_mac_type()
[all …]
HDe1000_mac.c50 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_ops_generic() local
54 mac->ops.init_params = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
55 mac->ops.init_hw = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
56 mac->ops.reset_hw = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
57 mac->ops.setup_physical_interface = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
58 mac->ops.get_bus_info = e1000_null_ops_generic; in e1000_init_mac_ops_generic()
59 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pcie; in e1000_init_mac_ops_generic()
60 mac->ops.read_mac_addr = e1000_read_mac_addr_generic; in e1000_init_mac_ops_generic()
61 mac->ops.config_collision_dist = e1000_config_collision_dist_generic; in e1000_init_mac_ops_generic()
62 mac->ops.clear_hw_cntrs = e1000_null_mac_generic; in e1000_init_mac_ops_generic()
[all …]
HDe1000_82571.c117 switch (hw->mac.type) { in e1000_init_phy_params_82571()
175 switch (hw->mac.type) { in e1000_init_phy_params_82571()
230 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
262 switch (hw->mac.type) { in e1000_init_nvm_params_82571()
288 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82571() local
301 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
303 mac->ops.check_for_link = e1000_check_for_fiber_link_generic; in e1000_init_mac_params_82571()
304 mac->ops.get_link_up_info = in e1000_init_mac_params_82571()
312 mac->ops.setup_physical_interface = in e1000_init_mac_params_82571()
314 mac->ops.check_for_link = e1000_check_for_serdes_link_82571; in e1000_init_mac_params_82571()
[all …]
HDe1000_82540.c94 switch (hw->mac.type) { in e1000_init_phy_params_82540()
160 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82540() local
183 mac->mta_reg_count = 128; in e1000_init_mac_params_82540()
185 mac->rar_entry_count = E1000_RAR_ENTRIES; in e1000_init_mac_params_82540()
190 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic; in e1000_init_mac_params_82540()
192 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci; in e1000_init_mac_params_82540()
194 mac->ops.reset_hw = e1000_reset_hw_82540; in e1000_init_mac_params_82540()
196 mac->ops.init_hw = e1000_init_hw_82540; in e1000_init_mac_params_82540()
198 mac->ops.setup_link = e1000_setup_link_generic; in e1000_init_mac_params_82540()
200 mac->ops.setup_physical_interface = in e1000_init_mac_params_82540()
[all …]
HDe1000_82542.c102 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82542() local
110 mac->mta_reg_count = 128; in e1000_init_mac_params_82542()
112 mac->rar_entry_count = E1000_RAR_ENTRIES; in e1000_init_mac_params_82542()
117 mac->ops.get_bus_info = e1000_get_bus_info_82542; in e1000_init_mac_params_82542()
119 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci; in e1000_init_mac_params_82542()
121 mac->ops.reset_hw = e1000_reset_hw_82542; in e1000_init_mac_params_82542()
123 mac->ops.init_hw = e1000_init_hw_82542; in e1000_init_mac_params_82542()
125 mac->ops.setup_link = e1000_setup_link_82542; in e1000_init_mac_params_82542()
127 mac->ops.setup_physical_interface = in e1000_init_mac_params_82542()
130 mac->ops.check_for_link = e1000_check_for_fiber_link_generic; in e1000_init_mac_params_82542()
[all …]
HDe1000_82543.c110 phy->ops.read_reg = (hw->mac.type == e1000_82543) in e1000_init_phy_params_82543()
113 phy->ops.reset = (hw->mac.type == e1000_82543) in e1000_init_phy_params_82543()
116 phy->ops.write_reg = (hw->mac.type == e1000_82543) in e1000_init_phy_params_82543()
140 switch (hw->mac.type) { in e1000_init_phy_params_82543()
195 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_82543() local
211 mac->mta_reg_count = 128; in e1000_init_mac_params_82543()
213 mac->rar_entry_count = E1000_RAR_ENTRIES; in e1000_init_mac_params_82543()
218 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic; in e1000_init_mac_params_82543()
220 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci; in e1000_init_mac_params_82543()
222 mac->ops.reset_hw = e1000_reset_hw_82543; in e1000_init_mac_params_82543()
[all …]
/NextBSD/usr.bin/checknr/
HDchecknr.c316 char mac[64]; /* The current macro or nroff command */ in process() local
329 strncpy(mac, line+1, 4); in process()
330 if (isspace(mac[0])) { in process()
333 } else if (isspace(mac[1])) { in process()
334 mac[1] = 0; in process()
335 } else if (isspace(mac[2])) { in process()
336 mac[2] = 0; in process()
337 } else if (mac[0] != '\\' || mac[1] != '\"') { in process()
345 checkknown(mac); in process()
350 if (eq(mac, "de")) in process()
[all …]
/NextBSD/sys/dev/ixgbe/
HDixgbe_x540.c61 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_X540() local
89 mac->ops.reset_hw = ixgbe_reset_hw_X540; in ixgbe_init_ops_X540()
90 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2; in ixgbe_init_ops_X540()
91 mac->ops.get_media_type = ixgbe_get_media_type_X540; in ixgbe_init_ops_X540()
92 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_X540()
94 mac->ops.read_analog_reg8 = NULL; in ixgbe_init_ops_X540()
95 mac->ops.write_analog_reg8 = NULL; in ixgbe_init_ops_X540()
96 mac->ops.start_hw = ixgbe_start_hw_X540; in ixgbe_init_ops_X540()
97 mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic; in ixgbe_init_ops_X540()
98 mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic; in ixgbe_init_ops_X540()
[all …]
HDixgbe_api.c65 if (hw->mac.ops.get_rtrup2tc) in ixgbe_dcb_get_rtrup2tc()
66 hw->mac.ops.get_rtrup2tc(hw, map); in ixgbe_dcb_get_rtrup2tc()
92 switch (hw->mac.type) { in ixgbe_init_shared_code()
118 hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME; in ixgbe_init_shared_code()
157 hw->mac.type = ixgbe_mac_82598EB; in ixgbe_set_mac_type()
175 hw->mac.type = ixgbe_mac_82599EB; in ixgbe_set_mac_type()
179 hw->mac.type = ixgbe_mac_82599_vf; in ixgbe_set_mac_type()
183 hw->mac.type = ixgbe_mac_X540_vf; in ixgbe_set_mac_type()
189 hw->mac.type = ixgbe_mac_X540; in ixgbe_set_mac_type()
194 hw->mac.type = ixgbe_mac_X550; in ixgbe_set_mac_type()
[all …]
HDixgbe_vf.c59 hw->mac.ops.init_hw = ixgbe_init_hw_vf; in ixgbe_init_ops_vf()
60 hw->mac.ops.reset_hw = ixgbe_reset_hw_vf; in ixgbe_init_ops_vf()
61 hw->mac.ops.start_hw = ixgbe_start_hw_vf; in ixgbe_init_ops_vf()
63 hw->mac.ops.clear_hw_cntrs = NULL; in ixgbe_init_ops_vf()
64 hw->mac.ops.get_media_type = NULL; in ixgbe_init_ops_vf()
65 hw->mac.ops.get_mac_addr = ixgbe_get_mac_addr_vf; in ixgbe_init_ops_vf()
66 hw->mac.ops.stop_adapter = ixgbe_stop_adapter_vf; in ixgbe_init_ops_vf()
67 hw->mac.ops.get_bus_info = NULL; in ixgbe_init_ops_vf()
70 hw->mac.ops.setup_link = ixgbe_setup_mac_link_vf; in ixgbe_init_ops_vf()
71 hw->mac.ops.check_link = ixgbe_check_mac_link_vf; in ixgbe_init_ops_vf()
[all …]
HDixgbe_82599.c63 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_mac_link_ops_82599() local
71 if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) && in ixgbe_init_mac_link_ops_82599()
73 mac->ops.disable_tx_laser = in ixgbe_init_mac_link_ops_82599()
75 mac->ops.enable_tx_laser = in ixgbe_init_mac_link_ops_82599()
77 mac->ops.flap_tx_laser = ixgbe_flap_tx_laser_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
80 mac->ops.disable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
81 mac->ops.enable_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
82 mac->ops.flap_tx_laser = NULL; in ixgbe_init_mac_link_ops_82599()
87 mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber; in ixgbe_init_mac_link_ops_82599()
88 mac->ops.setup_mac_link = ixgbe_setup_mac_link_82599; in ixgbe_init_mac_link_ops_82599()
[all …]
HDixgbe_82598.c121 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_82598() local
134 mac->ops.start_hw = ixgbe_start_hw_82598; in ixgbe_init_ops_82598()
135 mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_82598; in ixgbe_init_ops_82598()
136 mac->ops.reset_hw = ixgbe_reset_hw_82598; in ixgbe_init_ops_82598()
137 mac->ops.get_media_type = ixgbe_get_media_type_82598; in ixgbe_init_ops_82598()
138 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_82598()
140 mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82598; in ixgbe_init_ops_82598()
141 mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82598; in ixgbe_init_ops_82598()
142 mac->ops.set_lan_id = ixgbe_set_lan_id_multi_port_pcie_82598; in ixgbe_init_ops_82598()
143 mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82598; in ixgbe_init_ops_82598()
[all …]
/NextBSD/crypto/openssl/crypto/pkcs12/
HDp12_mutl.c70 unsigned char *mac, unsigned int *maclen) in PKCS12_gen_mac() argument
83 salt = p12->mac->salt->data; in PKCS12_gen_mac()
84 saltlen = p12->mac->salt->length; in PKCS12_gen_mac()
85 if (!p12->mac->iter) in PKCS12_gen_mac()
88 iter = ASN1_INTEGER_get(p12->mac->iter); in PKCS12_gen_mac()
89 if (!(md_type = EVP_get_digestbyobj(p12->mac->dinfo->algor->algorithm))) { in PKCS12_gen_mac()
105 || !HMAC_Final(&hmac, mac, maclen)) { in PKCS12_gen_mac()
116 unsigned char mac[EVP_MAX_MD_SIZE]; in PKCS12_verify_mac() local
118 if (p12->mac == NULL) { in PKCS12_verify_mac()
122 if (!PKCS12_gen_mac(p12, pass, passlen, mac, &maclen)) { in PKCS12_verify_mac()
[all …]

12345678910>>...25