Home
last modified time | relevance | path

Searched refs:cmac (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/crypto/openssl/crypto/modes/
H A Dccm128.c78 (*block) (ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad()
81 ctx->cmac.c[0] ^= (u8)(alen >> 8); in CRYPTO_ccm128_aad()
82 ctx->cmac.c[1] ^= (u8)alen; in CRYPTO_ccm128_aad()
86 ctx->cmac.c[0] ^= 0xFF; in CRYPTO_ccm128_aad()
87 ctx->cmac.c[1] ^= 0xFF; in CRYPTO_ccm128_aad()
88 ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad()
89 ctx->cmac.c[3] ^= (u8)(alen >> (48 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad()
90 ctx->cmac.c[4] ^= (u8)(alen >> (40 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad()
91 ctx->cmac.c[5] ^= (u8)(alen >> (32 % (sizeof(alen) * 8))); in CRYPTO_ccm128_aad()
92 ctx->cmac.c[6] ^= (u8)(alen >> 24); in CRYPTO_ccm128_aad()
[all …]
/freebsd/contrib/ntp/sntp/tests/
H A Dcrypto.c23 void VerifyLocalCMAC(struct key *cmac);
24 void VerifyOpenSSLCMAC(struct key *cmac);
106 struct key cmac; in test_MakeCMac()
108 cmac.next = NULL; in test_MakeCMac()
109 cmac.key_id = 30; in test_MakeCMac()
110 cmac.key_len = CMAC_LENGTH; in test_MakeCMac()
111 memcpy(&cmac.key_seq, "aes-128-cmac-seq", cmac.key_len); in test_MakeCMac()
112 memcpy(&cmac in test_MakeCMac()
97 struct key cmac; test_MakeCMac() local
178 struct key cmac; test_VerifyCMAC() local
192 VerifyOpenSSLCMAC(struct key * cmac) VerifyOpenSSLCMAC() argument
210 VerifyLocalCMAC(struct key * cmac) VerifyLocalCMAC() argument
[all...]
/freebsd/crypto/openssl/demos/mac/
H A DMakefile14 all: gmac hmac-sha512 cmac-aes256 poly1305
18 cmac-aes256: cmac-aes256.o
21 gmac hmac-sha512 cmac-aes256 poly1305:
25 $(RM) gmac hmac-sha512 cmac-aes256 poly1305 *.o
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_xgmac.c38 static inline int macidx(const struct cmac *mac) in macidx()
46 static inline int xgm_reset_ctrl(const struct cmac *mac) in xgm_reset_ctrl()
65 static void xaui_serdes_reset(struct cmac *mac) in xaui_serdes_reset()
95 void t3b_pcs_reset(struct cmac *mac) in t3b_pcs_reset()
106 void t3c_pcs_force_los(struct cmac *mac) in t3c_pcs_force_los()
139 int t3_mac_init(struct cmac *mac) in t3_mac_init()
219 static int t3_mac_reset(struct cmac *mac, int portspeed) in t3_mac_reset()
313 static void set_addr_filter(struct cmac *mac, int idx, const u8 *addr) in set_addr_filter()
333 int t3_mac_set_address(struct cmac *mac, unsigned int idx, u8 addr[6]) in t3_mac_set_address()
357 int t3_mac_set_num_ucast(struct cmac *mac, unsigned char n) in t3_mac_set_num_ucast()
[all …]
H A Dcxgb_common.h473 struct cmac { struct
711 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
728 void mac_prep(struct cmac *mac, adapter_t *adapter, int index);
752 int t3_mac_init(struct cmac *mac);
753 void t3b_pcs_reset(struct cmac *mac);
754 void t3c_pcs_force_los(struct cmac *mac);
755 void t3_mac_disable_exact_filters(struct cmac *mac);
756 void t3_mac_enable_exact_filters(struct cmac *mac);
757 int t3_mac_enable(struct cmac *mac, int which);
758 int t3_mac_disable(struct cmac *mac, int which);
[all …]
H A Dcxgb_t3_hw.c1435 static void t3_gate_rx_traffic(struct cmac *mac, u32 *rx_cfg, in t3_gate_rx_traffic()
1459 static void t3_open_rx_traffic(struct cmac *mac, u32 rx_cfg, in t3_open_rx_traffic()
1475 struct cmac *mac = &pi->mac; in t3_detect_link_fault()
1498 struct cmac *mac = &pi->mac; in t3_clear_faults()
1524 struct cmac *mac = &pi->mac; in t3_link_changed()
1671 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t3_link_start()
2155 struct cmac *mac; in mac_intr_handler()
4316 void mac_prep(struct cmac *mac, adapter_t *adapter, int index) in mac_prep()
H A Dcxgb_vsc7323.c284 const struct mac_stats *t3_vsc7323_update_stats(struct cmac *mac) in t3_vsc7323_update_stats()
/freebsd/crypto/openssl/providers/implementations/include/prov/
H A Dmacsignature.h23 int cmac; member
28 MAC_KEY *ossl_mac_key_new(OSSL_LIB_CTX *libctx, int cmac);
/freebsd/crypto/openssl/providers/implementations/signature/
H A Dmac_legacy_sig.c96 MAC_NEWCTX(cmac, "CMAC")
244 MAC_SETTABLE_CTX_PARAMS(cmac, "CMAC")
267 MAC_SIGNATURE_FUNCTIONS(cmac)
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c64 MAC_KEY *ossl_mac_key_new(OSSL_LIB_CTX *libctx, int cmac) in ossl_mac_key_new() argument
82 mackey->cmac = cmac; in ossl_mac_key_new()
219 if (key->cmac && !ossl_prov_cipher_load_from_params(&key->cipher, params, in mac_key_fromdata()
/freebsd/crypto/openssl/doc/man1/
H A Dopenssl-speed.pod.in15 [B<-cmac> I<algo>]
75 =item B<-cmac> I<cipher>
78 C<openssl speed -cmac aes128>.
/freebsd/crypto/openssl/crypto/cmac/
H A Dbuild.info3 $COMMON=cmac.c
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_fast.c770 u8 cmk[EAP_FAST_CMK_LEN], cmac[SHA1_MAC_LEN]; in eap_fast_process_crypto_binding() local
781 os_memcpy(cmac, _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding()
782 os_memset(_bind->compound_mac, 0, sizeof(cmac)); in eap_fast_process_crypto_binding()
787 res = os_memcmp_const(cmac, _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding()
789 cmac, sizeof(cmac)); in eap_fast_process_crypto_binding()
791 _bind->compound_mac, sizeof(cmac)); in eap_fast_process_crypto_binding()
794 os_memcpy(_bind->compound_mac, cmac, sizeof(cmac)); in eap_fast_process_crypto_binding()
/freebsd/crypto/openssl/providers/implementations/macs/
H A Dbuild.info16 IF[{- !$disabled{cmac} -}]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_fast.c1188 u8 cmac[SHA1_MAC_LEN]; in eap_fast_validate_crypto_binding() local
1220 os_memcpy(cmac, b->compound_mac, sizeof(cmac)); in eap_fast_validate_crypto_binding()
1221 os_memset(b->compound_mac, 0, sizeof(cmac)); in eap_fast_validate_crypto_binding()
1227 if (os_memcmp_const(cmac, b->compound_mac, sizeof(cmac)) != 0) { in eap_fast_validate_crypto_binding()
1230 b->compound_mac, sizeof(cmac)); in eap_fast_validate_crypto_binding()
/freebsd/crypto/openssl/crypto/aes/asm/
H A Daesni-x86.pl659 { my $cmac=$inout1;
673 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac
707 &xorps ($cmac,$rndkey0); # cmac^=inp
712 &aesenc ($cmac,$rndkey1);
716 &aesenc ($cmac,$rndkey0);
720 &aesenc ($cmac,$rndkey1);
724 &aesenclast ($cmac,$rndkey0);
736 &movups (&QWP(0,$out),$cmac);
761 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac
814 &xorps ($cmac,$in0); # cmac^=out
[all …]
/freebsd/crypto/openssl/include/crypto/
H A Daes_platform.h212 unsigned char cmac[16]);
219 unsigned char cmac[16]);
H A Dmodes.h155 } nonce, cmac; member
/freebsd/sys/dev/qlxgbe/
H A Dql_hw.c1786 q80_config_mac_addr_t *cmac; in qla_config_mac_addr() local
1799 cmac = (q80_config_mac_addr_t *)ha->hw.mbox; in qla_config_mac_addr()
1800 bzero(cmac, (sizeof (q80_config_mac_addr_t))); in qla_config_mac_addr()
1802 cmac->opcode = Q8_MBX_CONFIG_MAC_ADDR; in qla_config_mac_addr()
1803 cmac->count_version = sizeof (q80_config_mac_addr_t) >> 2; in qla_config_mac_addr()
1804 cmac->count_version |= Q8_MBX_CMD_VERSION; in qla_config_mac_addr()
1807 cmac->cmd = Q8_MBX_CMAC_CMD_ADD_MAC_ADDR; in qla_config_mac_addr()
1809 cmac->cmd = Q8_MBX_CMAC_CMD_DEL_MAC_ADDR; in qla_config_mac_addr()
1811 cmac->cmd |= Q8_MBX_CMAC_CMD_CAM_INGRESS; in qla_config_mac_addr()
1813 cmac->nmac_entries = num_mac; in qla_config_mac_addr()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dmodes.h43 unsigned char cmac[16]);
/freebsd/crypto/openssl/crypto/
H A Dbuild.info8 err comp http ocsp cms ts srp cmac ct async ess crmf cmp encode_decode \
/freebsd/crypto/openssl/providers/
H A Dfips.module.sources108 crypto/cmac/cmac.c
410 include/openssl/cmac.h
H A Dfips-sources.checksums108 0e1a41a2d81b5765bca3df448f60bf1fad91e485fe89dd65a7300ffc419e316d crypto/cmac/cmac.c
410 8e772c24b051e59d2f65339f54584e3e44165a3eaf997d497faea764990130f5 include/openssl/cmac.h
/freebsd/sys/dev/cxgb/
H A Dcxgb_adapter.h96 struct cmac mac;
/freebsd/secure/lib/libcrypto/
H A DMakefile162 SRCS+= cmac.c
565 INCS+= cast.h cmac.h cmp.h cmp_util.h cmperr.h cms.h cmserr.h comp.h comperr.h conf.h conf_api.h
643 ${LCRYPTO_SRC}/crypto/cmac \

12