| /freebsd/crypto/openssl/crypto/modes/ |
| H A D | ccm128.c | 78 (*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 D | crypto.c | 23 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 D | build.info | 9 cmac-aes256 \ 20 INCLUDE[cmac-aes256]=../../include 21 SOURCE[cmac-aes256]=cmac-aes256.c 22 DEPEND[cmac-aes256]=../../libcrypto
|
| H A D | Makefile | 9 cmac-aes256 \ 20 cmac-aes256: cmac-aes256.o
|
| /freebsd/sys/dev/cxgb/common/ |
| H A D | cxgb_xgmac.c | 38 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 D | cxgb_common.h | 473 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 …]
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/ |
| H A D | Makefile.in | 11 cmac.o \ 17 $(OUTPRE)cmac.$(OBJEXT) \ 23 $(srcdir)/cmac.c \
|
| H A D | deps | 4 cmac.so cmac.po $(OUTPRE)cmac.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \ 14 cmac.c
|
| /freebsd/crypto/krb5/src/lib/crypto/openssl/ |
| H A D | Makefile.in | 7 cmac.o \ 14 $(OUTPRE)cmac.$(OBJEXT) \ 21 $(srcdir)/cmac.c \
|
| H A D | deps | 4 cmac.so cmac.po $(OUTPRE)cmac.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \ 14 cmac.c
|
| /freebsd/crypto/openssl/providers/implementations/include/prov/ |
| H A D | macsignature.h | 22 int cmac; member 27 MAC_KEY *ossl_mac_key_new(OSSL_LIB_CTX *libctx, int cmac);
|
| /freebsd/crypto/openssl/providers/implementations/signature/ |
| H A D | mac_legacy_sig.c | 94 MAC_NEWCTX(cmac, "CMAC") 242 MAC_SETTABLE_CTX_PARAMS(cmac, "CMAC") 265 MAC_SIGNATURE_FUNCTIONS(cmac)
|
| /freebsd/crypto/openssl/providers/implementations/keymgmt/ |
| H A D | mac_legacy_kmgmt.c | 64 MAC_KEY *ossl_mac_key_new(OSSL_LIB_CTX *libctx, int cmac) in ossl_mac_key_new() argument 80 mackey->cmac = cmac; in ossl_mac_key_new() 211 if (key->cmac && !ossl_prov_cipher_load_from_params(&key->cipher, params, key->libctx)) { in mac_key_fromdata()
|
| /freebsd/crypto/openssl/crypto/cmac/ |
| H A D | build.info | 3 $COMMON=cmac.c
|
| /freebsd/krb5/lib/crypto/openssl/ |
| H A D | Makefile.inc | 12 SRCS+= cmac.c \
|
| /freebsd/contrib/wpa/src/eap_peer/ |
| H A D | eap_fast.c | 770 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/doc/man1/ |
| H A D | openssl-speed.pod.in | 16 [B<-cmac> I<algo>] 86 =item B<-cmac> I<cipher> 89 C<openssl speed -cmac aes128>.
|
| /freebsd/crypto/openssl/providers/implementations/macs/ |
| H A D | build.info | 16 IF[{- !$disabled{cmac} -}]
|
| /freebsd/contrib/wpa/src/eap_server/ |
| H A D | eap_server_fast.c | 1188 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 D | aesni-x86.pl | 659 { 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/sys/dev/qlxgbe/ |
| H A D | ql_hw.c | 1786 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/crypto/ |
| H A D | modes.h | 163 } nonce, cmac; member
|
| H A D | aes_platform.h | 262 unsigned char cmac[16]); 269 unsigned char cmac[16]);
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | modes.h | 43 unsigned char cmac[16]);
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | CMAC_CTX.pod | 12 #include <openssl/cmac.h>
|