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

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.c47 uchar_t *buf, uint32_t buflen, boolean_t public)
57 if (public)
166 * The integer public value y shall be converted to an octet
167 * string PV of length k, the public value.
46 soft_genDHkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type, uchar_t *buf, uint32_t buflen, boolean_t public) argument
H A DsoftDSA.c406 uchar_t *value, uint32_t value_len, boolean_t public)
416 if (public)
423 if (public)
430 if (public)
437 if (public)
525 /* Update attribute in public key. */
405 soft_genDSAkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type, uchar_t *value, uint32_t value_len, boolean_t public) argument
H A DsoftRSA.c668 * Perform RSA decryption with the signer's RSA public key
748 uchar_t *buf, uint32_t buflen, boolean_t public)
758 if (public)
766 if (public)
906 * Add modulus in public template, and add all eight key fields
1198 * Perform RSA decryption with the signer's RSA public key
747 soft_genRSAkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type, uchar_t *buf, uint32_t buflen, boolean_t public) argument
H A DsoftKeystoreUtil.c53 #define PUB_OBJ_DIR "public" /* directory for public objects */
138 * value will be 0 for public objects. (uchar_t[16])
140 * being tampered this value will be 0 for public objects (uchar_t[16])
379 /* can't create directory for public objects */
683 if (ks_handle->public) {
1924 ks_handle.public = B_TRUE;
1953 ks_handle.public = B_FALSE;
2032 if (!(ks_handle->public)) {
2053 (obj->ks_handle).public
2192 soft_keystore_put_new_obj(uchar_t *buf, size_t len, boolean_t public, boolean_t lock_held, ks_obj_handle_t *keyhandle) argument
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Dgeneric_key.c98 * the public key as PublicKey = root^PrivateKey % modulus. This routine
105 char *public, /* Public key */
110 MINT *pk = mp_itom(0); /* Initial public key */
156 /* The public key is root^sk % modulus */
164 /* Now set xkey to the hex representation of the public key */
166 /* Set leading zeros and store in public */
167 (void) adjust(public, xkey, keylen);
102 __generic_gen_dhkeys(int keylen, char *xmodulus, int proot, char *public, char *secret, char *pass ) argument
/illumos-gate/usr/src/lib/libnsl/key/
H A Dgen_dhkeys.c109 * public and secret are buffers of size HEXKEYBYTES + 1.
112 __gen_dhkeys(public, secret, pass)
113 char *public;
152 (void) adjust(public, xkey);
270 MINT *public; local
275 public = mp_xtom(xpublic);
278 mp_pow(public, secret, MODULUS_192_0, common);
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c87 char public[HEXKEYBYTES + 1]; local
211 (void) __gen_dhkeys(public, secret, short_pass);
218 if (status = setpublicmap(name, public, crypt1, pk_database,
243 * Set the entry in the public key file
246 setpublicmap(name, public, secret, database, pw)
249 char *public;
258 (void) sprintf(pkent, "%s:%s", public, secret);
292 return (ldap_update("dh192-0", name, public, secret, pw));
H A Dchkey.c84 char **plist = NULL; /* List of public key(s) */
200 /* Initialize the array of public, secret, and encrypted secret keys */
228 /* Retrieve public key(s) */
237 char *public; local
241 if (!(public = (char *)malloc(hexkeylen))) {
247 CURMECH->algtype, public,
249 /* Could not get public key */
251 "Could not get %s public key.\n",
254 free(public);
255 public
262 char *public; local
297 char *public, *secret; local
333 char *public, *secret; local
[all...]
H A Dchkey_common.c469 char *public,
484 keys[0] = public;
730 char *public,
845 pkeyatval = (char *)malloc(strlen(mechname) + strlen(public) + 3);
853 sprintf(pkeyatval, "{%s}%s", mechname, public);
878 /* Entry exists, modify attributes for public and secret keys */
467 ldap_attr_mod(ns_ldap_entry_t *entry, char *mechname, char *public, ns_ldap_attr_t **pkeyattrs, char *crypt, ns_ldap_attr_t **ckeyattrs) argument
728 ldap_update(char *mechname, char *netname, char *public, char *crypt, char *passwd) argument
H A Dkeyserv_cache.c67 struct dhkey public; member in struct:cachekey_disklist
114 keybuf3 *public,
119 keybuf3 *public,
124 keybuf3 *public);
794 * Find the cache item specified by the header, uid, and public key. If
795 * no such uid/public item exists, return a pointer to an empty record.
800 find_cache_item(struct cachekey_header **ch, uid_t uid, struct dhkey *public) argument
812 public->length == cd->public.length &&
813 memcmp(public
852 cache_insert_ch( struct cachekey_header *ch, uid_t uid, deskeyarray common, des_block key, keybuf3 *public, keybuf3 *secret) argument
991 cache_retrieve_ch(struct cachekey_header *ch, uid_t uid, keybuf3 *public, des_block key) argument
1041 cache_remove_ch(struct cachekey_header *ch, uid_t uid, keybuf3 *public) argument
1203 cache_insert( keylen_t keylen, algtype_t algtype, uid_t uid, deskeyarray common, des_block key, keybuf3 *public, keybuf3 *secret) argument
1233 cache_retrieve( keylen_t keylen, algtype_t algtype, uid_t uid, keybuf3 *public, des_block key) argument
1259 cache_remove(keylen_t keylen, algtype_t algtype, uid_t uid, keybuf3 *public) argument
[all...]
H A Dsetkey.c82 keybuf public; member in struct:cachekey_list
450 cachehit3(keybuf3 *public, keybuf3 *secret, struct cachekey3_list *cp) argument
452 return (cmpkeybuf3(public, cp->public) &&
699 * Encrypt the key using the public key associated with remote_name and the
713 * Encrypt the key using the public key associated with remote_name and the
727 * Decrypt the key using the public key associated with remote_name and the
741 * Decrypt the key using the public key associated with remote_name and the
926 keybuf3 *secret, *public; local
934 if ((public
1285 MINT *public; local
1365 map_ps2cache(keybuf3 *public, keybuf3 *secret, struct psdata *pdp) argument
1381 getdeskey3( keylen_t keylen, algtype_t algtype, int desarylen, keybuf3 *public, keybuf3 *secret, uid_t uid ) argument
1648 MINT *public; local
[all...]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Decc.c846 uchar_t *public; local
884 if ((rv = crypto_get_key_attr(key, CKA_EC_POINT, &public,
888 ECkey.publicValue.data = public;
1047 ECPrivateKey *privKey; /* contains both public and private values */
1102 /* public output template must contain CKA_EC_POINT attribute */

Completed in 80 milliseconds