Searched defs:public (Results 1 - 18 of 18) sorted by relevance

/freebsd-head/crypto/heimdal/lib/hx509/
H A Dtest_soft_pkcs11.c90 CK_OBJECT_HANDLE public, private; local
145 ret = find_object(session, "cert", CKO_PUBLIC_KEY, &public);
171 ret = (*func->C_VerifyInit)(session, &mechanism, public);
192 ret = (*func->C_EncryptInit)(session, &mechanism, public);
/freebsd-head/crypto/openssh/regress/unittests/kex/
H A Dtest_kex.c5 * Placed in the public domain
84 struct sshkey *private, *public; local
95 ASSERT_INT_EQ(sshkey_from_private(private, &public), 0);
113 ASSERT_INT_EQ(ssh_add_hostkey(client, public), 0);
170 sshkey_free(public);
/freebsd-head/usr.bin/newkey/
H A Dgeneric.c72 * Generate a random public/secret key pair
75 genkeys(char *public, char *secret, char *pass) argument
107 adjust(public, xkey);
H A Dnewkey.c99 char public[HEXKEYBYTES + 1]; local
139 genkeys(public, secret, pass);
155 if ((status = setpublicmap(name, public, crypt1))) {
179 * Set the entry in the public key file
182 setpublicmap(char *name, char *public, char *secret) argument
186 (void)sprintf(pkent, "%s:%s", public, secret);
/freebsd-head/usr.bin/chkey/
H A Dchkey.c45 * Command to change one's public key in the public key database
84 char public[HEXKEYBYTES + 1]; local
162 genkeys(public, secret, pass);
180 status = setpublicmap(name, public, crypt1);
230 * Set the entry in the public key file
233 setpublicmap(char *name, char *public, char *secret) argument
237 (void)sprintf(pkent,"%s:%s", public, secret);
/freebsd-head/usr.sbin/keyserv/
H A Dsetkey.c105 * Encrypt the key using the public key associated with remote_name and the
119 * Decrypt the key using the public key associated with remote_name and the
174 MINT *public; local
201 public = mp_xtom(xpublic);
203 /* Sanity Check on public and private keys */
204 if ((public == NULL) || (secret == NULL))
208 mp_pow(public, secret, MODULUS, common);
212 mp_mfree(public);
231 MINT *public; local
251 public
494 keybuf public; member in struct:cachekey_list
[all...]
/freebsd-head/contrib/telnet/libtelnet/
H A Dpk.c35 /* public key routines */
37 genkeys(char *public, char *secret)
38 common_key(char *secret, char *public, desData *deskey)
42 char public[HEXKEYBYTES + 1];
116 * get common key from my secret key and his public key
121 MINT *public; local
126 public = mp_xtom(xpublic);
129 mp_pow(public, secret, modulus, common);
135 mp_mfree(public);
149 * Generate a random public/secre
152 genkeys(char *public, char *secret) argument
[all...]
/freebsd-head/crypto/openssh/
H A Dssh-add.c112 struct sshkey *public, *cert = NULL; local
116 if ((r = sshkey_load_public(filename, &public, &comment)) != 0) {
120 if ((r = ssh_remove_identity(agent_fd, public)) == 0) {
144 if (!sshkey_equal_public(cert, public))
160 sshkey_free(public);
515 fprintf(stderr, " -L List public key parameters of all identities.\n");
H A Dssh.c1397 * enabled, load the public keys so we can later use the ssh-keysign
1996 struct sshkey *public; local
2051 check_load(sshkey_load_public(filename, &public, NULL),
2054 public ? public->type : -1);
2057 identity_keys[n_ids] = public;
2070 check_load(sshkey_load_public(cp, &public, NULL),
2073 public ? public->type : -1);
2074 if (public
[all...]
H A Dssh-keygen.c664 fatal("%s: %s is not a recognised public key format", __func__,
812 fatal("cannot read public key from pkcs11");
856 fingerprint_one_key(const struct sshkey *public, const char *comment) argument
864 fp = sshkey_fingerprint(public, fptype, rep);
865 ra = sshkey_fingerprint(public, fingerprint_hash, SSH_FP_RANDOMART);
868 mprintf("%u %s %s (%s)\n", sshkey_size(public), fp,
869 comment ? comment : "no comment", sshkey_type(public));
881 struct sshkey *public = NULL; local
886 if ((r = sshkey_load_public(path, &public, &comment)) != 0) {
887 debug("load public \"
904 struct sshkey *public = NULL; local
1020 struct sshkey *private, *public; local
1438 struct sshkey *public; local
1467 struct sshkey *public; local
1636 struct sshkey **keys = NULL, *public, *private = NULL; local
1679 struct sshkey *ca, *public; local
2432 struct sshkey *private, *public; local
[all...]
H A Dsshkey.c624 * Compare public portions of key only, allowing comparisons between
2342 * Returns the expected signature algorithm for a given public key algorithm.
3225 sshkey_ec_validate_public(const EC_GROUP *group, const EC_POINT *public) argument
3233 * NB. This assumes OpenSSL has already verified that the public
3236 * reachable with public points not unmarshalled using
3253 if (EC_POINT_is_at_infinity(group, public))
3266 EC_POINT_get_affine_coordinates_GFp(group, public,
3280 if (EC_POINT_mul(group, nq, NULL, public, order, bnctx) != 1) {
3617 /* parse public portion of key */
/freebsd-head/sys/arm/allwinner/
H A Daw_sid.c78 bool public; member in struct:aw_sid_efuse
88 .public = true,
100 .public = true,
109 .public = true,
121 .public = true,
130 .public = true,
142 .public = true,
151 .public = false,
163 .public = true,
172 .public
[all...]
/freebsd-head/crypto/heimdal/kdc/
H A Dpkinit.c438 EC_KEY *public = NULL; local
472 public = EC_KEY_new_by_curve_name(nid);
476 if (o2i_ECPublicKey(&public, &p, len) == NULL) {
482 client_params->u.ecdh.public_key = public;
483 public = NULL;
486 if (public)
487 EC_KEY_free(public);
2029 "certifiate with a public key");
/freebsd-head/contrib/less/
H A Dless.h61 #define public /* PUBLIC FUNCTION */ macro
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dpkinit.c553 /* copy in public key, XXX find the best curve that the server support or use the clients curve if possible */
576 /* copy in public key */
1458 EC_KEY *public = NULL; local
1462 public = EC_KEY_new();
1463 if (public == NULL) {
1467 if (EC_KEY_set_group(public, group) != 1) {
1468 EC_KEY_free(public);
1473 if (o2i_ECPublicKey(&public, &p, size) == NULL) {
1474 EC_KEY_free(public);
1477 N_("PKINIT: Can't parse ECDH public ke
[all...]
/freebsd-head/contrib/mandoc/
H A Dmandocdb.c1904 render_string(char **public, size_t *psz) argument
1919 src = scp = *public;
2007 *public = dst;
2013 while (*psz > 0 && (*public)[*psz - 1] == ' ')
2016 (*public)[*psz] = '\0';
/freebsd-head/sys/dev/mwl/
H A Dmwlhal.c117 MWL_HAL_BASTREAM public; /* public state */ member in struct:mwl_hal_bastream
154 struct mwl_hal public; /* public area */ member in struct:mwl_hal_priv
219 return bus_space_read_4(mh->public.mh_iot, mh->public.mh_ioh, off);
225 bus_space_write_4(mh->public.mh_iot, mh->public.mh_ioh, off, val);
256 mh->public.mh_ioh = ioh;
257 mh->public
[all...]
/freebsd-head/contrib/file/src/
H A Dfile.h107 #define public __attribute__ ((__visibility__("default"))) macro
112 #define public macro

Completed in 106 milliseconds