Home
last modified time | relevance | path

Searched refs:prime_str (Results 1 – 12 of 12) sorted by relevance

/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/td/telegram/
H A DDhCache.cpp16 static string good_prime_key(Slice prime_str) { in good_prime_key() argument
18 key.append(prime_str.data(), prime_str.size()); in good_prime_key()
22 int DhCache::is_good_prime(Slice prime_str) const { in is_good_prime()
23 string value = G()->td_db()->get_binlog_pmc()->get(good_prime_key(prime_str)); in is_good_prime()
34 void DhCache::add_good_prime(Slice prime_str) const { in add_good_prime()
35 G()->td_db()->get_binlog_pmc()->set(good_prime_key(prime_str), "good"); in add_good_prime()
38 void DhCache::add_bad_prime(Slice prime_str) const { in add_bad_prime()
39 G()->td_db()->get_binlog_pmc()->set(good_prime_key(prime_str), "bad"); in add_bad_prime()
H A DDhCache.h17 int is_good_prime(Slice prime_str) const final;
18 void add_good_prime(Slice prime_str) const final;
19 void add_bad_prime(Slice prime_str) const final;
/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/td/mtproto/
H A DDhHandshake.cpp21 Status DhHandshake::check_config(Slice prime_str, const BigNum &prime, int32 g_int, BigNumContext &… in check_config() argument
68 is_good_prime = callback->is_good_prime(prime_str); in check_config()
75 callback->add_bad_prime(prime_str); in check_config()
85 callback->add_bad_prime(prime_str); in check_config()
90 callback->add_good_prime(prime_str); in check_config()
128 void DhHandshake::set_config(int32 g_int, Slice prime_str) { in set_config() argument
130 prime_ = BigNum::from_binary(prime_str); in set_config()
131 prime_str_ = prime_str.str(); in set_config()
145 Status DhHandshake::check_config(int32 g_int, Slice prime_str, DhCallback *callback) { in check_config() argument
147 auto prime = BigNum::from_binary(prime_str); in check_config()
[all …]
H A DDhCallback.h23 virtual int is_good_prime(Slice prime_str) const = 0;
24 virtual void add_good_prime(Slice prime_str) const = 0;
25 virtual void add_bad_prime(Slice prime_str) const = 0;
H A DDhHandshake.h23 void set_config(int32 g_int, Slice prime_str);
25 static Status check_config(int32 g_int, Slice prime_str, DhCallback *callback);
100 static Status check_config(Slice prime_str, const BigNum &prime, int32 g_int, BigNumContext &ctx,
/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/benchmark/
H A Dbench_handshake.cpp35 int is_good_prime(td::Slice prime_str) const final { in is_good_prime()
36 auto it = cache.find(prime_str.str()); in is_good_prime()
42 void add_good_prime(td::Slice prime_str) const final { in add_good_prime()
43 cache[prime_str.str()] = 1; in add_good_prime()
45 void add_bad_prime(td::Slice prime_str) const final { in add_bad_prime()
46 cache[prime_str.str()] = 0; in add_bad_prime()
/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/test/
H A Dsecret.cpp339 int is_good_prime(Slice prime_str) const final { in is_good_prime()
340 auto it = cache.find(prime_str.str()); in is_good_prime()
346 void add_good_prime(Slice prime_str) const final { in add_good_prime()
347 cache[prime_str.str()] = 1; in add_good_prime()
349 void add_bad_prime(Slice prime_str) const final { in add_bad_prime()
350 cache[prime_str.str()] = 0; in add_bad_prime()
/dports/math/cado-nfs/cado-nfs-f4284e2391121b2bfb97bc4880b6273c7250dc2f/tests/utils/
H A Dtest_mod.cpp386 const char *prime_str[2] = {"composite", "prime"}; in test_one_sprp() local
389 …std::cerr << N << " incorrectly declared " << prime_str[!isPrime] << " by " << typeid(T).name() <<… in test_one_sprp()
398 …std::cerr << N << " incorrectly declared " << prime_str[!isPrime] << " by " << typeid(T).name() <<… in test_one_sprp()
433 const char *prime_str[2] = {"composite", "prime"}; in test_one_isprime() local
435 …std::cerr << modToMpz(m) << " incorrectly declared " << prime_str[!isPrime] << " by " << typeid(T)… in test_one_isprime()
H A Dtest_mod.c740 const char *prime_str[2] = {"composite", "prime"}; in test_sprp() local
751 n, prime_str[!is_prime]); in test_sprp()
761 n, prime_str[!is_prime], b); in test_sprp()
/dports/math/fricas/fricas-1.3.7/src/algebra/
H A Dtex.spad326 prime_str := "\prime"
328 n = 1 => message(prime_str)
329 res := new(n*#prime_str, char(" "))
332 for j in 1..#prime_str repeat
333 qsetelt!(res, k, qelt(prime_str, j))
/dports/math/fricas/fricas-1.3.7/pre-generated/src/algebra/
H A DTEX.lsp325 (|prime_str| (#4="\\prime")) (|c_char| (|Character|))
339 (SEQ (LETT |prime_str| #4#)
344 (SPADCALL |prime_str| (QREFELT $ 61)))
349 (* |n| (QCSIZE |prime_str|))
360 (QCSIZE |prime_str|))
368 |prime_str|
/dports/math/cado-nfs/cado-nfs-f4284e2391121b2bfb97bc4880b6273c7250dc2f/tests/linalg/bwc/mpfq/
H A Dmpfq_test.cpp.meta164 const char * prime_str = NULL;
183 prime_str = argv[2];
227 if (prime_str) {
228 mpz_set_str(p, prime_str, 0);
244 if (prime_str) {
245 mpz_set_str(p, prime_str, 0);