/dports/security/seal/SEAL-3.7.2/native/src/seal/c/ |
H A D | keygenerator.cpp | 24 static PublicKey create_public_key(KeyGenerator *keygen, bool save_seed) 26 return keygen->generate_pk(save_seed); 29 static RelinKeys create_relin_keys(KeyGenerator *keygen, bool save_seed) 31 return keygen->create_relin_keys(size_t(1), save_seed); 36 return keygen->create_galois_keys(galois_elts, save_seed); 97 SEAL_C_FUNC KeyGenerator_CreateRelinKeys(void *thisptr, bool save_seed, void **relin_keys) in KeyGenerator_CreateRelinKeys() argument 105 RelinKeys *relinKeys = new RelinKeys(ph::create_relin_keys(keygen, save_seed)); in KeyGenerator_CreateRelinKeys() 120 void *thisptr, uint64_t count, uint32_t *galois_elts, bool save_seed, void **galois_keys) in KeyGenerator_CreateGaloisKeysFromElts() argument 147 void *thisptr, uint64_t count, int *steps, bool save_seed, void **galois_keys) in KeyGenerator_CreateGaloisKeysFromSteps() argument 199 SEAL_C_FUNC KeyGenerator_CreatePublicKey(void *thisptr, bool save_seed, void **public_key) in KeyGenerator_CreatePublicKey() argument [all …]
|
H A D | encryptor.cpp | 19 …Encryptor *encryptor, const Plaintext &plain, bool save_seed, Ciphertext &destination, MemoryPoolH… 21 encryptor->encrypt_internal(plain, false, save_seed, destination, pool); 25 …Encryptor *encryptor, parms_id_type parms_id, bool save_seed, Ciphertext &destination, MemoryPoolH… 27 encryptor->encrypt_zero_internal(parms_id, false, save_seed, destination, pool); 31 Encryptor *encryptor, bool save_seed, Ciphertext &destination, MemoryPoolHandle pool) 33 …encryptor->encrypt_zero_internal(encryptor->context_.first_parms_id(), false, save_seed, destinati… 185 void *thisptr, void *plaintext, bool save_seed, void *destination, void *pool_handle) in Encryptor_EncryptSymmetric() argument 197 ph::encrypt_symmetric_internal(encryptor, *plain, save_seed, *cipher, *pool); in Encryptor_EncryptSymmetric() 211 void *thisptr, uint64_t *parms_id, bool save_seed, void *destination, void *pool_handle) in Encryptor_EncryptZeroSymmetric1() argument 225 ph::encrypt_zero_symmetric_internal(encryptor, parms, save_seed, *cipher, *pool); in Encryptor_EncryptZeroSymmetric1() [all …]
|
H A D | keygenerator.h | 22 SEAL_C_FUNC KeyGenerator_CreateRelinKeys(void *thisptr, bool save_seed, void **relin_keys); 25 void *thisptr, uint64_t count, uint32_t *galois_elts, bool save_seed, void **galois_keys); 28 void *thisptr, uint64_t count, int *steps, bool save_seed, void **galois_keys); 30 SEAL_C_FUNC KeyGenerator_CreateGaloisKeysAll(void *thisptr, bool save_seed, void **galois_keys); 32 SEAL_C_FUNC KeyGenerator_CreatePublicKey(void *thisptr, bool save_seed, void **public_key);
|
H A D | encryptor.h | 29 void *thisptr, void *plaintext, bool save_seed, void *destination, void *pool_handle); 32 void *thisptr, uint64_t *parms_id, bool save_seed, void *destination, void *pool_handle); 34 SEAL_C_FUNC Encryptor_EncryptZeroSymmetric2(void *thisptr, bool save_seed, void *destination, void …
|
/dports/security/seal/SEAL-3.7.2/native/src/seal/ |
H A D | keygenerator.cpp | 93 PublicKey KeyGenerator::generate_pk(bool save_seed) const in generate_pk() 114 …encrypt_zero_symmetric(secret_key_, context_, context_data.parms_id(), true, save_seed, public_key… in generate_pk() 122 RelinKeys KeyGenerator::create_relin_keys(size_t count, bool save_seed) in create_relin_keys() argument 154 … generate_kswitch_keys(secret_key + 1, count, static_cast<KSwitchKeys &>(relin_keys), save_seed); in create_relin_keys() 162 GaloisKeys KeyGenerator::create_galois_keys(const vector<uint32_t> &galois_elts, bool save_seed) in create_galois_keys() argument 219 generate_one_kswitch_key(rotated_secret_key, galois_keys.data()[index], save_seed); in create_galois_keys() 306 …tor::generate_one_kswitch_key(ConstRNSIter new_key, vector<PublicKey> &destination, bool save_seed) in generate_one_kswitch_key() argument 331 … secret_key_, context_, key_context_data.parms_id(), true, save_seed, get<2>(I).data()); in generate_one_kswitch_key() 342 ConstPolyIter new_keys, size_t num_keys, KSwitchKeys &destination, bool save_seed) in generate_kswitch_keys() argument 366 this->generate_one_kswitch_key(get<0>(I), get<1>(I), save_seed); in generate_kswitch_keys()
|
H A D | keygenerator.h | 311 PublicKey generate_pk(bool save_seed) const; 317 …l::ConstPolyIter new_keys, std::size_t num_keys, KSwitchKeys &destination, bool save_seed = false); 323 … util::ConstRNSIter new_key, std::vector<PublicKey> &destination, bool save_seed = false); 332 RelinKeys create_relin_keys(std::size_t count, bool save_seed); 353 … GaloisKeys create_galois_keys(const std::vector<std::uint32_t> &galois_elts, bool save_seed);
|
H A D | encryptor.cpp | 89 parms_id_type parms_id, bool is_asymmetric, bool save_seed, Ciphertext &destination, in encrypt_zero_internal() argument 164 …util::encrypt_zero_symmetric(secret_key_, context_, parms_id, is_ntt_form, save_seed, destination); in encrypt_zero_internal() 169 const Plaintext &plain, bool is_asymmetric, bool save_seed, Ciphertext &destination, in encrypt_internal() argument 202 … encrypt_zero_internal(context_.first_parms_id(), is_asymmetric, save_seed, destination, pool); in encrypt_internal() 220 encrypt_zero_internal(plain.parms_id(), is_asymmetric, save_seed, destination, pool); in encrypt_internal()
|
H A D | encryptor.h | 419 parms_id_type parms_id, bool is_asymmetric, bool save_seed, Ciphertext &destination, 423 const Plaintext &plain, bool is_asymmetric, bool save_seed, Ciphertext &destination,
|
/dports/security/seal/SEAL-3.7.2/native/src/seal/util/ |
H A D | rlwe.cpp | 264 bool save_seed, Ciphertext &destination) in encrypt_zero_symmetric() argument 292 if (save_seed && poly_uint64_count < prng_info_uint64_count + 1) in encrypt_zero_symmetric() 294 save_seed = false; in encrypt_zero_symmetric() 318 if (is_ntt_form || !save_seed) in encrypt_zero_symmetric() 323 else if (save_seed) in encrypt_zero_symmetric() 359 if (!is_ntt_form && !save_seed) in encrypt_zero_symmetric() 368 if (save_seed) in encrypt_zero_symmetric()
|
H A D | rlwe.h | 112 bool save_seed, Ciphertext &destination);
|
/dports/security/libfido2/libfido2-1.9.0/fuzz/ |
H A D | libfuzzer.c | 30 save_seed(const char *opt) in save_seed() function 103 exit(save_seed((*argv)[i])); in LLVMFuzzerInitialize()
|
/dports/security/seal/SEAL-3.7.2/dotnet/src/ |
H A D | NativeMethods.cs | 682 …internal static extern void KeyGenerator_CreateRelinKeys(IntPtr thisptr, bool save_seed, out IntPt… in KeyGenerator_CreateRelinKeys() argument 685 …internal static extern void KeyGenerator_CreateGaloisKeysAll(IntPtr thisptr, bool save_seed, out I… in KeyGenerator_CreateGaloisKeysAll() argument 688 …GaloisKeysFromElts(IntPtr thisptr, ulong count, uint[] galoisElts, bool save_seed, out IntPtr galo… in KeyGenerator_CreateGaloisKeysFromElts() argument 691 …reateGaloisKeysFromSteps(IntPtr thisptr, ulong count, int[] steps, bool save_seed, out IntPtr galo… in KeyGenerator_CreateGaloisKeysFromSteps() argument 694 …internal static extern void KeyGenerator_CreatePublicKey(IntPtr thisptr, bool save_seed, out IntPt… in KeyGenerator_CreatePublicKey() argument 881 … void Encryptor_EncryptSymmetric(IntPtr thisptr, IntPtr plaintext, bool save_seed, IntPtr destinat… in Encryptor_EncryptSymmetric() argument 884 …d Encryptor_EncryptZeroSymmetric1(IntPtr thisptr, ulong[] parmsId, bool save_seed, IntPtr destinat… in Encryptor_EncryptZeroSymmetric1() argument 887 …internal static extern void Encryptor_EncryptZeroSymmetric2(IntPtr thisptr, bool save_seed, IntPtr… in Encryptor_EncryptZeroSymmetric2() argument
|
/dports/japanese/gawk/gawk-3.0.6/ |
H A D | builtin.c | 1559 static long save_seed = 1; local 1560 long ret = save_seed; /* SVR4 awk srand returns previous seed */ 1571 save_seed = time((time_t *) 0) 1573 srandom((int) save_seed); 1575 srandom((unsigned int) (save_seed = (long) time((time_t *) 0))); 1579 srandom((unsigned int) (save_seed = (long) force_number(tmp)));
|
/dports/lang/gawk/gawk-5.1.1/ |
H A D | builtin.c | 2625 static long save_seed = 1; in do_srand() local 2626 long ret = save_seed; /* SVR4 awk srand returns previous seed */ in do_srand() 2636 srandom((unsigned int) (save_seed = (long) time((time_t *) 0))); in do_srand() 2641 srandom((unsigned int) (save_seed = (long) force_number(tmp)->numbr)); in do_srand()
|