/third_party/openssl/test/ssl-tests/ |
D | 19-mac-then-encrypt.conf | 5 test-0 = 0-disable-encrypt-then-mac-server-sha 6 test-1 = 1-disable-encrypt-then-mac-client-sha 7 test-2 = 2-disable-encrypt-then-mac-both-sha 8 test-3 = 3-disable-encrypt-then-mac-server-sha2 9 test-4 = 4-disable-encrypt-then-mac-client-sha2 10 test-5 = 5-disable-encrypt-then-mac-both-sha2 13 [0-disable-encrypt-then-mac-server-sha] 14 ssl_conf = 0-disable-encrypt-then-mac-server-sha-ssl 16 [0-disable-encrypt-then-mac-server-sha-ssl] 17 server = 0-disable-encrypt-then-mac-server-sha-server [all …]
|
/third_party/openssl/crypto/pkcs12/ |
D | p12_mutl.c | 20 return p12->mac ? 1 : 0; in PKCS12_mac_present() 29 if (p12->mac) { in PKCS12_get0_mac() 30 X509_SIG_get0(p12->mac->dinfo, pmacalg, pmac); in PKCS12_get0_mac() 32 *psalt = p12->mac->salt; in PKCS12_get0_mac() 34 *piter = p12->mac->iter; in PKCS12_get0_mac() 71 unsigned char *mac, unsigned int *maclen, in pkcs12_gen_mac() argument 96 salt = p12->mac->salt->data; in pkcs12_gen_mac() 97 saltlen = p12->mac->salt->length; in pkcs12_gen_mac() 98 if (!p12->mac->iter) in pkcs12_gen_mac() 101 iter = ASN1_INTEGER_get(p12->mac->iter); in pkcs12_gen_mac() [all …]
|
/third_party/boost/libs/iostreams/test/ |
D | newline_test.cpp | 65 const std::string mac = variable 148 BOOST_CHECK(test_input_filter(newline_filter(newline::posix), mac, posix)); in read_newline_filter() 155 BOOST_CHECK(test_input_filter(newline_filter(newline::dos), mac, dos)); in read_newline_filter() 160 BOOST_CHECK(test_input_filter(newline_filter(newline::mac), posix, mac)); in read_newline_filter() 161 BOOST_CHECK(test_input_filter(newline_filter(newline::mac), dos, mac)); in read_newline_filter() 162 BOOST_CHECK(test_input_filter(newline_filter(newline::mac), mac, mac)); in read_newline_filter() 163 BOOST_CHECK(test_input_filter(newline_filter(newline::mac), mixed, mac)); in read_newline_filter() 202 BOOST_CHECK(my_test_output_filter(newline_filter(newline::posix), mac, posix)); in write_newline_filter() 209 BOOST_CHECK(my_test_output_filter(newline_filter(newline::dos), mac, dos)); in write_newline_filter() 214 BOOST_CHECK(my_test_output_filter(newline_filter(newline::mac), posix, mac)); in write_newline_filter() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_nettle.c | 52 const u8 *addr[], const size_t *len, u8 *mac) in nettle_digest_vector() argument 66 alg->digest(ctx, alg->digest_size, mac); in nettle_digest_vector() 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 74 return nettle_digest_vector(&nettle_md4, num_elem, addr, len, mac); in md4_vector() 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 80 return nettle_digest_vector(&nettle_md5, num_elem, addr, len, mac); in md5_vector() 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 86 return nettle_digest_vector(&nettle_sha1, num_elem, addr, len, mac); in sha1_vector() 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 92 return nettle_digest_vector(&nettle_sha256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_gnutls.c | 21 const u8 *addr[], const size_t *len, u8 *mac) in gnutls_digest_vector() argument 36 memcpy(mac, p, gcry_md_get_algo_dlen(algo)); in gnutls_digest_vector() 42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 return gnutls_digest_vector(GCRY_MD_MD4, num_elem, addr, len, mac); in md4_vector() 71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 73 return gnutls_digest_vector(GCRY_MD_MD5, num_elem, addr, len, mac); in md5_vector() 77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 79 return gnutls_digest_vector(GCRY_MD_SHA1, num_elem, addr, len, mac); in sha1_vector() 83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 85 return gnutls_digest_vector(GCRY_MD_SHA256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_linux.c | 60 u8 *mac, size_t mac_len) in linux_af_alg_hash_vector() argument 102 res = recv(t, mac, mac_len, 0); in linux_af_alg_hash_vector() 125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 128 mac, 16); in md4_vector() 132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 135 mac, MD5_MAC_LEN); in md5_vector() 140 u8 *mac) in sha1_vector() argument 143 mac, SHA1_MAC_LEN); in sha1_vector() 148 u8 *mac) in sha256_vector() argument 151 mac, SHA256_MAC_LEN); in sha256_vector() [all …]
|
D | crypto_internal.c | 179 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) in crypto_hash_finish() argument 187 if (mac == NULL || len == NULL) { in crypto_hash_finish() 200 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish() 209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish() 219 sha256_done(&ctx->u.sha256, mac); in crypto_hash_finish() 230 sha384_done(&ctx->u.sha384, mac); in crypto_hash_finish() 241 sha512_done(&ctx->u.sha512, mac); in crypto_hash_finish() 252 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish() 261 MD5Update(&ctx->u.md5, mac, 16); in crypto_hash_finish() 262 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish() [all …]
|
D | aes-omac1.c | 44 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_vector() argument 114 aes_encrypt(ctx, pad, mac); in omac1_aes_vector() 134 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_128_vector() argument 136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector() 152 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_128() argument 154 return omac1_aes_128_vector(key, 1, &data, &data_len, mac); in omac1_aes_128() 170 int omac1_aes_256(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_256() argument 172 return omac1_aes_vector(key, 32, 1, &data, &data_len, mac); in omac1_aes_256()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_nettle.c | 52 const u8 *addr[], const size_t *len, u8 *mac) in nettle_digest_vector() argument 66 alg->digest(ctx, alg->digest_size, mac); in nettle_digest_vector() 72 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 74 return nettle_digest_vector(&nettle_md4, num_elem, addr, len, mac); in md4_vector() 78 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 80 return nettle_digest_vector(&nettle_md5, num_elem, addr, len, mac); in md5_vector() 84 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 86 return nettle_digest_vector(&nettle_sha1, num_elem, addr, len, mac); in sha1_vector() 90 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 92 return nettle_digest_vector(&nettle_sha256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_gnutls.c | 21 const u8 *addr[], const size_t *len, u8 *mac) in gnutls_digest_vector() argument 36 memcpy(mac, p, gcry_md_get_algo_dlen(algo)); in gnutls_digest_vector() 42 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 44 return gnutls_digest_vector(GCRY_MD_MD4, num_elem, addr, len, mac); in md4_vector() 71 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 73 return gnutls_digest_vector(GCRY_MD_MD5, num_elem, addr, len, mac); in md5_vector() 77 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha1_vector() argument 79 return gnutls_digest_vector(GCRY_MD_SHA1, num_elem, addr, len, mac); in sha1_vector() 83 int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in sha256_vector() argument 85 return gnutls_digest_vector(GCRY_MD_SHA256, num_elem, addr, len, mac); in sha256_vector() [all …]
|
D | crypto_linux.c | 60 u8 *mac, size_t mac_len) in linux_af_alg_hash_vector() argument 102 res = recv(t, mac, mac_len, 0); in linux_af_alg_hash_vector() 125 int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md4_vector() argument 128 mac, 16); in md4_vector() 132 int md5_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac) in md5_vector() argument 135 mac, MD5_MAC_LEN); in md5_vector() 140 u8 *mac) in sha1_vector() argument 143 mac, SHA1_MAC_LEN); in sha1_vector() 148 u8 *mac) in sha256_vector() argument 151 mac, SHA256_MAC_LEN); in sha256_vector() [all …]
|
D | crypto_internal.c | 179 int crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) in crypto_hash_finish() argument 187 if (mac == NULL || len == NULL) { in crypto_hash_finish() 200 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish() 209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish() 219 sha256_done(&ctx->u.sha256, mac); in crypto_hash_finish() 230 sha384_done(&ctx->u.sha384, mac); in crypto_hash_finish() 241 sha512_done(&ctx->u.sha512, mac); in crypto_hash_finish() 252 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish() 261 MD5Update(&ctx->u.md5, mac, 16); in crypto_hash_finish() 262 MD5Final(mac, &ctx->u.md5); in crypto_hash_finish() [all …]
|
D | aes-omac1.c | 44 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_vector() argument 114 aes_encrypt(ctx, pad, mac); in omac1_aes_vector() 134 const u8 *addr[], const size_t *len, u8 *mac) in omac1_aes_128_vector() argument 136 return omac1_aes_vector(key, 16, num_elem, addr, len, mac); in omac1_aes_128_vector() 152 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_128() argument 154 return omac1_aes_128_vector(key, 1, &data, &data_len, mac); in omac1_aes_128() 170 int omac1_aes_256(const u8 *key, const u8 *data, size_t data_len, u8 *mac) in omac1_aes_256() argument 172 return omac1_aes_vector(key, 32, 1, &data, &data_len, mac); in omac1_aes_256()
|
D | sha256.c | 27 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha256_vector() argument 73 if (sha256_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha256_vector() 85 _addr[1] = mac; in hmac_sha256_vector() 87 return sha256_vector(2, _addr, _len, mac); in hmac_sha256_vector() 101 size_t data_len, u8 *mac) in hmac_sha256() argument 103 return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha256()
|
D | sha512.c | 27 const u8 *addr[], const size_t *len, u8 *mac) in hmac_sha512_vector() argument 73 if (sha512_vector(1 + num_elem, _addr, _len, mac) < 0) in hmac_sha512_vector() 85 _addr[1] = mac; in hmac_sha512_vector() 87 return sha512_vector(2, _addr, _len, mac); in hmac_sha512_vector() 101 size_t data_len, u8 *mac) in hmac_sha512() argument 103 return hmac_sha512_vector(key, key_len, 1, &data, &data_len, mac); in hmac_sha512()
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | gstrtph263pay.c | 966 GstRtpH263PayMB *mac; in gst_rtp_h263_pay_B_mbfinder() local 971 mac = gst_rtp_h263_pay_mb_new (&boundry, mba); in gst_rtp_h263_pay_B_mbfinder() 973 if (mac->sbit == 8) { in gst_rtp_h263_pay_B_mbfinder() 974 mac->start++; in gst_rtp_h263_pay_B_mbfinder() 976 mac->sbit = 0; in gst_rtp_h263_pay_B_mbfinder() 980 "current_pos:%p, end:%p, rest_bits:%d, window:0x%08x", mac->start, in gst_rtp_h263_pay_B_mbfinder() 981 mac->end, macroblock->ebit, context->window); in gst_rtp_h263_pay_B_mbfinder() 1000 mac->ebit = in gst_rtp_h263_pay_B_mbfinder() 1002 mcbpc_I[mb_type_index][2], mac->ebit, &mac->end, &gob->end); in gst_rtp_h263_pay_B_mbfinder() 1004 mac->mb_type = mcbpc_I[mb_type_index][5]; in gst_rtp_h263_pay_B_mbfinder() [all …]
|
/third_party/iptables/extensions/ |
D | libxt_mac.t | 2 -m mac --mac-source 42:01:02:03:04:05;=;OK 3 -m mac --mac-source 42:01:02:03:04;=;FAIL 4 -m mac --mac-source 42:01:02:03:04:05:06;=;FAIL 5 -m mac;;FAIL
|
D | libarpt_standard.t | 12 -i lo --destination-mac 11:22:33:44:55:66;-i lo --dst-mac 11:22:33:44:55:66;OK 13 --source-mac Unicast;--src-mac 00:00:00:00:00:00/01:00:00:00:00:00;OK 14 ! --src-mac Multicast;! --src-mac 01:00:00:00:00:00/01:00:00:00:00:00;OK
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_poly1305.function | 14 unsigned char mac[16]; /* size set by the standard */ 17 memset( mac, 0x00, sizeof( mac ) ); 23 src_str->len, mac ) == 0 ); 25 ASSERT_COMPARE( mac, expected_mac->len, 37 TEST_ASSERT( mbedtls_poly1305_finish( &ctx, mac ) == 0 ); 39 ASSERT_COMPARE( mac, expected_mac->len, 55 TEST_ASSERT( mbedtls_poly1305_finish( &ctx, mac ) == 0 ); 57 ASSERT_COMPARE( mac, expected_mac->len, 72 TEST_ASSERT( mbedtls_poly1305_finish( &ctx, mac ) == 0 ); 74 ASSERT_COMPARE( mac, expected_mac->len,
|
/third_party/python/Lib/ |
D | uuid.py | 400 def _is_universal(mac): argument 401 return not (mac & (1 << 41)) 424 mac = int(word.replace(_MAC_DELIM, b''), 16) 433 if _is_universal(mac): 434 return mac 435 first_local_mac = first_local_mac or mac 492 mac = _parse_mac(word) 493 if mac is None: 495 if _is_universal(mac): 496 return mac [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/logwatch/ |
D | hostapd | 29 if (my ($iface,$mac,$layer,$details) = ($line =~ /(.*?): STA (.*?) (.*?): (.*?)$/i)) { 34 $hostapd{$iface}->{$mac}->{$layer}->{$details}++; 43 foreach my $mac (sort keys %{$hostapd{$iface}}) { 44 print " Client MAC Address $mac:\n"; 45 foreach my $layer (sort keys %{$hostapd{$iface}->{$mac}}) { 47 foreach my $details (sort keys %{$hostapd{$iface}->{$mac}->{$layer}}) { 49 my $count = $hostapd{$iface}->{$mac}->{$layer}->{$details};
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/logwatch/ |
D | hostapd | 29 if (my ($iface,$mac,$layer,$details) = ($line =~ /(.*?): STA (.*?) (.*?): (.*?)$/i)) { 34 $hostapd{$iface}->{$mac}->{$layer}->{$details}++; 43 foreach my $mac (sort keys %{$hostapd{$iface}}) { 44 print " Client MAC Address $mac:\n"; 45 foreach my $layer (sort keys %{$hostapd{$iface}->{$mac}}) { 47 foreach my $details (sort keys %{$hostapd{$iface}->{$mac}->{$layer}}) { 49 my $count = $hostapd{$iface}->{$mac}->{$layer}->{$details};
|
/third_party/mbedtls/tests/src/drivers/ |
D | test_driver_mac.c | 41 uint8_t *mac, in mbedtls_test_transparent_mac_compute() argument 61 mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_compute() 67 mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_compute() 75 (void) mac; in mbedtls_test_transparent_mac_compute() 201 uint8_t *mac, in mbedtls_test_transparent_mac_sign_finish() argument 218 operation, mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_sign_finish() 222 operation, mac, mac_size, mac_length ); in mbedtls_test_transparent_mac_sign_finish() 225 (void) mac; in mbedtls_test_transparent_mac_sign_finish() 237 const uint8_t *mac, in mbedtls_test_transparent_mac_verify_finish() argument 253 operation, mac, mac_length ); in mbedtls_test_transparent_mac_verify_finish() [all …]
|
/third_party/openssl/crypto/poly1305/asm/ |
D | poly1305-mips.pl | 349 my ($ctx,$mac,$nonce) = ($a0,$a1,$a2); 397 sb $in0,0($mac) 399 sb $tmp0,1($mac) 401 sb $tmp1,2($mac) 403 sb $tmp2,3($mac) 405 sb $tmp3,4($mac) 407 sb $tmp0,5($mac) 409 sb $tmp1,6($mac) 411 sb $tmp2,7($mac) 413 sb $in1,8($mac) [all …]
|
/third_party/eudev/src/udev/ |
D | udev-builtin-net_id.c | 116 uint8_t mac[6]; member 429 names->mac[0] = a1; in names_mac() 430 names->mac[1] = a2; in names_mac() 431 names->mac[2] = a3; in names_mac() 432 names->mac[3] = a4; in names_mac() 433 names->mac[4] = a5; in names_mac() 434 names->mac[5] = a6; in names_mac() 446 if (memcmp(names->mac, "\0\0\0", 3) == 0) in ieee_oui() 449 names->mac[0], names->mac[1], names->mac[2], in ieee_oui() 450 names->mac[3], names->mac[4], names->mac[5]); in ieee_oui() [all …]
|