HomeSort by: relevance | last modified time | path
    Searched defs:keypair (Results 1 - 10 of 10) sorted by relevancy

  /src/crypto/external/apache2/openssl/dist/demos/signature/
EVP_DSA_Signature_demo.c 12 * methods to calculate public/private DSA keypair and to sign and verify
143 OSSL_PARAM *keypair = NULL; local
145 if (EVP_PKEY_todata(pkey, EVP_PKEY_KEYPAIR, &keypair) != 1)
151 OSSL_PARAM_free(keypair);
152 keypair = NULL;
154 *p_keypair = keypair;
161 OSSL_PARAM keypair[])
175 if (EVP_PKEY_fromdata(pkey_ctx, &pkey, EVP_PKEY_KEYPAIR, keypair) != 1)
272 OSSL_PARAM *keypair = NULL; local
289 if (extract_keypair(pkey, &keypair) != 1
    [all...]
  /src/crypto/external/bsd/openssh/dist/
libcrux-mlkem-mldsa.c 52 libcrux_mlkem768_keypair keypair; local
56 keypair = libcrux_ml_kem_mlkem768_portable_generate_key_pair(rnd);
57 memcpy(pk, keypair.pk.data, crypto_kem_mlkem768_PUBLICKEYBYTES);
58 memcpy(sk, keypair.sk.data, crypto_kem_mlkem768_SECRETKEYBYTES);
60 explicit_bzero(&keypair, sizeof(keypair));
143 libcrux_mldsa44_keypair keypair; local
146 keypair = libcrux_ml_dsa_ml_dsa_44_portable_generate_key_pair(rnd);
147 memcpy(pk, keypair.verification_key.data, MLDSA44_PUBLICKEYBYTES);
148 memcpy(sk, keypair.signing_key.data, MLDSA44_SECRETKEYBYTES)
    [all...]
  /src/crypto/external/apache2/openssl/dist/test/
ml_kem_evp_extra_test.c 428 EVP_PKEY *keypair = NULL; local
433 /* Generate an MLX KEM keypair */
436 || !TEST_int_eq(EVP_PKEY_keygen(genctx, &keypair), 1))
449 evp_keymgmt_util_copy(dest, keypair, EVP_PKEY_PUBLIC_KEY);
453 * Verify the original keypair is still intact by performing an
457 if (!TEST_ptr(encctx = EVP_PKEY_CTX_new_from_pkey(testctx, keypair, NULL))
470 EVP_PKEY_free(keypair);
evp_extra_test.c 1444 EVP_PKEY *keypair = NULL; local
1465 || !TEST_ptr(keypair = make_key_fromdata("EC", params)))
1468 if (!test_selection(keypair, EVP_PKEY_KEYPAIR))
1471 if (!EVP_PKEY_get_bn_param(keypair, OSSL_PKEY_PARAM_EC_PUB_X, &x)
1472 || !EVP_PKEY_get_bn_param(keypair, OSSL_PKEY_PARAM_EC_PUB_Y, &y))
1489 EVP_PKEY_free(keypair);
1791 EVP_PKEY *keypair = NULL; local
1808 if (!TEST_ptr(keypair = load_example_rsa_key())
1809 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_get_size(keypair)))
1812 &keypair, 1)
    [all...]
  /src/external/bsd/unbound/dist/dnscrypt/
dnscrypt.h 47 } KeyPair;
52 KeyPair *keypair; member in struct:cert_
63 KeyPair *keypairs;
  /src/crypto/external/bsd/netpgp/dist/src/lib/
openssl_crypto.c 797 RSA *keypair = makeRSA(pubkey, seckey); local
801 if (RSA_check_key(keypair) != 1) {
807 n = RSA_private_decrypt((int)length, in, out, keypair, RSA_NO_PADDING);
820 RSA_free(keypair);
889 \brief Generates an RSA keypair
1003 \brief Creates a self-signed RSA keypair
1007 \return The new keypair or NULL
netpgp.c 1398 const pgp_key_t *keypair; local
1416 if ((keypair = resolve_userid(netpgp, netpgp->secring, userid)) == NULL) {
1433 pgp_print_keydata(io, netpgp->pubring, keypair, "signature ",
1434 &keypair->key.seckey.pubkey, 0);
1442 seckey = pgp_decrypt_seckey(keypair, netpgp->passfp);
1528 const pgp_key_t *keypair; local
1545 if ((keypair = resolve_userid(netpgp, netpgp->secring, userid)) == NULL) {
1562 pgp_print_keydata(io, netpgp->pubring, keypair, "signature ",
1563 &keypair->key.seckey.pubkey, 0);
1571 seckey = pgp_decrypt_seckey(keypair, netpgp->passfp)
1673 const pgp_key_t *keypair; local
    [all...]
reader.c 2218 const pgp_key_t *keypair; local
2244 keypair = cbinfo->cryptinfo.keydata;
2246 pubkey = keypair;
2255 secret = pgp_decrypt_seckey(keypair, cbinfo->passfp);
  /src/crypto/external/bsd/openssl.old/dist/test/
evp_extra_test.c 961 EVP_PKEY *keypair = NULL; local
969 if (!TEST_ptr(keypair = load_example_rsa_key())
970 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_size(keypair)))
973 &keypair, 1))
982 if (!TEST_true(EVP_OpenInit(ctx, type, kek, kek_len, iv, keypair))
995 EVP_PKEY_free(keypair);
  /src/crypto/external/bsd/openssl/dist/test/
evp_extra_test.c 1294 EVP_PKEY *keypair = NULL; local
1311 if (!TEST_ptr(keypair = load_example_rsa_key())
1312 || !TEST_ptr(kek = OPENSSL_zalloc(EVP_PKEY_get_size(keypair)))
1315 &keypair, 1))
1324 if (!TEST_true(EVP_OpenInit(ctx, type, kek, kek_len, iv, keypair))
1339 EVP_PKEY_free(keypair);

Completed in 140 milliseconds