/dports/security/py-pyaxo/pyaxo-0.8.2/tests/ |
H A D | conftest.py | 3 from pyaxo import Axolotl, generate_keypair 10 return generate_keypair() 15 return generate_keypair() 20 return generate_keypair() 25 return generate_keypair() 30 return generate_keypair() 35 return generate_keypair() 40 return generate_keypair() 45 return generate_keypair() 50 return generate_keypair()
|
H A D | test_utils.py | 3 from pyaxo import generate_keypair 8 return generate_keypair()
|
/dports/devel/android-tools-adb/platform_system_core-android-9.0.0_r3/trusty/keymaster/ |
H A D | trusty_keymaster_device_test.cpp | 159 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 178 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 197 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 214 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 231 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() 250 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() 269 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() 291 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 312 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 400 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() [all …]
|
/dports/devel/android-tools-fastboot/platform_system_core-platform-tools-29.0.5/trusty/keymaster/legacy/ |
H A D | trusty_keymaster_device_test.cpp | 158 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 177 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 196 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 213 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 230 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() 249 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() 268 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() 290 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 311 ASSERT_EQ(0, device.generate_keypair(TYPE_RSA, ¶ms, &ptr, &size)); in TEST_F() 399 ASSERT_EQ(0, device.generate_keypair(TYPE_EC, ¶ms, &ptr, &size)); in TEST_F() [all …]
|
/dports/devel/dtool/dtool-0.11.0/cargo-crates/secp256k1-0.20.3/src/ |
H A D | ecdh.rs | 182 let (sk1, pk1) = s.generate_keypair(&mut thread_rng()); in ecdh() 183 let (sk2, pk2) = s.generate_keypair(&mut thread_rng()); in ecdh() 195 let (sk1, pk1) = s.generate_keypair(&mut thread_rng()); in ecdh_with_hash() 196 let (sk2, pk2) = s.generate_keypair(&mut thread_rng()); in ecdh_with_hash() 208 let (sk1, pk1) = s.generate_keypair(&mut thread_rng()); in ecdh_with_hash_callback() 249 let (sk, pk) = s.generate_keypair(&mut thread_rng()); in bench_ecdh()
|
H A D | key.rs | 531 let (sk1, pk1) = s.generate_keypair(&mut thread_rng()); in keypair_slice_round_trip() 591 s.generate_keypair(&mut BadRng(0xff)); in test_out_of_range() 676 let (sk, _) = s.generate_keypair(&mut DumbRng(0)); in test_debug_output() 765 let (_, pk1) = s.generate_keypair(&mut DumbRng(0)); in test_pubkey_serialize() 776 let (mut sk1, mut pk1) = s.generate_keypair(&mut thread_rng()); in test_addition() 777 let (mut sk2, mut pk2) = s.generate_keypair(&mut thread_rng()); in test_addition() 794 let (mut sk1, mut pk1) = s.generate_keypair(&mut thread_rng()); in test_multiplication() 812 let (mut sk, mut pk) = s.generate_keypair(&mut thread_rng()); in test_negation() 845 let (_, pk) = s.generate_keypair(&mut thread_rng()); in pubkey_hash() 900 let (mut sk1, pk1) = s.generate_keypair(&mut thread_rng()); in create_pubkey_combine() [all …]
|
H A D | lib.rs | 783 pub fn generate_keypair<R: Rng + ?Sized>(&self, rng: &mut R) in generate_keypair() method 892 let (sk, pk) = full.generate_keypair(&mut thread_rng()); in test_manual_create_destroy() 921 let (sk, pk) = full.generate_keypair(&mut thread_rng()); in test_raw_ctx() 965 let (sk, pk) = full.generate_keypair(&mut thread_rng()); in test_preallocation() 987 let (sk, pk) = full.generate_keypair(&mut thread_rng()); in capabilities() 1015 let (sk, _) = s.generate_keypair(&mut thread_rng()); in signature_serialize_roundtrip() 1101 let (sk, pk) = s.generate_keypair(&mut thread_rng()); in sign_and_verify() 1164 let (sk, pk) = s.generate_keypair(&mut thread_rng()); in sign_and_verify_fail() 1353 let (sk, pk) = s.generate_keypair(&mut r); in generate() 1365 let (sk, _) = s.generate_keypair(&mut thread_rng()); in bench_sign() [all …]
|
H A D | recovery.rs | 216 let (sk, pk) = full.generate_keypair(&mut thread_rng()); in capabilities() 270 let (sk, pk) = s.generate_keypair(&mut thread_rng()); in sign_and_verify_fail() 293 let (sk, pk) = s.generate_keypair(&mut thread_rng()); in sign_with_recovery() 379 let (sk, _) = s.generate_keypair(&mut thread_rng()); in bench_recover()
|
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-7.0.0/src/ecdsa/ |
H A D | keys.rs | 14 pub fn generate_keypair<C: Curve, R: Random>( in generate_keypair() function 48 let _ = generate_keypair::<Secp192r1, _>(&mut rand).unwrap(); in gen_keys() 56 generate_keypair::<Secp192r1, _>(&mut rand).unwrap(); in clone()
|
H A D | sign.rs | 51 use crate::ecdsa::generate_keypair; 58 generate_keypair::<Secp192r1, _>(&mut rand).unwrap(); in sign_verify()
|
H A D | mod.rs | 4 pub use self::keys::generate_keypair;
|
/dports/security/s2n/s2n-tls-1.1.2/tls/ |
H A D | s2n_kem.c | 32 .generate_keypair = &BIKE1_L1_R1_crypto_kem_keypair, 44 .generate_keypair = &BIKE1_L1_R2_crypto_kem_keypair, 56 .generate_keypair = &BIKE_L1_R3_crypto_kem_keypair, 68 .generate_keypair = &SIKE_P503_r1_crypto_kem_keypair, 80 .generate_keypair = &kyber_512_r2_crypto_kem_keypair, 92 .generate_keypair = &kyber_512_90s_r2_crypto_kem_keypair, 104 .generate_keypair = &s2n_kyber_512_r3_crypto_kem_keypair, 116 .generate_keypair = &s2n_sike_p434_r3_crypto_kem_keypair, 317 RESULT_ENSURE_REF(kem->generate_keypair); in s2n_kem_generate_keypair() 325 …GUARD_PQ_AS_RESULT(kem->generate_keypair(kem_params->public_key.data, kem_params->private_key.data… in s2n_kem_generate_keypair()
|
/dports/security/py-python-pkcs11/python-pkcs11-0.7.0/tests/ |
H A D | test_ecc.py | 27 pub, priv = parameters.generate_keypair() 43 alice_pub, alice_priv = parameters.generate_keypair() 46 bob_pub, bob_priv = parameters.generate_keypair() 158 pub, priv = parameters.generate_keypair()
|
H A D | test_dh.py | 58 alice_public, alice_private = parameters.generate_keypair() 62 bob_public, bob_private = parameters.generate_keypair() 124 public, _ = params.generate_keypair()
|
H A D | test_public_key_external.py | 18 self.session.generate_keypair(KeyType.RSA, 1024) 43 .generate_keypair() 66 .generate_keypair() 126 self.session.generate_keypair(KeyType.RSA, 1024)
|
H A D | test_dsa.py | 45 public, private = dhparams.generate_keypair() 58 public, private = self.session.generate_keypair(KeyType.DSA, 1024)
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/boringssl/src/crypto/trust_token/ |
H A D | privacy_pass.c | 143 static int generate_keypair(EC_SCALAR *out_x, EC_SCALAR *out_y, in generate_keypair() function 185 if (!generate_keypair(&x0, &y0, &pub0, group) || in TRUST_TOKEN_generate_key() 186 !generate_keypair(&x1, &y1, &pub1, group) || in TRUST_TOKEN_generate_key() 187 !generate_keypair(&xs, &ys, &pubs, group)) { in TRUST_TOKEN_generate_key()
|
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-7.0.0/src/dsa/ |
H A D | keys.rs | 88 pub fn generate_keypair<R: Random>( in generate_keypair() function 126 let _ = generate_keypair(¶ms, &mut rand); in generate_key() 134 let (public, private) = generate_keypair(¶ms, &mut rand); in clone()
|
H A D | sign.rs | 60 use crate::dsa::generate_keypair; 67 let (mut public, mut private) = generate_keypair(¶ms, &mut rand); in sign_verify()
|
/dports/security/s2n/s2n-tls-1.1.2/tests/unit/ |
H A D | s2n_pq_kem_test.c | 140 EXPECT_PQ_KEM_SUCCESS(kem->generate_keypair(public_key.data, private_key.data)); in main() 159 …EXPECT_FAILURE_WITH_ERRNO(kem->generate_keypair(public_key.data, private_key.data), S2N_ERR_UNIMPL… in main() 163 …EXPECT_FAILURE_WITH_ERRNO(kem->generate_keypair(public_key.data, private_key.data), S2N_ERR_PQ_DIS… in main()
|
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/nettle-7.0.0/src/rsa/ |
H A D | keys.rs | 347 pub fn generate_keypair<R: Random>( in generate_keypair() function 455 assert!(generate_keypair(&mut rng, 1024).is_ok()); in generate_keypairs() 456 assert!(generate_keypair(&mut rng, 2048).is_ok()); in generate_keypairs() 457 assert!(generate_keypair(&mut rng, 4096).is_ok()); in generate_keypairs() 465 let (public, private) = generate_keypair(&mut rng, 1024).unwrap(); in clone()
|
/dports/net-im/libsignal-client/libsignal-client-0.9.6/rust/hsm-enclave/tests/ |
H A D | tests.rs | 12 let keypair = snow::Builder::new(NOISE_PATTERN.parse()?).generate_keypair()?; in test_hsm_enclave_happy_path() 58 let keypair = snow::Builder::new(NOISE_PATTERN.parse()?).generate_keypair()?; in test_hsm_enclave_codehash_mismatch()
|
/dports/security/opencryptoki/opencryptoki-3.11.0/testcases/pkcs11/ |
H A D | pkcs11.mk | 6 testcases/pkcs11/generate_keypair testcases/pkcs11/gen_purpose \ 46 testcases/pkcs11/generate_keypair.c
|
/dports/net-im/libsignal-client/libsignal-client-0.9.6/cargo-crates/snow-0.8.0/tests/ |
H A D | general.rs | 351 let static_i = b_i.generate_keypair().unwrap(); in test_XXpsk3_sanity_session() 352 let static_r = b_r.generate_keypair().unwrap(); in test_XXpsk3_sanity_session() 530 let rpk = resp_builder.generate_keypair().unwrap(); in test_oneway_responder_enforcements() 565 let keypair_r = builder_r.generate_keypair().unwrap(); in test_read_buffer_issues() 569 let key_i = builder_i.generate_keypair().unwrap().private; in test_read_buffer_issues() 601 let static_i = b_i.generate_keypair().unwrap(); in test_buffer_issues_encrypted_handshake() 602 let static_r = b_r.generate_keypair().unwrap(); in test_buffer_issues_encrypted_handshake() 646 let static_i = b_i.generate_keypair().unwrap(); in test_checkpointing() 647 let static_r = b_r.generate_keypair().unwrap(); in test_checkpointing()
|
/dports/net-im/libsignal-client/libsignal-client-0.9.6/cargo-crates/snow-0.8.0/examples/ |
H A D | simple.rs | 44 let static_key = builder.generate_keypair().unwrap().private; in run_server() 78 let static_key = builder.generate_keypair().unwrap().private; in run_client()
|