HomeSort by relevance Sort by last modified time
    Searched defs:mac (Results 1 - 25 of 106) sorted by null

1 2 3 4 5

  /onnv/onnv-gate/usr/src/common/openssl/crypto/pkcs12/
p12_mutl.c 66 /* Generate a MAC */
68 unsigned char *mac, unsigned int *maclen)
81 salt = p12->mac->salt->data;
82 saltlen = p12->mac->salt->length;
83 if (!p12->mac->iter) iter = 1;
84 else iter = ASN1_INTEGER_get (p12->mac->iter);
86 EVP_get_digestbyobj (p12->mac->dinfo->algor->algorithm))) {
99 HMAC_Final(&hmac, mac, maclen);
104 /* Verify the mac */
107 unsigned char mac[EVP_MAX_MD_SIZE] local
127 unsigned char mac[EVP_MAX_MD_SIZE]; local
    [all...]
p12_npas.c 87 /* Check the mac */
111 unsigned char mac[EVP_MAX_MD_SIZE]; local
154 if(!PKCS12_gen_mac(p12, newpass, -1, mac, &maclen)) goto saferr;
156 if(!ASN1_OCTET_STRING_set(macnew, mac, maclen)) goto saferr;
157 ASN1_OCTET_STRING_free(p12->mac->dinfo->digest);
158 p12->mac->dinfo->digest = macnew;
  /onnv/onnv-gate/usr/src/lib/smbsrv/libsmb/common/
smb_mac.c 29 * SMB MAC Signing support.
43 * Calculates the MAC key using the specified user session
66 * Calculates MAC signature for the given buffer and returns
69 * The MAC signature is calculated as follows:
73 * MAC = head(hash, 8);
94 unsigned char mac[16]; local
116 /* init with the MAC key */
138 rv = C_DigestFinal(hSession, mac, &diglen);
142 bcopy(mac, mac_sign, SMB_SIG_SIZE);
153 * Calculates MAC signature for the given buffe
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
hmac.c 50 crypto_data_t mac; local
68 mac.cd_format = CRYPTO_DATA_RAW;
69 mac.cd_offset = 0;
70 mac.cd_length = output->length;
71 mac.cd_raw.iov_base = (char *)output->data;
72 mac.cd_raw.iov_len = output->length;
80 key->key_tmpl, &mac, NULL);
  /onnv/onnv-gate/usr/src/uts/common/io/fcoe/
fcoe_eth.c 60 fcoe_open_mac(fcoe_mac_t *mac, int force_promisc, fcoeio_stat_t *err_detail)
71 * Open MAC interface
73 ret = mac_open_by_linkid(mac->fm_linkid, &mac->fm_handle);
76 mac->fm_linkid, ret);
80 (void) sprintf(cli_name, "%s-%d", "fcoe", mac->fm_linkid);
82 ret = mac_client_open(mac->fm_handle,
83 &mac->fm_cli_handle, cli_name, fm_open_flag);
85 (void) fcoe_close_mac(mac);
89 * Cache the pointer of the immutable MAC inforamtion an
241 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
276 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
341 fcoe_mac_t *mac = EPORT2MAC(eport); local
    [all...]
