Home
last modified time | relevance | path

Searched refs:keypair (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/crypto/openssh/
H A Dlibcrux-mlkem-mldsa.c52 libcrux_mlkem768_keypair keypair; in crypto_kem_mlkem768_keypair_seeded() local
56 keypair = libcrux_ml_kem_mlkem768_portable_generate_key_pair(rnd); in crypto_kem_mlkem768_keypair_seeded()
57 memcpy(pk, keypair.pk.data, crypto_kem_mlkem768_PUBLICKEYBYTES); in crypto_kem_mlkem768_keypair_seeded()
58 memcpy(sk, keypair.sk.data, crypto_kem_mlkem768_SECRETKEYBYTES); in crypto_kem_mlkem768_keypair_seeded()
60 explicit_bzero(&keypair, sizeof(keypair)); in crypto_kem_mlkem768_keypair_seeded()
143 libcrux_mldsa44_keypair keypair; in crypto_sign_mldsa44_keypair_seeded() local
146 keypair = libcrux_ml_dsa_ml_dsa_44_portable_generate_key_pair(rnd); in crypto_sign_mldsa44_keypair_seeded()
147 memcpy(pk, keypair.verification_key.data, MLDSA44_PUBLICKEYBYTES); in crypto_sign_mldsa44_keypair_seeded()
148 memcpy(sk, keypair.signing_key.data, MLDSA44_SECRETKEYBYTES); in crypto_sign_mldsa44_keypair_seeded()
150 explicit_bzero(&keypair, sizeof(keypair)); in crypto_sign_mldsa44_keypair_seeded()
[all …]
H A Dmlkem_mldsa.sh286 libcrux_mlkem768_keypair keypair = {0};
296 if (sizeof(keypair.pk.data) != crypto_kem_mlkem768_PUBLICKEYBYTES)
298 if (sizeof(keypair.sk.data) != crypto_kem_mlkem768_SECRETKEYBYTES)
315 keypair = libcrux_ml_kem_mlkem768_portable_generate_key_pair(kp_seed);
316 if (!libcrux_ml_kem_mlkem768_portable_validate_public_key(&keypair.pk))
318 enc_result = libcrux_ml_kem_mlkem768_portable_encapsulate(&keypair.pk,
321 &keypair.sk, &enc_result.fst);
H A Ded25519.sh101 */crypto_sign/ed25519/ref/keypair.c)
160 */crypto_sign/ed25519/ref/keypair.c)
/freebsd/crypto/openssl/demos/signature/
H A DEVP_DSA_Signature_demo.c143 OSSL_PARAM *keypair = NULL; in extract_keypair() local
145 if (EVP_PKEY_todata(pkey, EVP_PKEY_KEYPAIR, &keypair) != 1) in extract_keypair()
151 OSSL_PARAM_free(keypair); in extract_keypair()
152 keypair = NULL; in extract_keypair()
154 *p_keypair = keypair; in extract_keypair()
161 OSSL_PARAM keypair[]) in demo_sign() argument
175 if (EVP_PKEY_fromdata(pkey_ctx, &pkey, EVP_PKEY_KEYPAIR, keypair) != 1) in demo_sign()
272 OSSL_PARAM *keypair = NULL; in main() local
289 if (extract_keypair(pkey, &keypair) != 1) in main()
293 if (demo_sign(libctx, &sig_len, &sig_value, keypair) != 1) in main()
[all …]
/freebsd/crypto/libecc/scripts/
H A Dexpand_libecc.py491 def ecdsa_sign(hashfunc, keypair, message, k=None): argument
492 privkey = keypair.privkey
537 def ecdsa_verify(hashfunc, keypair, message, sig): argument
538 pubkey = keypair.pubkey
587 def eckcdsa_sign(hashfunc, keypair, message, k=None): argument
588 privkey = keypair.privkey
598 z = expand(inttostring(keypair.pubkey.Y.x), 8*getbytelen(p), "LEFT")
599 z = z + expand(inttostring(keypair.pubkey.Y.y), 8*getbytelen(p), "LEFT")
643 def eckcdsa_verify(hashfunc, keypair, message, sig): argument
644 pubkey = keypair.pubkey
[all …]
/freebsd/crypto/openssl/test/
H A Dml_kem_evp_extra_test.c428 EVP_PKEY *keypair = NULL; in test_mlx_kem_dup_partial_selection() local
436 || !TEST_int_eq(EVP_PKEY_keygen(genctx, &keypair), 1)) in test_mlx_kem_dup_partial_selection()
449 evp_keymgmt_util_copy(dest, keypair, EVP_PKEY_PUBLIC_KEY); in test_mlx_kem_dup_partial_selection()
457 if (!TEST_ptr(encctx = EVP_PKEY_CTX_new_from_pkey(testctx, keypair, NULL)) in test_mlx_kem_dup_partial_selection()
470 EVP_PKEY_free(keypair); in test_mlx_kem_dup_partial_selection()
H A Devp_extra_test.c1573 EVP_PKEY *keypair = NULL; in test_evp_get_ec_pub() local
1594 || !TEST_ptr(keypair = make_key_fromdata("EC", params))) in test_evp_get_ec_pub()
1597 if (!test_selection(keypair, EVP_PKEY_KEYPAIR)) in test_evp_get_ec_pub()
1600 if (!EVP_PKEY_get_bn_param(keypair, OSSL_PKEY_PARAM_EC_PUB_X, &x) in test_evp_get_ec_pub()
1601 || !EVP_PKEY_get_bn_param(keypair, OSSL_PKEY_PARAM_EC_PUB_Y, &y)) in test_evp_get_ec_pub()
1618 EVP_PKEY_free(keypair); in test_evp_get_ec_pub()
1920 EVP_PKEY *keypair = NULL; in test_EVP_Enveloped() local
1937 if (!TEST_ptr(keypair = load_example_rsa_key()) in test_EVP_Enveloped()
1938 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_get_size(keypair))) in test_EVP_Enveloped()
1941 &keypair, 1)) in test_EVP_Enveloped()
[all …]
/freebsd/contrib/unbound/dnscrypt/
H A Ddnscrypt.c300 cert->keypair->crypt_secretkey); in dnscrypt_server_uncurve()
313 cert->keypair->crypt_secretkey) != 0) { in dnscrypt_server_uncurve()
322 cert->keypair->crypt_secretkey) != 0) { in dnscrypt_server_uncurve()
499 cert->keypair->crypt_secretkey); in dnscrypt_server_curve()
675 if(!certs[i].keypair) in dnsc_find_cert()
854 current_cert->keypair = current_keypair; in dnsc_parse_keys()
863 current_cert->keypair->crypt_publickey); in dnsc_parse_keys()
H A Ddnscrypt.h52 KeyPair *keypair; member
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devppkey_mismatch.txt15 # Public / Private keys from other tests used for keypair testing.
59 Title = Test keypair mismatches
H A Devppkey_mismatch_ecx.txt15 # Public / Private keys from other tests used for keypair testing.
70 Title = Test keypair mismatches
H A Devppkey_dsa_sigalg.txt99 Title = Test keypair mismatches
H A Devppkey_dsa.txt98 Title = Test keypair mismatches
/freebsd/crypto/openssl/doc/man3/
H A DEVP_PKEY_fromdata.pod21 keypair.
79 Any keypair components will be selected. This includes the private key,
110 =head2 Creating an RSA keypair using raw key data
143 =head2 Creating an ECC keypair using raw key data
H A DEVP_PKEY_new.pod69 key, or both (a keypair), and along with those, key parameters if the key type
282 be the private part of the keypair without the public part, where this was
H A DOSSL_STORE_INFO.pod170 A keypair or just a private key (possibly with key parameters).
/freebsd/crypto/openssl/demos/pkey/
H A Ddsa.inc111 static int dsa_print_key(const EVP_PKEY *pkey, int keypair,
143 if (keypair) {
/freebsd/crypto/openssl/doc/man7/
H A DEVP_KEM-X25519.pod27 The encapsulate function generates an ephemeral keypair. It produces keymaterial
H A DEVP_KEM-EC.pod26 The encapsulate function generates an ephemeral keypair. It produces keymaterial
H A DEVP_PKEY-X25519.pod22 DHKEM requires the generation of a keypair using an input key material (seed).
H A DEVP_PKEY-EC.pod152 DHKEM requires the generation of a keypair using an input key material (seed).
/freebsd/crypto/openssl/demos/
H A DREADME.txt32 rsa_encrypt.c Encrypt and decrypt data using an RSA keypair.
/freebsd/sys/dev/wg/
H A Dif_wg.c2142 struct noise_keypair *keypair; in wg_peer_send_staged() local
2151 if ((keypair = noise_keypair_current(peer->p_remote)) == NULL) in wg_peer_send_staged()
2155 if (noise_keypair_nonce_next(keypair, &pkt->p_nonce) != 0) in wg_peer_send_staged()
2159 pkt->p_keypair = noise_keypair_ref(keypair); in wg_peer_send_staged()
2164 noise_keypair_put(keypair); in wg_peer_send_staged()
2168 noise_keypair_put(keypair); in wg_peer_send_staged()
/freebsd/usr.sbin/pkg/
H A Decc.c56 ec_key_pair keypair; member
/freebsd/sys/contrib/libsodium/src/libsodium/
H A DMakefile.am72 crypto_sign/ed25519/ref10/keypair.c \

12