| /freebsd-13.1/contrib/bearssl/src/mac/ |
| H A D | hmac.c | 63 kc->dig_vtable = dig; in br_hmac_key_init() 64 hc.vtable = dig; in br_hmac_key_init() 66 dig->init(&hc.vtable); in br_hmac_key_init() 84 dig = kc->dig_vtable; in br_hmac_init() 85 blen = block_size(dig); in br_hmac_init() 86 dig->init(&ctx->dig.vtable); in br_hmac_init() 87 dig->set_state(&ctx->dig.vtable, kc->ksi, (uint64_t)blen); in br_hmac_init() 100 ctx->dig.vtable->update(&ctx->dig.vtable, data, len); in br_hmac_update() 112 dig = ctx->dig.vtable; in br_hmac_out() 113 dig->out(&ctx->dig.vtable, tmp); in br_hmac_out() [all …]
|
| H A D | hmac_ct.c | 28 hash_size(const br_hash_class *dig) in hash_size() argument 35 block_size(const br_hash_class *dig) in block_size() argument 65 const br_hash_class *dig; in br_hmac_outCT() local 77 hc = ctx->dig; in br_hmac_outCT() 82 dig = hc.vtable; in br_hmac_outCT() 88 bs = block_size(dig); in br_hmac_outCT() 89 hlen = hash_size(dig); in br_hmac_outCT() 177 dig->update(&hc.vtable, x, 1); in br_hmac_outCT() 179 dig->state(&hc.vtable, tmp1); in br_hmac_outCT() 187 dig->init(&hc.vtable); in br_hmac_outCT() [all …]
|
| /freebsd-13.1/contrib/bearssl/src/rsa/ |
| H A D | rsa_oaep_unpad.c | 33 xor_hash_data(const br_hash_class *dig, void *dst, const void *src, size_t len) in xor_hash_data() argument 40 hc.vtable = dig; in xor_hash_data() 41 dig->init(&hc.vtable); in xor_hash_data() 42 dig->update(&hc.vtable, src, len); in xor_hash_data() 43 dig->out(&hc.vtable, tmp); in xor_hash_data() 45 hlen = br_digest_size(dig); in xor_hash_data() 53 br_rsa_oaep_unpad(const br_hash_class *dig, in br_rsa_oaep_unpad() argument 61 hlen = br_digest_size(dig); in br_rsa_oaep_unpad() 75 br_mgf1_xor(buf + 1, hlen, dig, buf + 1 + hlen, k - hlen - 1); in br_rsa_oaep_unpad() 76 br_mgf1_xor(buf + 1 + hlen, k - hlen - 1, dig, buf + 1, hlen); in br_rsa_oaep_unpad() [all …]
|
| H A D | rsa_oaep_pad.c | 33 hash_data(const br_hash_class *dig, void *dst, const void *src, size_t len) in hash_data() argument 37 hc.vtable = dig; in hash_data() 38 dig->init(&hc.vtable); in hash_data() 39 dig->update(&hc.vtable, src, len); in hash_data() 40 dig->out(&hc.vtable, dst); in hash_data() 45 br_rsa_oaep_pad(const br_prng_class **rnd, const br_hash_class *dig, in br_rsa_oaep_pad() argument 54 hlen = br_digest_size(dig); in br_rsa_oaep_pad() 88 hash_data(dig, buf + 1 + hlen, label, label_len); in br_rsa_oaep_pad() 100 br_mgf1_xor(buf + 1 + hlen, k - hlen - 1, dig, buf + 1, hlen); in br_rsa_oaep_pad() 105 br_mgf1_xor(buf + 1, hlen, dig, buf + 1 + hlen, k - hlen - 1); in br_rsa_oaep_pad()
|
| H A D | rsa_i31_oaep_decrypt.c | 29 br_rsa_i31_oaep_decrypt(const br_hash_class *dig, in br_rsa_i31_oaep_decrypt() argument 39 r &= br_rsa_oaep_unpad(dig, label, label_len, data, len); in br_rsa_i31_oaep_decrypt()
|
| H A D | rsa_i32_oaep_decrypt.c | 29 br_rsa_i32_oaep_decrypt(const br_hash_class *dig, in br_rsa_i32_oaep_decrypt() argument 39 r &= br_rsa_oaep_unpad(dig, label, label_len, data, len); in br_rsa_i32_oaep_decrypt()
|
| H A D | rsa_i15_oaep_decrypt.c | 29 br_rsa_i15_oaep_decrypt(const br_hash_class *dig, in br_rsa_i15_oaep_decrypt() argument 39 r &= br_rsa_oaep_unpad(dig, label, label_len, data, len); in br_rsa_i15_oaep_decrypt()
|
| H A D | rsa_i62_oaep_decrypt.c | 31 br_rsa_i62_oaep_decrypt(const br_hash_class *dig, in br_rsa_i62_oaep_decrypt() argument 41 r &= br_rsa_oaep_unpad(dig, label, label_len, data, len); in br_rsa_i62_oaep_decrypt()
|
| H A D | rsa_i32_oaep_encrypt.c | 30 const br_prng_class **rnd, const br_hash_class *dig, in br_rsa_i32_oaep_encrypt() argument 38 dlen = br_rsa_oaep_pad(rnd, dig, label, label_len, in br_rsa_i32_oaep_encrypt()
|
| H A D | rsa_i31_oaep_encrypt.c | 30 const br_prng_class **rnd, const br_hash_class *dig, in br_rsa_i31_oaep_encrypt() argument 38 dlen = br_rsa_oaep_pad(rnd, dig, label, label_len, in br_rsa_i31_oaep_encrypt()
|
| /freebsd-13.1/contrib/bearssl/src/rand/ |
| H A D | hmac_drbg.c | 46 const br_hash_class *dig; in br_hmac_drbg_generate() local 53 dig = ctx->digest_class; in br_hmac_drbg_generate() 54 hlen = br_digest_size(dig); in br_hmac_drbg_generate() 55 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_generate() 84 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_generate() 94 const br_hash_class *dig; in br_hmac_drbg_update() local 100 dig = ctx->digest_class; in br_hmac_drbg_update() 101 hlen = br_digest_size(dig); in br_hmac_drbg_update() 106 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_update() 113 br_hmac_key_init(&kc, dig, ctx->K, hlen); in br_hmac_drbg_update() [all …]
|
| /freebsd-13.1/contrib/bearssl/src/hash/ |
| H A D | mgf1.c | 30 const br_hash_class *dig, const void *seed, size_t seed_len) in br_mgf1_xor() argument 37 hlen = br_digest_size(dig); in br_mgf1_xor() 43 hc.vtable = dig; in br_mgf1_xor() 44 dig->init(&hc.vtable); in br_mgf1_xor() 45 dig->update(&hc.vtable, seed, seed_len); in br_mgf1_xor() 47 dig->update(&hc.vtable, tmp, 4); in br_mgf1_xor() 48 dig->out(&hc.vtable, tmp); in br_mgf1_xor()
|
| /freebsd-13.1/contrib/unbound/testdata/zonemd_reload.tdir/ |
| H A D | zonemd_reload.test | 9 echo "> dig www.example.com." 10 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 13 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 18 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 23 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 28 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 33 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 38 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
|
| /freebsd-13.1/contrib/gdtoa/ |
| H A D | gdtoa.c | 620 dig = quorem(b,S) + '0'; 630 if (dig == '9') 637 dig++; 640 *s++ = dig; 655 *s++ = dig; 661 dig = quorem(b,S) + '0'; 663 if (dig++ == '9') 676 && dig++ == '9') 683 *s++ = dig; 694 *s++ = dig + 1; [all …]
|
| H A D | dtoa.c | 622 dig = quorem(b,S) + '0'; 636 if (dig == '9') 639 dig++; 644 *s++ = dig; 672 if ((j1 > 0 || (j1 == 0 && dig & 1)) 674 && dig++ == '9') 678 *s++ = dig; 691 *s++ = dig + 1; 697 *s++ = dig; 711 *s++ = dig = quorem(b,S) + '0'; [all …]
|
| /freebsd-13.1/contrib/unbound/testdata/http_user_agent.tdir/ |
| H A D | http_user_agent.test | 11 echo "> dig www.example.com." 12 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 15 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 20 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 25 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 30 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 35 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 40 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile
|
| /freebsd-13.1/usr.sbin/keyserv/ |
| H A D | setkey.c | 461 hexval(dig) in hexval() argument 462 char dig; in hexval() 464 if ('0' <= dig && dig <= '9') { 465 return (dig - '0'); 466 } else if ('a' <= dig && dig <= 'f') { 467 return (dig - 'a' + 10); 468 } else if ('A' <= dig && dig <= 'F') { 469 return (dig - 'A' + 10);
|
| /freebsd-13.1/contrib/bearssl/inc/ |
| H A D | bearssl_rsa.h | 377 const br_prng_class **rnd, const br_hash_class *dig, 553 const br_hash_class *dig, const void *label, size_t label_len, 1175 const br_prng_class **rnd, const br_hash_class *dig, 1195 const br_hash_class *dig, const void *label, size_t label_len, 1215 const br_prng_class **rnd, const br_hash_class *dig, 1235 const br_hash_class *dig, const void *label, size_t label_len, 1255 const br_prng_class **rnd, const br_hash_class *dig, 1275 const br_hash_class *dig, const void *label, size_t label_len, 1299 const br_prng_class **rnd, const br_hash_class *dig, 1323 const br_hash_class *dig, const void *label, size_t label_len,
|
| /freebsd-13.1/crypto/openssl/crypto/cms/ |
| H A D | cms_ess.c | 139 unsigned char *dig, unsigned int *diglen) in cms_msgSigDigest() argument 146 si->signedAttrs, dig, diglen)) in cms_msgSigDigest() 155 unsigned char dig[EVP_MAX_MD_SIZE]; in cms_msgSigDigest_add1() local 157 if (!cms_msgSigDigest(src, dig, &diglen)) { in cms_msgSigDigest_add1() 162 V_ASN1_OCTET_STRING, dig, diglen)) { in cms_msgSigDigest_add1() 180 unsigned char dig[EVP_MAX_MD_SIZE]; in cms_Receipt_verify() local 241 if (!cms_msgSigDigest(osi, dig, &diglen)) { in cms_Receipt_verify() 251 if (memcmp(dig, msig->data, diglen)) { in cms_Receipt_verify()
|
| /freebsd-13.1/contrib/unbound/testdata/fwd_udp_with_tcp_upstream.tdir/ |
| H A D | fwd_udp_with_tcp_upstream.test | 9 echo "> dig tcp.example.com." 10 dig @localhost -p $UNBOUND_PORT tcp.example.com. | tee outfile 22 echo "> dig udp.example.com." 23 dig @localhost -p $UNBOUND_PORT udp.example.com. | tee outfile
|
| /freebsd-13.1/contrib/unbound/contrib/ |
| H A D | warmup.cmd | 14 rem Check dig installed 15 for /f "delims=" %%a in ('where dig') do @set dig=%%a variable 16 if /I "%dig%"=="" echo Dig not found. If installed, add path to PATH environment variable. & exit 1 17 echo Dig found: %dig% 141 ) do "%dig%" %%a @%address% 1>nul 2>nul 146 %dig% -f %arg% @%address% 1>nul 2>nul
|
| H A D | warmup.sh | 15 dig=`which dig` 19 $dig -f - @$address >/dev/null 2>&1 <<EOT 140 $cat $1 | $dig -f - @$address >/dev/null 2>&1
|
| /freebsd-13.1/contrib/unbound/testdata/stub_udp_with_tcp_upstream.tdir/ |
| H A D | stub_udp_with_tcp_upstream.test | 9 echo "> dig tcp.example.com." 10 dig @127.0.0.1 -p $UNBOUND_PORT tcp.example.com. | tee outfile 24 echo "> dig udp.example.com." 25 dig @127.0.0.1 -p $UNBOUND_PORT udp.example.com. | tee outfile
|
| /freebsd-13.1/contrib/bearssl/src/ssl/ |
| H A D | prf.c | 30 const br_hash_class *dig, in br_tls_phash() argument 45 hlen = br_digest_size(dig); in br_tls_phash() 46 br_hmac_key_init(&kc, dig, secret, secret_len); in br_tls_phash()
|
| /freebsd-13.1/crypto/openssl/crypto/srp/ |
| H A D | srp_lib.c | 122 unsigned char dig[SHA_DIGEST_LENGTH]; in SRP_Calc_x() local 140 || !EVP_DigestFinal_ex(ctxt, dig, NULL) in SRP_Calc_x() 148 if (!EVP_DigestUpdate(ctxt, dig, sizeof(dig)) in SRP_Calc_x() 149 || !EVP_DigestFinal_ex(ctxt, dig, NULL)) in SRP_Calc_x() 152 res = BN_bin2bn(dig, sizeof(dig), NULL); in SRP_Calc_x()
|