Home
last modified time | relevance | path

Searched refs:alice_key (Results 1 – 25 of 55) sorted by relevance

123

/dports/security/botan110/Botan-1.10.17/checks/
H A Decdh.cpp45 SymmetricKey alice_key = ka.derive_key(32, private_b.public_value()); in test_ecdh_normal_derivation() local
48 if(alice_key != bob_key) in test_ecdh_normal_derivation()
51 std::cout << "Alice's key was: " << alice_key.as_string() << "\n"; in test_ecdh_normal_derivation()
76 SymmetricKey alice_key = ka.derive_key(32, private_b.public_value()); in test_ecdh_some_dp() local
79 …CHECK_MESSAGE(alice_key == bob_key, "different keys - " << "Alice's key was: " << alice_key.as_str… in test_ecdh_some_dp()
105 SymmetricKey alice_key = ka.derive_key(32, key_b); in test_ecdh_der_derivation() local
108 …CHECK_MESSAGE(alice_key == bob_key, "different keys - " << "Alice's key was: " << alice_key.as_str… in test_ecdh_der_derivation()
/dports/www/chromium-legacy/chromium-88.0.4324.182/components/gcm_driver/crypto/
H A Dp256_key_util_unittest.cc74 std::unique_ptr<crypto::ECPrivateKey> alice_key = in TEST() local
80 ASSERT_TRUE(GetRawPublicKey(*alice_key, &alice_public_key)); in TEST()
82 ASSERT_TRUE(GetRawPrivateKey(*alice_key, &alice_private_key)); in TEST()
89 ASSERT_TRUE(ComputeSharedP256Secret(*alice_key, bob_public_key, in TEST()
114 std::unique_ptr<crypto::ECPrivateKey> alice_key( in TEST() local
117 ASSERT_TRUE(GetRawPublicKey(*alice_key, &alice_public_key)); in TEST()
122 ASSERT_TRUE(ComputeSharedP256Secret(*alice_key, bob_public_key, in TEST()
/dports/security/botan110/Botan-1.10.17/doc/examples/
H A Ddh.cpp36 SymmetricKey alice_key = ka_alice.derive_key(32, public_b, session_param); in main() local
42 if(alice_key == bob_key) in main()
45 std::cout << "The shared key was: " << alice_key.as_string() << "\n"; in main()
50 std::cout << "Alice's key was: " << alice_key.as_string() << "\n"; in main()
/dports/security/olm/olm-3.2.6/tests/
H A Dtest_ratchet.cpp36 _olm_curve25519_key_pair alice_key; in main() local
37 _olm_crypto_curve25519_generate_key(random_bytes, &alice_key); in main()
47 alice.initialise_as_alice(shared_secret, sizeof(shared_secret) - 1, alice_key); in main()
48 bob.initialise_as_bob(shared_secret, sizeof(shared_secret) - 1, alice_key.public_key); in main()
116 alice.initialise_as_alice(shared_secret, sizeof(shared_secret) - 1, alice_key); in main()
117 bob.initialise_as_bob(shared_secret, sizeof(shared_secret) - 1, alice_key.public_key); in main()
188 alice.initialise_as_alice(shared_secret, sizeof(shared_secret) - 1, alice_key); in main()
189 bob.initialise_as_bob(shared_secret, sizeof(shared_secret) - 1, alice_key.public_key); in main()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/net/third_party/quiche/src/quic/core/crypto/
H A Dcurve25519_key_exchange_test.cc50 const std::string alice_key(Curve25519KeyExchange::NewPrivateKey(rand)); in TEST_F() local
54 Curve25519KeyExchange::New(alice_key)); in TEST_F()
74 const std::string alice_key(Curve25519KeyExchange::NewPrivateKey(rand)); in TEST_F() local
78 Curve25519KeyExchange::New(alice_key)); in TEST_F()
/dports/www/chromium-legacy/chromium-88.0.4324.182/net/third_party/quiche/src/quic/core/crypto/
H A Dcurve25519_key_exchange_test.cc50 const std::string alice_key(Curve25519KeyExchange::NewPrivateKey(rand)); in TEST_F() local
54 Curve25519KeyExchange::New(alice_key)); in TEST_F()
74 const std::string alice_key(Curve25519KeyExchange::NewPrivateKey(rand)); in TEST_F() local
78 Curve25519KeyExchange::New(alice_key)); in TEST_F()
/dports/net-im/libsignal-client/libsignal-client-0.9.6/rust/protocol/src/curve/
H A Dcurve25519.rs184 let alice_key = PrivateKey::from(alice_private); in test_agreement() localVariable
187 assert_eq!(alice_public, alice_key.derive_public_key_bytes()); in test_agreement()
190 let alice_computed_secret = alice_key.calculate_agreement(&bob_public); in test_agreement()
201 let alice_key = PrivateKey::new(&mut csprng); in test_random_agreements() localVariable
205 alice_key.calculate_agreement(&bob_key.derive_public_key_bytes()); in test_random_agreements()
207 bob_key.calculate_agreement(&alice_key.derive_public_key_bytes()); in test_random_agreements()
/dports/www/py-django-otp-yubikey/django-otp-yubikey-1.0.0/src/otp_yubikey/
H A Dtests.py11 alice_key = YubiKey(unhexlify(b'5dc30490956b'), 6, 0) variable in YubikeyTest
75 alice_key = YubiKey(unhexlify(b'2627dc624cbd'), 6, 0)
76 otp = alice_key.generate()
95 otp = self.alice_key.generate()
107 otp = self.alice_key.generate()
/dports/lang/mono/mono-5.10.1.57/external/boringssl/crypto/curve25519/
H A Dspake25519_test.cc64 uint8_t alice_key[64], bob_key[64]; in Run() local
67 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
68 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
75 memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/tests/
H A Dunit_ecdh.cpp52 Botan::SymmetricKey alice_key = ka.derive_key(32, private_b.public_value()); in test_ecdh_normal_derivation() local
55 if(!result.test_eq("same derived key", alice_key.bits_of(), bob_key.bits_of())) in test_ecdh_normal_derivation()
57 … result.test_note("Keys where " + alice_key.to_string() + " and " + bob_key.to_string()); in test_ecdh_normal_derivation()
/dports/security/botan2/Botan-2.18.2/src/tests/
H A Dunit_ecdh.cpp52 Botan::SymmetricKey alice_key = ka.derive_key(32, private_b.public_value()); in test_ecdh_normal_derivation() local
55 if(!result.test_eq("same derived key", alice_key.bits_of(), bob_key.bits_of())) in test_ecdh_normal_derivation()
57 … result.test_note("Keys where " + alice_key.to_string() + " and " + bob_key.to_string()); in test_ecdh_normal_derivation()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/boringssl/src/crypto/curve25519/
H A Dspake25519_test.cc77 uint8_t alice_key[64], bob_key[64]; in Run() local
80 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
81 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
88 OPENSSL_memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/boringssl/src/crypto/curve25519/
H A Dspake25519_test.cc77 uint8_t alice_key[64], bob_key[64]; in Run() local
80 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
81 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
88 OPENSSL_memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/net/quiche/quiche-0.9.0/deps/boringssl/src/crypto/curve25519/
H A Dspake25519_test.cc77 uint8_t alice_key[64], bob_key[64]; in Run() local
80 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
81 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
88 OPENSSL_memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/net/quiche/quiche-0.9.0/cargo-crates/boring-sys-1.1.1/deps/boringssl/src/crypto/curve25519/
H A Dspake25519_test.cc77 uint8_t alice_key[64], bob_key[64]; in Run() local
80 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
81 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
88 OPENSSL_memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/security/boringssl/boringssl-6a71840/crypto/curve25519/
H A Dspake25519_test.cc77 uint8_t alice_key[64], bob_key[64]; in Run() local
80 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
81 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
88 OPENSSL_memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/devel/py-grpcio/grpcio-1.43.0/third_party/boringssl-with-bazel/src/crypto/curve25519/
H A Dspake25519_test.cc77 uint8_t alice_key[64], bob_key[64]; in Run() local
80 if (!SPAKE2_process_msg(alice.get(), alice_key, &alice_key_len, in Run()
81 sizeof(alice_key), bob_msg, bob_msg_len) || in Run()
88 OPENSSL_memcmp(alice_key, bob_key, alice_key_len) == 0); in Run()
/dports/security/R-cran-openssl/openssl/man/
H A Dec_dh.Rd27 alice_key <- ec_keygen("P-521")
31 alice_pub <- as.list(alice_key)$pubkey
35 ec_dh(alice_key, bob_pub)
/dports/security/py-pgpy/PGPy-0.5.3/tests/
H A Dtest_99_regressions.py410 alice_key, _ = PGPKey.from_blob(alice_sec)
427 pgpsig = alice_key.sign('this is a test', created=when)
538 alice_key, _ = PGPKey.from_blob(alice_sec)
542 sig1 = alice_key.sign(msg)
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/jdk/java/security/cert/CertPathValidator/nameConstraints/
H A Dgenerate.sh63 ${OPENSSL} req -newkey rsa:1024 -keyout subca/alice/alice_key.pem \
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/jdk/java/security/cert/CertPathValidator/nameConstraints/
H A Dgenerate.sh63 ${OPENSSL} req -newkey rsa:1024 -keyout subca/alice/alice_key.pem \
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/jdk/java/security/cert/CertPathValidator/nameConstraints/
H A Dgenerate.sh63 ${OPENSSL} req -newkey rsa:1024 -keyout subca/alice/alice_key.pem \
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/jdk/java/security/cert/CertPathValidator/nameConstraints/
H A Dgenerate.sh63 ${OPENSSL} req -newkey rsa:1024 -keyout subca/alice/alice_key.pem \
/dports/java/openjdk15/jdk15u-jdk-15.0.6-1-1/test/jdk/java/security/cert/CertPathValidator/nameConstraints/
H A Dgenerate.sh63 ${OPENSSL} req -newkey rsa:1024 -keyout subca/alice/alice_key.pem \
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/test/jdk/java/security/cert/CertPathValidator/nameConstraints/
H A Dgenerate.sh63 ${OPENSSL} req -newkey rsa:1024 -keyout subca/alice/alice_key.pem \

123