fcoe_fc.c 72 fcoe_mac_t *mac; local
85 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
86 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
87 if (client->ect_channelid == mac->fm_linkid) {
92 if (mac == NULL) {
93 FCOE_LOG(0, "can't find the MAC you want to bind");
97 if (mac->fm_flags & FCOE_MAC_FLAG_BOUND) {
98 FCOE_LOG(0, "the MAC you want to bind is bound already")
136 fcoe_mac_t *mac = EPORT2MAC(eport); local
160 fcoe_mac_t *mac = EPORT2MAC(eport); local
202 fcoe_mac_t *mac = FRM2MAC(frm); local
411 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
421 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
467 fcoe_mac_t *mac; local
    [all...]
  /onnv/onnv-gate/usr/src/lib/libpp/common/
ppcall.c 36 * 0 returned if tok==0 and sym->mac->value to be copied to output by caller
46 register struct ppmacro* mac; local
63 if (mac = sym->macro)
70 if ((pp.state & (COMPATIBILITY|TRANSITION)) != COMPATIBILITY || !mac->arity)
95 else if (!(pp.state & DIRECTIVE) && mac->value && (ppisdig(*mac->value) || *mac->value == '#'))
98 debug((-5, "macro %s = %s", sym->name, mac->value));
101 if (tp = mac->tuple)
174 if (!mac->value
    [all...]
  /onnv/onnv-gate/usr/src/common/openssl/ssl/
s2_pkt.c 130 unsigned char mac[MAX_MAC_SIZE]; local
268 ssl2_mac(s,mac,0);
270 if ( (memcmp(mac,s->s2->mac_data,
528 /* set mac_size to mac size */
594 /* mac_size is the number of MAC bytes
s3_pkt.c 244 unsigned char *mac = NULL; local
339 /* We now have - encrypted [ MAC [ compressed [ plain ] ] ]
363 * the MAC computation anyway. */
373 /* r->length is now the compressed data plus mac */
393 /* check the MAC for rr->input (it's in mac_size bytes at the tail) */
397 mac = &rr->data[rr->length];
401 /* record (minus padding) is too short to contain a MAC */
411 i=s->method->ssl3_enc->mac(s,md,0);
412 if (mac == NULL || memcmp(md, mac, mac_size) != 0
    [all...]
  /onnv/onnv-gate/usr/src/cmd/wusbadm/
crypto_util.h 52 uint8_t mac[WUSB_DEV_MAC_LENGTH]; member in struct:wusb_cc_info
  /onnv/onnv-gate/usr/src/uts/common/fs/smbclnt/netsmb/
smb_sign.c 78 * Compute HMAC-MD5 of packet data, using the stored MAC key.
91 uchar_t mac[16]; local
108 uint32_t sig[2]; /* MAC signature, aligned! */
126 * Compute the MAC: MD5(concat(Key, message))
136 /* Digest the MAC Key */
171 digest.cd_length = sizeof (mac);
173 digest.cd_raw.iov_base = (char *)mac;
174 digest.cd_raw.iov_len = sizeof (mac);
181 * (first 8 bytes of the mac)
184 bcopy(mac, signature, SMBSIGLEN)
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/nxge/
nxge_espc.c 37 uint64_t mac[ETHERADDRL]; local
42 mac[j] = st_mac[i];
43 mac_addr |= (mac[j] << (j*8));
61 uint8_t port_num = nxgep->mac.portnum;
78 "Got MAC Addr: %2x:%2x:%2x:%2x:%2x%:%2x%c \n",
137 uint8_t port_num = nxgep->mac.portnum;
151 nxgep->mac.portmode = PORT_10G_FIBER;
155 nxgep->mac.portmode = PORT_10G_COPPER;
159 nxgep->mac.portmode = PORT_1G_FIBER;
163 nxgep->mac.portmode = PORT_1G_COPPER
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/e1000g/
e1000_82542.c 94 * e1000_init_mac_params_82542 - Init MAC func ptrs.
100 struct e1000_mac_info *mac = &hw->mac; local
108 mac->mta_reg_count = 128;
110 mac->rar_entry_count = E1000_RAR_ENTRIES;
115 mac->ops.get_bus_info = e1000_get_bus_info_82542;
117 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
119 mac->ops.reset_hw = e1000_reset_hw_82542;
121 mac->ops.init_hw = e1000_init_hw_82542;
123 mac->ops.setup_link = e1000_setup_link_82542
248 struct e1000_mac_info *mac = &hw->mac; local
323 struct e1000_mac_info *mac = &hw->mac; local
    [all...]
e1000_82540.c 90 switch (hw->mac.type) {
151 * e1000_init_mac_params_82540 - Init MAC func ptrs.
157 struct e1000_mac_info *mac = &hw->mac; local
180 mac->mta_reg_count = 128;
182 mac->rar_entry_count = E1000_RAR_ENTRIES;
187 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
189 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
191 mac->ops.reset_hw = e1000_reset_hw_82540;
193 mac->ops.init_hw = e1000_init_hw_82540
331 struct e1000_mac_info *mac = &hw->mac; local
464 struct e1000_mac_info *mac = &hw->mac; local
    [all...]
  /onnv/onnv-gate/usr/src/lib/librstp/common/
transmit.c 47 MAC_HEADER_T mac; member in struct:tx_tcn_bpdu_t
53 MAC_HEADER_T mac; member in struct:tx_stp_bpdu_t
60 MAC_HEADER_T mac; member in struct:tx_rstp_bpdu_t
102 STP_OUT_get_port_mac (port_index, bpdu_packet.mac.src_mac);
  /onnv/onnv-gate/usr/src/uts/common/fs/smbsrv/
smb_signing.c 27 * These routines provide the SMB MAC signing for the SMB server.
110 * Intializes MAC key based on the user session key and
139 /* MAC key = concat (SessKey, NTLMResponse) */
155 * Calculates MAC signature for the given buffer and returns
161 * concatenated MAC key and the SMB message.
183 unsigned char mac[16]; local
202 digest.cd_raw.iov_base = (char *)mac;
203 digest.cd_raw.iov_len = sizeof (mac);
300 bcopy(mac, mac_sign, SMB_SIG_SIZE);
312 * Calculates MAC signature for the request mbuf chai
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
emlxs_ip.c 187 uint8_t *mac; local
228 mac = nd->fc_srcname.IEEE;
229 ndlp = emlxs_node_find_mac(port, mac);
252 "Node not found. mac=%02x%02x%02x%02x%02x%02x",
253 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5])
    [all...]
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
wpa_enc.c 135 unsigned char *data, unsigned int data_len, unsigned char *mac)
138 (void) HMAC(EVP_sha1(), key, key_len, data, data_len, mac, &mac_len); local
144 unsigned char *addr[], unsigned int *len, unsigned char *mac)
161 hmac_sha1(key, key_len, buf, buf_len, mac);
242 uint8_t *addr[], size_t *len, uint8_t *mac)
259 hmac_md5(key, key_len, buf, buf_len, mac);
266 size_t data_len, uint8_t *mac)
269 (void) HMAC(EVP_md5(), key, key_len, data, data_len, mac, &mac_len); local
  /onnv/onnv-gate/usr/src/cmd/checknr/
checknr.c 158 static void chkcmd(char *line, char *mac);
159 static void nomatch(char *mac);
162 static void checkknown(char *mac);
164 static void addmac(char *mac);
165 static int binsrch(char *mac);
281 char mac[5]; /* The current macro or nroff command */ local
290 (void) strncpy(mac, line+1, 4);
291 if (isspace(mac[0])) {
294 } else if (isspace(mac[1])) {
295 mac[1] = 0
526 char *mac; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/file/
elf_read.c 420 int capn, mac; local
430 mac = EI_Ehdr.e_machine;
485 ELFCAP_FMT_SNGSPACE, mac);
  /onnv/onnv-gate/usr/src/uts/common/io/chxge/com/
ch_mac.c 37 /* Chelsio's MAC statistics. */
80 static int mac_intr_enable(struct cmac *mac)
84 if (t1_is_asic(mac->adapter)) {
87 /* We don't use the on chip MAC for ASIC products. */
92 mac_intr = t1_read_reg_4(mac->adapter, A_PL_ENABLE);
94 t1_write_reg_4(mac->adapter, A_PL_ENABLE, mac_intr);
96 mac_intr = t1_read_reg_4(mac->adapter,
98 mac_intr |= static_aPorts[mac->instance->index];
99 t1_write_reg_4(mac->adapter,
106 static int mac_intr_disable(struct cmac *mac)
375 struct cmac *mac; local
    [all...]
vsc7321.c 28 /* Driver for Vitesse VSC7321 (Meigs II) MAC */
90 /* Hard reset the MAC. This wipes out *all* configuration. */
99 val |= 0x80001; /* Turn on SPI4_EN, and the MAC itself */
242 struct cmac *mac; local
246 mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance));
247 if (!mac) return NULL;
249 mac->ops = &vsc7321_ops;
250 mac->instance = (cmac_instance *)(mac + 1)
    [all...]
vsc7326.c 28 /* Driver for Vitesse VSC7326 (Schaumburg) MAC */
70 CH_ERR("Invalid tpi read from MAC, breaking loop.\n");
94 /* Hard reset the MAC. This wipes out *all* configuration. */
104 val |= 0x1; /* Enable mac MAC itself */
384 static int mac_intr_handler(struct cmac *mac)
390 static int mac_intr_enable(struct cmac *mac)
396 static int mac_intr_disable(struct cmac *mac)
402 static int mac_intr_clear(struct cmac *mac)
407 /* Expect MAC address to be in network byte order. *
726 struct cmac *mac; local
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/xge/hal/xgehal/
xgehal-mgmtaux.c 1565 xge_hal_mac_config_t *mac; local
    [all...]
  /onnv/onnv-gate/usr/src/lib/udapl/udapl_tavor/common/
dapl_name_service.c 360 uchar_t *mac; local
408 mac = (uchar_t *)LLADDR(&ar.xarp_ha);
416 &((ipoib_mac_t *)mac)->ipoib_gidpref, sizeof (ib_gid_t));
433 "%02x", (int)mac[i] & 0xff);
452 uchar_t *mac; local
501 mac = (uchar_t *)lifr.lifr_nd.lnr_hdw_addr;
506 &((ipoib_mac_t *)mac)->ipoib_gidpref, sizeof (ib_gid_t));
523 "%02x", (int)mac[i] & 0xff);

Completed in 7019 milliseconds

1 2 3 4 5