Home
last modified time | relevance | path

Searched refs:macbuf (Results 1 – 25 of 78) sorted by relevance

1234

/dports/emulators/gxemul/gxemul-0.6.3/src/net/
H A Dnet_misc.cc88 void net_generate_unique_mac(struct machine *machine, unsigned char *macbuf) in net_generate_unique_mac() argument
90 if (macbuf == NULL || machine == NULL) { in net_generate_unique_mac()
97 macbuf[0] = machine->machine_type == MACHINE_SGI ? 0x08 : 0x10; in net_generate_unique_mac()
98 macbuf[1] = 0x20; in net_generate_unique_mac()
99 macbuf[2] = 0x30; in net_generate_unique_mac()
100 macbuf[3] = 0; in net_generate_unique_mac()
101 macbuf[4] = 0; in net_generate_unique_mac()
103 macbuf[5] = (machine->serial_nr << 4) + (machine->nr_of_nics << 1); in net_generate_unique_mac()
105 if (macbuf[0] & 1 || macbuf[5] & 1) { in net_generate_unique_mac()
/dports/sysutils/plconfig/plconfig-0.2/
H A Dplconfig.c65 char *format_mac_addr(u_char *addr, char *macbuf) { in format_mac_addr() argument
67 sprintf(macbuf, "%02x:%02x:%02x:%02x:%02x:%02x", in format_mac_addr()
70 return macbuf; in format_mac_addr()
96 char macbuf[20]; in dump_network_statistics() local
175 char macbuf[20]; in read_display_responses() local
196 format_mac_addr(&frameptr[6], macbuf)); in read_display_responses()
203 format_mac_addr(&frameptr[6], macbuf)); in read_display_responses()
208 format_mac_addr(&frameptr[6], macbuf)); in read_display_responses()
215 format_mac_addr(&frameptr[6], macbuf)); in read_display_responses()
221 format_mac_addr(&frameptr[6], macbuf)); in read_display_responses()
[all …]
/dports/devel/dev86/dev86-0.16.20/as/
H A Dmacro.c99 char * macbuf = asalloc(8); in pmacro() local
124 symptr->value_reg_or_op.value = (offset_t) macbuf; in pmacro()
161 macbuf = asrealloc(macbuf, maclen); in pmacro()
163 memcpy(macbuf+macoff, linebuf, len); in pmacro()
171 macbuf[macoff] = ETB; in pmacro()
172 symptr->value_reg_or_op.value = (offset_t) macbuf; in pmacro()
/dports/security/akmos/akmos-0.7.2/src/cli/
H A Dmac.c313 …tic int mac_proc(struct opt_mac_s *opt, char *path, uint8_t *buf, uint8_t *keybuf, uint8_t *macbuf)
355 err = akmos_mac_done(ctx, macbuf);
363 mac_print_hex(opt, path, macbuf);
365 mac_print_raw(macbuf, opt->maclen);
378 uint8_t *buf, *keybuf, *keypass, *macbuf;
382 keybuf = buf = macbuf = NULL;
417 err = amalloc(&macbuf, opt.maclen);
427 err = mac_proc(&opt, opt.input[i], buf, keybuf, macbuf);
429 err = mac_proc(&opt, NULL, buf, keybuf, macbuf);
446 if(macbuf)
[all …]
/dports/security/libgcrypt/libgcrypt-1.9.4/cipher/
H A Dcipher-cmac.c60 buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, inlen); in _gcry_cmac_write()
74 buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, n); in _gcry_cmac_write()
79 cipher_block_xor (ctx->u_iv.iv, ctx->u_iv.iv, ctx->macbuf, blocksize); in _gcry_cmac_write()
113 buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, n); in _gcry_cmac_write()
195 ctx->macbuf[count++] = 0x80; in _gcry_cmac_final()
197 ctx->macbuf[count++] = 0; in _gcry_cmac_final()
200 cipher_block_xor (ctx->macbuf, ctx->macbuf, subkey, blocksize); in _gcry_cmac_final()
202 cipher_block_xor (ctx->u_iv.iv, ctx->u_iv.iv, ctx->macbuf, blocksize); in _gcry_cmac_final()
H A Dcipher-ccm.c58 buf_cpy (&c->u_mode.ccm.macbuf[unused], inbuf, n); in do_cbc_mac()
71 memset (&c->u_mode.ccm.macbuf[unused], 0, n); in do_cbc_mac()
79 cipher_block_xor(c->u_iv.iv, c->u_iv.iv, c->u_mode.ccm.macbuf, in do_cbc_mac()
289 wipememory (c->u_mode.ccm.macbuf, 16); in _gcry_cipher_ccm_tag()
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/libgcrypt/cipher/
H A Dcipher-cmac.c60 buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, inlen); in _gcry_cmac_write()
74 buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, n); in _gcry_cmac_write()
79 cipher_block_xor (ctx->u_iv.iv, ctx->u_iv.iv, ctx->macbuf, blocksize); in _gcry_cmac_write()
113 buf_cpy (&ctx->macbuf[ctx->mac_unused], inbuf, n); in _gcry_cmac_write()
195 ctx->macbuf[count++] = 0x80; in _gcry_cmac_final()
197 ctx->macbuf[count++] = 0; in _gcry_cmac_final()
200 cipher_block_xor (ctx->macbuf, ctx->macbuf, subkey, blocksize); in _gcry_cmac_final()
202 cipher_block_xor (ctx->u_iv.iv, ctx->u_iv.iv, ctx->macbuf, blocksize); in _gcry_cmac_final()
/dports/www/kannel/gateway-1.4.4/test/
H A Dtest_hmac.c88 unsigned char macbuf[EVP_MAX_MD_SIZE], *p; in main() local
115 macbuf, &mac_len); in main()
118 macbuf[0] = 0; in main()
120 p = macbuf; in main()
/dports/devel/upp/upp/bazaar/ProtectClient/
H A DNetworkAdapter_POSIX.cpp121 char *macbuf = new char[len]; in GetNetworkAdaptersInfo() local
122 if (!macbuf) in GetNetworkAdaptersInfo()
127 if (sysctl(mib, 6, macbuf, (size_t*)&len, NULL, 0) != 0) in GetNetworkAdaptersInfo()
129 delete[] macbuf; in GetNetworkAdaptersInfo()
133 struct if_msghdr *ifm = (struct if_msghdr *)macbuf; in GetNetworkAdaptersInfo()
146 delete[] macbuf; in GetNetworkAdaptersInfo()
/dports/net/frr7-pythontools/frr-frr-7.5.1/zebra/
H A Dzebra_evpn_neigh.c235 sizeof(macbuf)), in zebra_evpn_local_neigh_ref_mac()
267 sizeof(macbuf)), in zebra_evpn_sync_neigh_dp_install()
288 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_sync_neigh_dp_install()
416 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_sync_neigh_static_chg()
457 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_hold_exp_cb()
488 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_start_hold_timer()
518 sizeof(macbuf)), in zebra_evpn_local_neigh_deref_mac()
566 prefix_mac2str(macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_is_bgp_seq_ok()
638 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_sync_neigh_del()
841 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_proc_sync_neigh_update()
[all …]
H A Dzebra_evpn_neigh.h168 char macbuf[ETHER_ADDR_STRLEN]; in zebra_evpn_neigh_stop_hold_timer() local
178 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_stop_hold_timer()
189 char macbuf[ETHER_ADDR_STRLEN]; in zebra_evpn_neigh_clear_sync_info() local
199 prefix_mac2str(&n->emac, macbuf, in zebra_evpn_neigh_clear_sync_info()
200 sizeof(macbuf)), in zebra_evpn_neigh_clear_sync_info()
H A Dzebra_evpn_mac.c1189 sizeof(macbuf)), in zebra_evpn_sync_mac_dp_install()
1203 sizeof(macbuf)), in zebra_evpn_sync_mac_dp_install()
1219 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_sync_mac_dp_install()
1273 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_mac_hold_exp_cb()
1303 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_mac_start_hold_timer()
1320 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_mac_stop_hold_timer()
1335 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_sync_mac_del()
1377 sizeof(macbuf)), in zebra_evpn_mac_is_bgp_seq_ok()
1391 sizeof(macbuf)), in zebra_evpn_mac_is_bgp_seq_ok()
1529 prefix_mac2str(macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_proc_sync_mac_update()
[all …]
/dports/net/frr7/frr-frr-7.5.1/zebra/
H A Dzebra_evpn_neigh.c235 sizeof(macbuf)), in zebra_evpn_local_neigh_ref_mac()
267 sizeof(macbuf)), in zebra_evpn_sync_neigh_dp_install()
288 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_sync_neigh_dp_install()
416 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_sync_neigh_static_chg()
457 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_hold_exp_cb()
488 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_start_hold_timer()
518 sizeof(macbuf)), in zebra_evpn_local_neigh_deref_mac()
566 prefix_mac2str(macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_is_bgp_seq_ok()
638 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_sync_neigh_del()
841 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_proc_sync_neigh_update()
[all …]
H A Dzebra_evpn_neigh.h168 char macbuf[ETHER_ADDR_STRLEN]; in zebra_evpn_neigh_stop_hold_timer() local
178 prefix_mac2str(&n->emac, macbuf, sizeof(macbuf)), in zebra_evpn_neigh_stop_hold_timer()
189 char macbuf[ETHER_ADDR_STRLEN]; in zebra_evpn_neigh_clear_sync_info() local
199 prefix_mac2str(&n->emac, macbuf, in zebra_evpn_neigh_clear_sync_info()
200 sizeof(macbuf)), in zebra_evpn_neigh_clear_sync_info()
H A Dzebra_evpn_mac.c1189 sizeof(macbuf)), in zebra_evpn_sync_mac_dp_install()
1203 sizeof(macbuf)), in zebra_evpn_sync_mac_dp_install()
1219 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_sync_mac_dp_install()
1273 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_mac_hold_exp_cb()
1303 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_mac_start_hold_timer()
1320 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_mac_stop_hold_timer()
1335 prefix_mac2str(&mac->macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_sync_mac_del()
1377 sizeof(macbuf)), in zebra_evpn_mac_is_bgp_seq_ok()
1391 sizeof(macbuf)), in zebra_evpn_mac_is_bgp_seq_ok()
1529 prefix_mac2str(macaddr, macbuf, sizeof(macbuf)), in zebra_evpn_proc_sync_mac_update()
[all …]
/dports/net/p5-Net-SSH-Perl/Net-SSH-Perl-2.14/lib/Net/SSH/Perl/
H A DPacket.pm203 my ($macbuf,$p_str);
207 $macbuf = $mac->hmac(pack("N", $seqnr) . $p_str);
227 $macbuf = $mac->hmac(pack("N", $seqnr) . $buffer->bytes);
231 unless $macbuf eq $stored_mac;
365 my($macbuf);
368 $macbuf = $mac->hmac(pack("N", $seqnr) . $data);
373 $output->append($macbuf) if $mac && $mac->enabled;
/dports/misc/rump/buildrump.sh-b914579/src/sys/net/agr/
H A Dieee8023ad_lacp_debug.c68 char macbuf[LACP_MACSTR_MAX+1]; in lacp_format_systemid() local
72 lacp_format_mac(sysid->lsi_mac, macbuf, sizeof(macbuf))); in lacp_format_systemid()
/dports/security/opensc/OpenSC-0.22.0/src/libopensc/
H A Dcwa14890.c1378 u8 macbuf[8]; /* to store and compute CC */ in cwa_encode_apdu() local
1523 DES_ecb_encrypt((const_DES_cblock *) macbuf, in cwa_encode_apdu()
1524 (DES_cblock *) macbuf, &k1, DES_ENCRYPT); in cwa_encode_apdu()
1527 macbuf[j] ^= ccbuf[i + j]; in cwa_encode_apdu()
1530 DES_ecb2_encrypt((const_DES_cblock *) macbuf, (DES_cblock *) macbuf, in cwa_encode_apdu()
1593 u8 macbuf[8]; /* where to calculate mac */ in cwa_decode_response() local
1728 DES_ecb_encrypt((const_DES_cblock *) macbuf, in cwa_decode_response()
1729 (DES_cblock *) macbuf, &k1, DES_ENCRYPT); in cwa_decode_response()
1732 macbuf[j] ^= ccbuf[i + j]; in cwa_decode_response()
1735 DES_ecb2_encrypt((const_DES_cblock *) macbuf, (DES_cblock *) macbuf, in cwa_decode_response()
[all …]
/dports/security/snort3/snort3-3.1.19.0/src/network_inspectors/rna/
H A Drna_logger.cc52 char macbuf[19] = { '\0' }; in rna_logger_message() local
54 snprintf(macbuf, 19, "%02X:%02X:%02X:%02X:%02X:%02X", in rna_logger_message()
71 rle.type, rle.subtype, macbuf, ip.ntop(ipbuf), rle.lease, in rna_logger_message()
76 rle.type, rle.subtype, macbuf, ip.ntop(ipbuf)); in rna_logger_message()
149 rle.type, rle.subtype, macbuf); in rna_logger_message()
/dports/security/krb5-appl/krb5-appl-1.0.3/gssftp/ftp/
H A Druserpass.c257 macros[macnum].mac_start = macbuf;
263 while (tmp != macbuf + 4096) {
278 if (tmp == macbuf + 4096) {
/dports/ftp/bsdftpd-ssl/bsdftpd-ssl-1.1.0/ftp/
H A Druserpass.c229 macros[macnum].mac_start = macbuf;
236 while (tmp != macbuf + 4096) {
252 if (tmp == macbuf + 4096) {
/dports/ftp/tnftp/tnftp-20210827/src/
H A Druserpass.c228 macros[macnum].mac_start = macbuf; in ruserpass()
235 while (tmp != macbuf + 4096) { in ruserpass()
256 if (tmp == macbuf + 4096) { in ruserpass()
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/sys/linux/net/
H A Druserpass.c257 macros[macnum].mac_start = macbuf;
263 while (tmp != macbuf + 4096) {
278 if (tmp == macbuf + 4096) {
/dports/games/libtmcg/libTMCG-1.3.18/src/
H A Daiounicast_select.cc490 unsigned char *macbuf = new unsigned char[macbuflen]; in Send() local
491 err = gcry_mac_read(*mac_out[i_in], macbuf, &macbuflen); in Send()
496 delete [] macbuf; in Send()
504 delete [] macbuf; in Send()
529 delete [] macbuf; in Send()
538 ssize_t num = write(fd_out[i_in], macbuf + realnum, in Send()
552 delete [] macbuf; in Send()
566 delete [] macbuf; in Send()
H A Daiounicast_nonblock.cc433 unsigned char *macbuf = new unsigned char[macbuflen]; in Send() local
434 err = gcry_mac_read(*mac_out[i_in], macbuf, &macbuflen); in Send()
439 delete [] macbuf; in Send()
447 delete [] macbuf; in Send()
454 ssize_t num = write(fd_out[i_in], macbuf + realnum, in Send()
470 delete [] macbuf; in Send()
478 delete [] macbuf; in Send()

1234