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

  /src/usr.sbin/wg-keygen/
wg-keygen.c 63 gen_pubkey(uint8_t key[CURVE25519_SIZE], uint8_t pubkey[CURVE25519_SIZE])
67 crypto_scalarmult_curve25519(pubkey, key, basepoint);
119 uint8_t pubkey[KEY_LEN]; local in function:main
130 gen_pubkey(key, pubkey);
131 printf("%s\n", base64(pubkey));
wg-keygen.c 63 gen_pubkey(uint8_t key[CURVE25519_SIZE], uint8_t pubkey[CURVE25519_SIZE])
67 crypto_scalarmult_curve25519(pubkey, key, basepoint);
119 uint8_t pubkey[KEY_LEN]; local in function:main
130 gen_pubkey(key, pubkey);
131 printf("%s\n", base64(pubkey));
  /src/usr.sbin/syslogd/
sign.h 177 EVP_PKEY *pubkey; member in struct:sign_global_t
sign.h 177 EVP_PKEY *pubkey; member in struct:sign_global_t
sign.c 102 switch (EVP_PKEY_base_id(GlobalSign.pubkey)) {
121 GlobalSign.pubkey);
157 * GlobalSign.privkey, and GlobalSign.pubkey
162 EVP_PKEY *pubkey = NULL, *privkey = NULL; local in function:sign_get_keys
185 if (!(pubkey = X509_get_pubkey(cert))) {
193 * - but pubkey has to be freed with EVP_PKEY_free()
197 if (EVP_PKEY_DSA != EVP_PKEY_base_id(pubkey)) {
199 EVP_PKEY_free(pubkey);
201 pubkey = NULL;
207 GlobalSign.pubkey = pubkey
    [all...]
sign.c 102 switch (EVP_PKEY_base_id(GlobalSign.pubkey)) {
121 GlobalSign.pubkey);
157 * GlobalSign.privkey, and GlobalSign.pubkey
162 EVP_PKEY *pubkey = NULL, *privkey = NULL; local in function:sign_get_keys
185 if (!(pubkey = X509_get_pubkey(cert))) {
193 * - but pubkey has to be freed with EVP_PKEY_free()
197 if (EVP_PKEY_DSA != EVP_PKEY_base_id(pubkey)) {
199 EVP_PKEY_free(pubkey);
201 pubkey = NULL;
207 GlobalSign.pubkey = pubkey
    [all...]
  /src/lib/libresolv/
dst_api.c 334 DST_KEY *dg_key = NULL, *pubkey = NULL; local in function:dst_read_key
352 if ((pubkey = dst_s_read_public_key(keyname, in_id, in_alg)) == NULL)
356 return pubkey;
358 if (!(dg_key = dst_s_get_key_struct(keyname, pubkey->dk_alg,
359 (int)pubkey->dk_flags,
360 pubkey->dk_proto, 0)))
363 if (dst_s_read_private_key_file(keyname, dg_key, pubkey->dk_id,
364 pubkey->dk_alg) == 0)
367 (void)dst_free_key(pubkey);
dst_api.c 334 DST_KEY *dg_key = NULL, *pubkey = NULL; local in function:dst_read_key
352 if ((pubkey = dst_s_read_public_key(keyname, in_id, in_alg)) == NULL)
356 return pubkey;
358 if (!(dg_key = dst_s_get_key_struct(keyname, pubkey->dk_alg,
359 (int)pubkey->dk_flags,
360 pubkey->dk_proto, 0)))
363 if (dst_s_read_private_key_file(keyname, dg_key, pubkey->dk_id,
364 pubkey->dk_alg) == 0)
367 (void)dst_free_key(pubkey);
  /src/sys/net/
if_wg.c 1079 wg_algo_generate_keypair(uint8_t pubkey[static WG_EPHEMERAL_KEY_LEN],
1086 crypto_scalarmult_base(pubkey, privkey);
1092 const uint8_t pubkey[static WG_STATIC_KEY_LEN])
1097 int ret __diagused = crypto_scalarmult(out, privkey, pubkey);
1441 uint8_t pubkey[WG_EPHEMERAL_KEY_LEN]; local in function:wg_fill_msg_init
1464 wg_algo_generate_keypair(pubkey, privkey);
1466 wg_algo_kdf(ckey, NULL, NULL, ckey, pubkey, sizeof(pubkey));
1468 memcpy(wgmi->wgmi_ephemeral, pubkey, sizeof(wgmi->wgmi_ephemeral));
1470 wg_algo_hash(hash, pubkey, sizeof(pubkey))
2013 uint8_t pubkey[WG_EPHEMERAL_KEY_LEN]; local in function:wg_fill_msg_resp
4660 const void *pubkey; local in function:wg_handle_prop_peer
    [all...]
if_wg.c 1079 wg_algo_generate_keypair(uint8_t pubkey[static WG_EPHEMERAL_KEY_LEN],
1086 crypto_scalarmult_base(pubkey, privkey);
1092 const uint8_t pubkey[static WG_STATIC_KEY_LEN])
1097 int ret __diagused = crypto_scalarmult(out, privkey, pubkey);
1441 uint8_t pubkey[WG_EPHEMERAL_KEY_LEN]; local in function:wg_fill_msg_init
1464 wg_algo_generate_keypair(pubkey, privkey);
1466 wg_algo_kdf(ckey, NULL, NULL, ckey, pubkey, sizeof(pubkey));
1468 memcpy(wgmi->wgmi_ephemeral, pubkey, sizeof(wgmi->wgmi_ephemeral));
1470 wg_algo_hash(hash, pubkey, sizeof(pubkey))
2013 uint8_t pubkey[WG_EPHEMERAL_KEY_LEN]; local in function:wg_fill_msg_resp
4660 const void *pubkey; local in function:wg_handle_prop_peer
    [all...]

Completed in 85 milliseconds