Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/crypto/openssl/demos/signature/
H A DEVP_DSA_Signature_demo.c123 OSSL_PARAM *public_key = NULL; in extract_public_key() local
125 if (EVP_PKEY_todata(pkey, EVP_PKEY_PUBLIC_KEY, &public_key) != 1) in extract_public_key()
131 OSSL_PARAM_free(public_key); in extract_public_key()
132 public_key = NULL; in extract_public_key()
134 *p_public_key = public_key; in extract_public_key()
226 OSSL_PARAM public_key[]) in demo_verify() argument
238 if (EVP_PKEY_fromdata(pkey_ctx, &pkey, EVP_PKEY_PUBLIC_KEY, public_key) != 1) in demo_verify()
271 OSSL_PARAM *public_key = NULL; in main() local
286 if (extract_public_key(pkey, &public_key) != 1) in main()
297 if (demo_verify(libctx, sig_len, sig_value, public_key) != 1) in main()
[all …]
/freebsd/crypto/openssl/crypto/ct/
H A Dct_log.c29 EVP_PKEY *public_key; member
256 CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name, OSSL_LIB_CTX *libctx, in CTLOG_new_ex() argument
275 if (ct_v1_log_id_from_pkey(ret, public_key) != 1) in CTLOG_new_ex()
278 ret->public_key = public_key; in CTLOG_new_ex()
285 CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name) in CTLOG_new() argument
287 return CTLOG_new_ex(public_key, name, NULL, NULL); in CTLOG_new()
295 EVP_PKEY_free(log->public_key); in CTLOG_free()
315 return log->public_key; in CTLOG_get0_public_key()
/freebsd/crypto/openssl/test/
H A Dml_kem_internal_test.c106 ML_KEM_KEY *public_key = NULL; in sanity_test() local
123 public_key = ossl_ml_kem_key_new(NULL, NULL, alg[i]); in sanity_test()
125 if (private_key == NULL || public_key == NULL in sanity_test()
126 || (v = ossl_ml_kem_key_vinfo(public_key)) == NULL) in sanity_test()
155 public_key)) in sanity_test()
169 public_key)) in sanity_test()
235 ossl_ml_kem_key_free(public_key); in sanity_test()
/freebsd/contrib/wireguard-tools/
H A Dshow.c216 terminal_printf(" " TERMINAL_BOLD "public key" TERMINAL_RESET ": %s\n", key(device->public_key)); in pretty_print()
228 …OLD "peer" TERMINAL_RESET ": " TERMINAL_FG_YELLOW "%s" TERMINAL_RESET "\n", key(peer->public_key)); in pretty_print()
261 printf("%s\t", maybe_key(device->public_key, device->flags & WGDEVICE_HAS_PUBLIC_KEY)); in dump_print()
270 printf("%s\t", key(peer->public_key)); in dump_print()
298 printf("%s\n", maybe_key(device->public_key, device->flags & WGDEVICE_HAS_PUBLIC_KEY)); in ugly_print()
318 printf("%s\t", key(peer->public_key)); in ugly_print()
328 printf("%s\t", key(peer->public_key)); in ugly_print()
339 … printf("%s\t%llu\n", key(peer->public_key), (unsigned long long)peer->last_handshake_time.tv_sec); in ugly_print()
345 …printf("%s\t%" PRIu64 "\t%" PRIu64 "\n", key(peer->public_key), (uint64_t)peer->rx_bytes, (uint64_… in ugly_print()
352 printf("%s\t%u\n", key(peer->public_key), peer->persistent_keepalive_interval); in ugly_print()
[all …]
H A Dipc-freebsd.h103 if (binary && size == sizeof(dev->public_key)) { in kernel_get_device()
104 memcpy(dev->public_key, binary, sizeof(dev->public_key)); in kernel_get_device()
131 if (binary && size == sizeof(peer->public_key)) { in kernel_get_device()
132 memcpy(peer->public_key, binary, sizeof(peer->public_key)); in kernel_get_device()
295 nvlist_add_binary(nvl_peers[i], "public-key", peer->public_key, sizeof(peer->public_key)); in kernel_set_device()
H A Dsetconf.c66 pubkeys[i].pubkey = peer->public_key; in sync_conf()
71 pubkeys[i].pubkey = peer->public_key; in sync_conf()
89 memcpy(peer->public_key, pubkeys[i].pubkey, WG_KEY_LEN); in sync_conf()
H A Dcontainers.h57 uint8_t public_key[WG_KEY_LEN]; member
88 uint8_t public_key[WG_KEY_LEN]; member
H A Dipc-uapi.h56 key_to_hex(hex, peer->public_key); in userspace_set_device()
178 curve25519_generate_public(dev->public_key, dev->private_key); in userspace_get_device()
199 if (!key_from_hex(peer->public_key, value)) in userspace_get_device()
H A Dshowconf.c51 key_to_base64(base64, peer->public_key); in showconf_main()
/freebsd/crypto/openssh/regress/misc/sk-dummy/
H A Dsk-dummy.c101 response->public_key = NULL; in pack_key_ecdsa()
128 if ((response->public_key = malloc(response->public_key_len)) == NULL) { in pack_key_ecdsa()
133 response->public_key, response->public_key_len, NULL) == 0) { in pack_key_ecdsa()
156 if (response->public_key != NULL) { in pack_key_ecdsa()
157 memset(response->public_key, 0, in pack_key_ecdsa()
159 free(response->public_key); in pack_key_ecdsa()
160 response->public_key = NULL; in pack_key_ecdsa()
184 response->public_key = NULL; in pack_key_ed25519()
194 if ((response->public_key = malloc(response->public_key_len)) == NULL) { in pack_key_ed25519()
198 memcpy(response->public_key, pk, sizeof(pk)); in pack_key_ed25519()
[all …]
/freebsd/crypto/openssl/include/crypto/
H A Decx.h97 const uint8_t public_key[32], const uint8_t private_key[32],
102 const uint8_t signature[64], const uint8_t public_key[32],
111 const uint8_t public_key[57], const uint8_t private_key[57],
117 const uint8_t signature[114], const uint8_t public_key[57],
/freebsd/crypto/openssl/crypto/x509/
H A Dx_pubkey.c33 ASN1_BIT_STRING *public_key; member
65 ASN1_SIMPLE(X509_PUBKEY, public_key, ASN1_BIT_STRING)
91 ASN1_BIT_STRING_free(pubkey->public_key); in x509_pubkey_ex_free()
105 && (pubkey->public_key != NULL in x509_pubkey_ex_populate()
106 || (pubkey->public_key = ASN1_BIT_STRING_new()) != NULL); in x509_pubkey_ex_populate()
299 || (pubkey->public_key = ASN1_BIT_STRING_new()) == NULL in X509_PUBKEY_dup()
300 || !ASN1_BIT_STRING_set(pubkey->public_key, in X509_PUBKEY_dup()
301 a->public_key->data, in X509_PUBKEY_dup()
302 a->public_key->length)) { in X509_PUBKEY_dup()
1013 ASN1_STRING_set0(pub->public_key, penc, penclen); in X509_PUBKEY_set0_public_key()
[all …]
/freebsd/crypto/openssh/
H A Dlibcrux_mlkem768_sha3.h8177 Eurydice_slice public_key, in libcrux_ml_kem_serialize_deserialize_ring_elements_reduced_1b() argument
8180 i < Eurydice_slice_len(public_key, uint8_t) / in libcrux_ml_kem_serialize_deserialize_ring_elements_reduced_1b()
8185 public_key, i0 * LIBCRUX_ML_KEM_CONSTANTS_BYTES_PER_RING_ELEMENT, in libcrux_ml_kem_serialize_deserialize_ring_elements_reduced_1b()
8650 Eurydice_slice public_key, in libcrux_ml_kem_ind_cpa_build_unpacked_public_key_mut_3f() argument
8654 public_key, (size_t)1152U, uint8_t, size_t, uint8_t[]); in libcrux_ml_kem_ind_cpa_build_unpacked_public_key_mut_3f()
8658 public_key, (size_t)1152U, uint8_t, size_t, uint8_t[]); in libcrux_ml_kem_ind_cpa_build_unpacked_public_key_mut_3f()
8677 Eurydice_slice public_key) { in libcrux_ml_kem_ind_cpa_build_unpacked_public_key_3f() argument
8680 libcrux_ml_kem_ind_cpa_build_unpacked_public_key_mut_3f(public_key, in libcrux_ml_kem_ind_cpa_build_unpacked_public_key_3f()
9590 libcrux_ml_kem_ind_cpa_unpacked_IndCpaPublicKeyUnpacked_a0 *public_key, in libcrux_ml_kem_ind_cpa_encrypt_unpacked_2a() argument
9594 randomness, public_key->A, in libcrux_ml_kem_ind_cpa_encrypt_unpacked_2a()
[all …]
H A Dsk-usbhid.c613 response->public_key = NULL; in pack_public_key_ecdsa()
649 if ((response->public_key = malloc(response->public_key_len)) == NULL) { in pack_public_key_ecdsa()
654 response->public_key, response->public_key_len, NULL) == 0) { in pack_public_key_ecdsa()
661 if (ret != 0 && response->public_key != NULL) { in pack_public_key_ecdsa()
662 memset(response->public_key, 0, response->public_key_len); in pack_public_key_ecdsa()
663 free(response->public_key); in pack_public_key_ecdsa()
664 response->public_key = NULL; in pack_public_key_ecdsa()
682 response->public_key = NULL; in pack_public_key_ed25519()
694 if ((response->public_key = malloc(response->public_key_len)) == NULL) { in pack_public_key_ed25519()
698 memcpy(response->public_key, ptr, len); in pack_public_key_ed25519()
[all …]
H A Dkexecdh.c53 const EC_POINT *public_key; in kex_ecdh_keypair() local
66 public_key = EC_KEY_get0_public_key(client_key); in kex_ecdh_keypair()
72 if ((r = sshbuf_put_ec(buf, public_key, group)) != 0 || in kex_ecdh_keypair()
H A Dssh-sk.c185 freezero(r->public_key, r->public_key_len); in sshsk_free_enroll_response()
230 resp->public_key, resp->public_key_len)) != 0) { in sshsk_ecdsa_assemble()
295 memcpy(key->ed25519_pk, resp->public_key, ED25519_PK_SZ); in sshsk_ed25519_assemble()
315 if (resp->public_key == NULL || resp->key_handle == NULL) { in sshsk_key_from_response()
765 freezero(rks[i]->key.public_key, rks[i]->key.public_key_len); in sshsk_free_sk_resident_keys()
H A Dsk-api.h43 uint8_t *public_key; member
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_dh.c26 ASN1_INTEGER *public_key = NULL; in dh_cms_set_peerkey() local
51 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, plen)) == NULL) in dh_cms_set_peerkey()
58 if ((bnpub = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) in dh_cms_set_peerkey()
74 ASN1_INTEGER_free(public_key); in dh_cms_set_peerkey()
/freebsd/crypto/openssl/crypto/ec/curve448/
H A Deddsa.c382 const uint8_t public_key[57], const uint8_t private_key[57], in ossl_ed448_sign()
386 return ossl_c448_ed448_sign(ctx, out_sig, private_key, public_key, message, in ossl_ed448_sign()
404 const uint8_t signature[114], const uint8_t public_key[57], in ossl_ed448_verify()
408 return ossl_c448_ed448_verify(ctx, signature, public_key, message, in ossl_ed448_verify()
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ameth.c37 ASN1_INTEGER *public_key = NULL; in dsa_pub_decode() local
65 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dsa_pub_decode()
70 if ((dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dsa_pub_decode()
76 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
81 ASN1_INTEGER_free(public_key); in dsa_pub_decode()
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_ameth.c68 ASN1_INTEGER *public_key = NULL; in dh_pub_decode() local
90 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dh_pub_decode()
96 if ((dh->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dh_pub_decode()
101 ASN1_INTEGER_free(public_key); in dh_pub_decode()
106 ASN1_INTEGER_free(public_key); in dh_pub_decode()
/freebsd/crypto/heimdal/kdc/
H A Dpkinit.c53 BIGNUM *public_key; member
58 EC_KEY *public_key; member
181 if (cp->u.dh.public_key) in _kdc_pk_free_client_param()
182 BN_free(cp->u.dh.public_key); in _kdc_pk_free_client_param()
188 if (cp->u.ecdh.public_key) in _kdc_pk_free_client_param()
189 EC_KEY_free(cp->u.ecdh.public_key); in _kdc_pk_free_client_param()
217 if (client_params->u.dh.public_key == NULL) { in generate_dh_keyblock()
239 dh_gen_keylen = DH_compute_key(dh_gen_key,client_params->u.dh.public_key, client_params->u.dh.key); in generate_dh_keyblock()
255 if (client_params->u.ecdh.public_key == NULL) { in generate_dh_keyblock()
267 EC_KEY_get0_group(client_params->u.ecdh.public_key)); in generate_dh_keyblock()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DCTLOG_new.pod14 CTLOG *CTLOG_new_ex(EVP_PKEY *public_key, const char *name,
16 CTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name);
/freebsd/contrib/wpa/src/wps/
H A Dwps_attr_parse.h66 const u8 *public_key; member
/freebsd/contrib/openresolv/
H A Dresolvconf.in162 public_key() {
182 if public_key "$key"; then
204 if public_key "$key"; then

12