Home
last modified time | relevance | path

Searched refs:use_xchacha20 (Results 1 – 4 of 4) sorted by relevance

/dports/dns/dnscrypt-wrapper/dnscrypt-wrapper-0.4.2/
H A Ddnscrypt.c13 const uint8_t server_pk[crypto_box_PUBLICKEYBYTES], bool use_xchacha20) in h12() argument
25 return (size_t) (((h >> 20) ^ (h >> 8) ^ (h << 4) ^ use_xchacha20) & 0xfff); in h12()
31 const uint8_t server_pk[crypto_box_PUBLICKEYBYTES], const bool use_xchacha20) in cache_get() argument
33 Cached *cached = &cache[h12(pk, server_pk, use_xchacha20)]; in cache_get()
37 …(cached->pk[crypto_box_PUBLICKEYBYTES - 1] ^ use_xchacha20) == pk[crypto_box_PUBLICKEYBYTES - 1] && in cache_get()
47 const uint8_t server_pk[crypto_box_PUBLICKEYBYTES], const bool use_xchacha20) in cache_set() argument
51 cache_get(&cached, pk, server_pk, use_xchacha20); in cache_set()
53 cached->pk[crypto_box_PUBLICKEYBYTES - 1] ^= use_xchacha20; in cache_set()
H A Dcert.c5 int use_xchacha20) in cert_build_cert() argument
13 if (use_xchacha20) { in cert_build_cert()
26 if (use_xchacha20) { in cert_build_cert()
H A Dcert.h41 …ert *cert_build_cert(const uint8_t *crypt_publickey, int cert_file_expire_days, int use_xchacha20);
H A Dmain.c452 int use_xchacha20 = 0; in main() local
500 …OPT_BOOLEAN('x', "xchacha20", &use_xchacha20, "generate a certificate for use with the xchacha20 c… in main()
732 cert_build_cert(c.keypairs->crypt_publickey, cert_file_expire_seconds, use_xchacha20); in main()