Home
last modified time | relevance | path

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

12

/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/openssh/
H A Dmlkem768.sh108 struct libcrux_mlkem768_keypair keypair = {0};
116 if (sizeof(keypair.pk.value) != crypto_kem_mlkem768_PUBLICKEYBYTES)
118 if (sizeof(keypair.sk.value) != crypto_kem_mlkem768_SECRETKEYBYTES)
131 keypair = libcrux_ml_kem_mlkem768_portable_generate_key_pair(kp_seed);
132 if (!libcrux_ml_kem_mlkem768_portable_validate_public_key(&keypair.pk))
134 enc_result = libcrux_ml_kem_mlkem768_portable_encapsulate(&keypair.pk,
136 libcrux_ml_kem_mlkem768_portable_decapsulate(&keypair.sk,
H A Dkexmlkem768x25519.c59 struct libcrux_mlkem768_keypair keypair; in kex_kem_mlkem768x25519_keypair() local
67 keypair = libcrux_ml_kem_mlkem768_portable_generate_key_pair(rnd); in kex_kem_mlkem768x25519_keypair()
68 memcpy(cp, keypair.pk.value, crypto_kem_mlkem768_PUBLICKEYBYTES); in kex_kem_mlkem768x25519_keypair()
69 memcpy(kex->mlkem768_client_key, keypair.sk.value, in kex_kem_mlkem768x25519_keypair()
85 explicit_bzero(&keypair, sizeof(keypair)); in kex_kem_mlkem768x25519_keypair()
H A Ded25519.sh68 */crypto_sign/ed25519/ref/keypair.c)
/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/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/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()
491 cert->keypair->crypt_secretkey); in dnscrypt_server_curve()
835 current_cert->keypair = current_keypair; in dnsc_parse_keys()
844 current_cert->keypair->crypt_publickey); in dnsc_parse_keys()
H A Ddnscrypt.h52 KeyPair *keypair; member
/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).
H A Dd2i_RSAPrivateKey.pod5 Any deprecated keypair/params d2i or i2d functions are collected on this page.
/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/crypto/openssl/test/
H A Devp_extra_test.c1418 EVP_PKEY *keypair = NULL; in test_evp_get_ec_pub() local
1439 || !TEST_ptr(keypair = make_key_fromdata("EC", params))) in test_evp_get_ec_pub()
1442 if (!test_selection(keypair, EVP_PKEY_KEYPAIR)) in test_evp_get_ec_pub()
1445 if (!EVP_PKEY_get_bn_param(keypair, OSSL_PKEY_PARAM_EC_PUB_X, &x) in test_evp_get_ec_pub()
1446 || !EVP_PKEY_get_bn_param(keypair, OSSL_PKEY_PARAM_EC_PUB_Y, &y)) in test_evp_get_ec_pub()
1463 EVP_PKEY_free(keypair); in test_evp_get_ec_pub()
1765 EVP_PKEY *keypair = NULL; in test_EVP_Enveloped() local
1782 if (!TEST_ptr(keypair = load_example_rsa_key()) in test_EVP_Enveloped()
1783 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_get_size(keypair))) in test_EVP_Enveloped()
1786 &keypair, 1)) in test_EVP_Enveloped()
[all …]
/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