Searched refs:mac (Results 201 - 225 of 710) sorted by relevance

1234567891011>>

/freebsd-13-stable/crypto/openssl/crypto/poly1305/
H A Dpoly1305.c215 static void poly1305_emit(void *ctx, unsigned char mac[16], argument
241 /* mac = (h + nonce) % (2^128) */
245 U64TO8(mac + 0, h0);
246 U64TO8(mac + 8, h1);
381 static void poly1305_emit(void *ctx, unsigned char mac[16], argument
415 /* mac = (h + nonce) % (2^128) */
421 U32TO8(mac + 0, h0);
422 U32TO8(mac + 4, h1);
423 U32TO8(mac + 8, h2);
424 U32TO8(mac
512 Poly1305_Final(POLY1305 *ctx, unsigned char mac[16]) argument
[all...]
/freebsd-13-stable/sys/dev/cxgb/common/
H A Dcxgb_common.h713 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
730 void mac_prep(struct cmac *mac, adapter_t *adapter, int index);
754 int t3_mac_init(struct cmac *mac);
755 void t3b_pcs_reset(struct cmac *mac);
756 void t3c_pcs_force_los(struct cmac *mac);
757 void t3_mac_disable_exact_filters(struct cmac *mac);
758 void t3_mac_enable_exact_filters(struct cmac *mac);
759 int t3_mac_enable(struct cmac *mac, int which);
760 int t3_mac_disable(struct cmac *mac, int which);
761 int t3_mac_set_mtu(struct cmac *mac, unsigne
[all...]
/freebsd-13-stable/sys/dev/ixgbe/
H A Dif_ix.c574 switch (adapter->hw.mac.type) {
689 if (adapter->hw.mac.type == ixgbe_mac_82598EB) {
750 if (adapter->hw.mac.type != ixgbe_mac_82598EB) {
822 switch (hw->mac.type) {
831 switch (hw->mac.type) {
842 if (hw->mac.type != ixgbe_mac_82598EB) {
932 if (hw->mac.type != ixgbe_mac_82598EB)
998 iflib_set_mac(ctx, hw->mac.addr);
999 switch (adapter->hw.mac.type) {
1024 if (adapter->hw.mac
[all...]
/freebsd-13-stable/tools/tools/net80211/stumbler/
H A Dstumbler.c80 unsigned char mac[6]; member in struct:node_info
111 char* mac2str(unsigned char* mac) { argument
115 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
224 mac2str(node->mac), wep2str(node->wep),
408 mvaddstr(y, x, mac2str(node->mac));
[all...]
/freebsd-13-stable/sys/dev/bwi/
H A Dif_bwi.c360 struct bwi_mac *mac; local
423 mac = &sc->sc_mac[i];
424 error = bwi_regwin_switch(sc, &mac->mac_regwin, &old);
428 error = bwi_mac_lateattach(mac);
441 mac = &sc->sc_mac[0];
442 phy = &mac->mac_phy;
450 error = bwi_mac_fw_alloc(mac);
587 const uint8_t mac[IEEE80211_ADDR_LEN])
610 ieee80211_media_status, mac);
889 KASSERT(sc->sc_nmac > 0, ("no mac'
584 bwi_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit, enum ieee80211_opmode opmode, int flags, const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t mac[IEEE80211_ADDR_LEN]) argument
906 bwi_bus_init(struct bwi_softc *sc, struct bwi_mac *mac) argument
1212 struct bwi_mac *mac; local
1294 struct bwi_mac *mac; local
1460 struct bwi_mac *mac; local
1510 struct bwi_mac *mac; local
1689 struct bwi_mac *mac; local
1725 struct bwi_mac *mac; local
1754 struct bwi_mac *mac; local
2916 struct bwi_mac *mac; local
3107 struct bwi_mac *mac; local
3665 struct bwi_mac *mac; local
3697 struct bwi_mac *mac; local
3716 struct bwi_mac *mac; local
3737 struct bwi_mac *mac; local
3749 struct bwi_mac *mac; local
[all...]
/freebsd-13-stable/contrib/wpa/src/crypto/
H A Daes-siv.c65 size_t num_elem, const u8 *addr[], size_t *len, u8 *mac)
79 return omac1_aes_vector(key, key_len, 1, data, data_len, mac);
104 ret = omac1_aes_vector(key, key_len, 1, data, &len[i], mac);
115 return omac1_aes_vector(key, key_len, 1, data, data_len, mac);
64 aes_s2v(const u8 *key, size_t key_len, size_t num_elem, const u8 *addr[], size_t *len, u8 *mac) argument
/freebsd-13-stable/crypto/openssl/crypto/pkcs12/
H A Dp12_npas.c42 /* Check the mac */
66 unsigned char mac[EVP_MAX_MD_SIZE]; local
111 if (!PKCS12_gen_mac(p12, newpass, -1, mac, &maclen))
113 X509_SIG_getm(p12->mac->dinfo, NULL, &macoct);
114 if (!ASN1_OCTET_STRING_set(macoct, mac, maclen))
/freebsd-13-stable/lib/libveriexec/
H A Dveriexec_check.c32 #include <sys/mac.h>
/freebsd-13-stable/contrib/ofed/libmlx4/
H A Dwqe.h97 uint8_t mac[6]; member in struct:mlx4_wqe_datagram_seg
/freebsd-13-stable/sys/mips/atheros/
H A Dar71xx_machdep.c169 const char *mac; local
179 mac = (const char *) MIPS_PHYS_TO_KSEG1(eeprom_mac_addr);
186 macaddr[i] = strtol(&(mac[i*3]), NULL, 16);
191 macaddr[i] = mac[i];
247 * ar71xx_mac_map.X.offset=<mac address value offset>
/freebsd-13-stable/sys/security/mac/
H A Dmac_cred.c58 #include <sys/mac.h>
74 #include <security/mac/mac_framework.h>
75 #include <security/mac/mac_internal.h>
76 #include <security/mac/mac_policy.h>
/freebsd-13-stable/sys/security/mac_bsdextended/
H A Dugidfw_system.c59 #include <security/mac/mac_policy.h>
/freebsd-13-stable/sys/contrib/libsodium/test/default/
H A Daead_xchacha20poly1305.c33 unsigned char *mac = (unsigned char *) sodium_malloc(crypto_aead_xchacha20poly1305_ietf_ABYTES); local
56 mac, &found_maclen,
79 c, MLEN, mac,
174 sodium_free(mac);
/freebsd-13-stable/crypto/openssh/regress/unittests/hostkeys/
H A DMakefile9 SRCS+=ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
/freebsd-13-stable/crypto/openssh/regress/unittests/sshkey/
H A DMakefile9 SRCS+=ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
/freebsd-13-stable/usr.sbin/getfmac/
H A Dgetfmac.c39 #include <sys/mac.h>
/freebsd-13-stable/usr.sbin/getpmac/
H A Dgetpmac.c39 #include <sys/mac.h>
/freebsd-13-stable/tools/tools/net80211/wlanstats/
H A Dmain.c171 const uint8_t *mac = NULL; local
198 mac = ea->octet;
213 wf->setstamac(wf, mac);
245 if (mac == NULL && mode == IEEE80211_M_STA)
/freebsd-13-stable/contrib/sendmail/src/
H A Dtls.c1591 ** mac -- macro storage
1600 cert_fp(cert, evp_digest, mac, macro)
1603 MACROS_T *mac;
1615 macdefine(mac, A_TEMP, macid(macro), "");
1627 macdefine(mac, A_TEMP, macid(macro), md5h);
1743 ** mac -- macro storage
1754 tls_get_info(ssl, srv, host, mac, certreq)
1758 MACROS_T *mac;
1774 macdefine(mac, A_TEMP, macid("{cipher}"),
1778 macdefine(mac, A_TEM
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c433 uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out)
472 iovecs[3].iov_base = mac;
499 /* encrypt the keys and store the resulting ciphertext and mac */
514 uint8_t *mac, zio_crypt_key_t *key)
556 iovecs[3].iov_base = mac;
742 zio_crypt_encode_mac_bp(blkptr_t *bp, uint8_t *mac) argument
750 bcopy(mac, &bp->blk_cksum.zc_word[2], sizeof (uint64_t));
751 bcopy(mac + sizeof (uint64_t), &bp->blk_cksum.zc_word[3],
754 bcopy(mac, &val64, sizeof (uint64_t));
757 bcopy(mac
432 zio_crypt_key_wrap(crypto_key_t *cwkey, zio_crypt_key_t *key, uint8_t *iv, uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out) argument
512 zio_crypt_key_unwrap(crypto_key_t *cwkey, uint64_t crypt, uint64_t version, uint64_t guid, uint8_t *keydata, uint8_t *hmac_keydata, uint8_t *iv, uint8_t *mac, zio_crypt_key_t *key) argument
763 zio_crypt_decode_mac_bp(const blkptr_t *bp, uint8_t *mac) argument
789 zio_crypt_encode_mac_zil(void *data, uint8_t *mac) argument
799 zio_crypt_decode_mac_zil(const void *data, uint8_t *mac) argument
1608 zio_crypt_init_uios(boolean_t encrypt, uint64_t version, dmu_object_type_t ot, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uint8_t *mac, zfs_uio_t *puio, zfs_uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1664 zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf, boolean_t *no_crypt) argument
1778 zio_do_crypt_abd(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) argument
[all...]
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c395 /* the mac will always be the last iovec_t in the cipher uio */
479 uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out)
508 cipher_iovecs[2].iov_base = mac;
535 /* encrypt the keys and store the resulting ciphertext and mac */
550 uint8_t *mac, zio_crypt_key_t *key)
576 cipher_iovecs[2].iov_base = mac;
802 zio_crypt_encode_mac_bp(blkptr_t *bp, uint8_t *mac) argument
810 bcopy(mac, &bp->blk_cksum.zc_word[2], sizeof (uint64_t));
811 bcopy(mac + sizeof (uint64_t), &bp->blk_cksum.zc_word[3],
814 bcopy(mac,
478 zio_crypt_key_wrap(crypto_key_t *cwkey, zio_crypt_key_t *key, uint8_t *iv, uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out) argument
548 zio_crypt_key_unwrap(crypto_key_t *cwkey, uint64_t crypt, uint64_t version, uint64_t guid, uint8_t *keydata, uint8_t *hmac_keydata, uint8_t *iv, uint8_t *mac, zio_crypt_key_t *key) argument
823 zio_crypt_decode_mac_bp(const blkptr_t *bp, uint8_t *mac) argument
849 zio_crypt_encode_mac_zil(void *data, uint8_t *mac) argument
859 zio_crypt_decode_mac_zil(const void *data, uint8_t *mac) argument
1813 zio_crypt_init_uios(boolean_t encrypt, uint64_t version, dmu_object_type_t ot, uint8_t *plainbuf, uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, uint8_t *mac, zfs_uio_t *puio, zfs_uio_t *cuio, uint_t *enc_len, uint8_t **authbuf, uint_t *auth_len, boolean_t *no_crypt) argument
1865 zio_do_crypt_data(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf, boolean_t *no_crypt) argument
1989 zio_do_crypt_abd(boolean_t encrypt, zio_crypt_key_t *key, dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd, boolean_t *no_crypt) argument
[all...]
/freebsd-13-stable/usr.sbin/setfmac/
H A Dsetfmac.c37 #include <sys/mac.h>
402 mac_t mac; local
476 if (mac_from_text(&mac, macstr))
478 if ((hflag == FTS_PHYSICAL ? mac_set_link(ftsent->fts_accpath, mac) :
479 mac_set_file(ftsent->fts_accpath, mac)) != 0) {
481 mac_free(mac);
487 mac_free(mac);
/freebsd-13-stable/tools/tools/net80211/wlanwds/
H A Dwlanwds.c176 ether_sprintf(const uint8_t mac[IEEE80211_ADDR_LEN]) argument
181 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
268 * Fetch the mac address configured for a given ifnet.
365 * we create a WDS vap for the specified mac address
/freebsd-13-stable/contrib/tcpdump/
H A Dprint-mptcp.c92 uint8_t mac[8]; member in struct:mp_join::__anon6204::__anon6206
96 uint8_t mac[20]; member in struct:mp_join::__anon6204::__anon6207
224 EXTRACT_64BITS(mpj->u.synack.mac),
230 for (i = 0; i < sizeof(mpj->u.ack.mac); ++i)
231 ND_PRINT((ndo, "%02x", mpj->u.ack.mac[i]));
/freebsd-13-stable/contrib/bearssl/src/ssl/
H A Dssl_rec_cbc.c38 br_hmac_key_init(&cc->mac, dig_impl, mac_key, mac_key_len);
204 br_hmac_init(&hc, &cc->mac, cc->mac_len);
278 br_hmac_key_init(&cc->mac, dig_impl, mac_key, mac_key_len);
343 br_hmac_init(&hc, &cc->mac, blen);
384 br_hmac_init(&hc, &cc->mac, cc->mac_len);

Completed in 344 milliseconds

1234567891011>>