Searched defs:algtype (Results 1 - 21 of 21) sorted by relevance

/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh192/
H A Dfakensl.c44 int algtype, char *pkey, size_t pkeylen, int *cached)
53 int algtype, char *pkey, size_t pkeylen)
62 int algtype, des_block deskeys[], int no_keys)
81 int algtype, des_block deskeys[], int no_keys)
113 key_secretkey_is_set_g(int Keylen, int algtype) argument
43 __getpublickey_cached_g(const char remotename[MAXNETNAMELEN], int keylen, int algtype, char *pkey, size_t pkeylen, int *cached) argument
52 getpublickey_g(const char remotename[MAXNETNAMELEN], int keylen, int algtype, char *pkey, size_t pkeylen) argument
61 key_encryptsession_pk_g(const char *remotename, const char *pk, int keylen, int algtype, des_block deskeys[], int no_keys) argument
80 key_decryptsession_pk_g(const char *remotename, const char *pk, int keylen, int algtype, des_block deskeys[], int no_keys) argument
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Ddh_template.c98 dh_getpublickey(const char *remote, keylen_t keylen, algtype_t algtype, argument
124 return (__getpublickey_cached_g(remote, keylen, algtype,
134 return (getpublickey_g(remote, keylen, algtype, pk, pklen));
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Dkey_call_uid.c160 const char *pkey, keylen_t pkeylen, algtype_t algtype,
167 arg.algtype = algtype;
197 if (CLASSIC_PK_DH(arg.keylen, arg.algtype)) {
159 key_setnet_g_uid(const char *netname, const char *skey, keylen_t skeylen, const char *pkey, keylen_t pkeylen, algtype_t algtype, uid_t uid, gid_t gid) argument
H A Ddhkeys.c100 algtype_t algtype, /* in */
120 if (getsecretkey_g(netname, keylen, algtype, skey, skeylen, pw)) {
127 algtype, uid, gid) >= 0) {
134 "%d-%d", keylen, algtype);
143 "for '%s'."), keylen, algtype, netname);
152 keylen, algtype);
277 mp->algtype);
280 mp->algtype, short_passp, uid, gid,
96 get_and_set_seckey( pam_handle_t *pamh, const char *netname, keylen_t keylen, algtype_t algtype, const char *pw, uid_t uid, gid_t gid, int *get_seckey_cnt, int *good_pw_cnt, int *set_seckey_cnt, int flags, int debug) argument
/illumos-gate/usr/src/lib/libnsl/include/rpcsvc/
H A Dnis_dhext.h59 ushort_t algtype; member in struct:extdhkey
79 algtype_t algtype; member in struct:__anon3663
88 * The value a keylen or algtype mechanism_t element will be set
91 * then the keylen is set to 192 and the algtype to 0.
106 /* valid keylen and algtype check */
113 VALID_KEYALG((mp)->keylen, (mp)->algtype) &&\
138 char *__nis_get_mechanism_library(keylen_t keylen, algtype_t algtype,
141 void *__nis_get_mechanism_symbol(keylen_t keylen, algtype_t algtype,
/illumos-gate/usr/src/lib/libnsl/key/
H A Dgen_dhkeys.c171 algtype_t algtype, /* in */
174 const int classic_des = keylen == 192 && algtype == 0;
186 algtype,
231 * Set the modulus for all our 192bit (algtype=0) Diffie-Hellman operations
259 algtype_t algtype, /* in */
263 const int classic_des = keylen == 192 && algtype == 0;
285 algtype,
168 __gen_dhkeys_g(char *pkey, char *skey, keylen_t keylen, algtype_t algtype, char *pass) argument
256 __gen_common_dhkeys_g(char *xpublic, char *xsecret, keylen_t keylen, algtype_t algtype, des_block deskeys[], keynum_t keynum) argument
H A Dxcrypt.c243 algtype_t algtype, /* in */
253 const int classic_des = keylen == 192 && algtype == 0;
339 * If keylen is 192 and algtype is 0, then decrypt the same way
348 int algtype, /* in */
358 const int classic_des = keylen == 192 && algtype == 0;
240 xencrypt_g( char *secret, keylen_t keylen, algtype_t algtype, const char *passwd, const char netname[], char **encrypted_secret, bool_t do_chksum) argument
345 xdecrypt_g( char *secret, int keylen, int algtype, const char *passwd, const char netname[], bool_t do_chksum) argument
H A Dpublickey.c351 algtype_t algtype) /* in */
358 !VALID_KEYALG(keylen, algtype)) {
375 if (!xdecrypt_g(buf, keylen, algtype, passwd, netname, TRUE)) {
431 algtype_t algtype) /* in */
437 const bool_t classic_des = AUTH_DES_KEY(keylen, algtype);
459 dh_caps_str, keylen, algtype);
498 * new longer sizes!") DHEXT, add a ":keylen-algtype" suffix to hash on.
508 algtype_t algtype)
510 const bool_t classic_des = AUTH_DES_KEY(keylen, algtype);
522 (void) sprintf(tmp, ":%d-%d", keylen, algtype);
344 extract_secret_g( char *raw, char *private, int prilen, char *passwd, char *netname, keylen_t keylen, algtype_t algtype) argument
422 getkeys_ldap_g( int *err, char *netname, char *pkey, int pkeylen, char *skey, int skeylen, char *passwd, keylen_t keylen, algtype_t algtype) argument
503 netname2hashname( const char *netname, char *hashname, int bufsiz, keylen_t keylen, algtype_t algtype) argument
536 __getpublickey_flush_g(const char *netname, keylen_t keylen, algtype_t algtype) argument
546 __getpublickey_cached_g(const char netname[], keylen_t keylen, algtype_t algtype, char *pkey, size_t pkeylen, int *from_cache) argument
613 getpublickey_g( const char *netname, int keylen, int algtype, char *pkey, size_t pkeylen) argument
628 getsecretkey_g( const char *netname, keylen_t keylen, algtype_t algtype, char *skey, size_t skeylen, const char *passwd) argument
[all...]
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_misc_proc.c270 __nis_dhext_extract_pkey(netobj *no, keylen_t keylen, algtype_t algtype) argument
284 algtype == ntohs(keyent->algtype)) {
H A Dnis_sec_mechs.c347 * in the keylen or algtype fields like so:
349 * algtype = 0
430 m->algtype = 0;
444 m->algtype = NIS_SEC_CF_NA_KA;
450 m->algtype = atoi(*(flds + at_offset));
468 if (mp->algtype != tp->algtype)
503 tp->algtype = mp->algtype;
510 * Return TRUE if the mechname/alias/keylen/algtype comb
656 __nis_translate_mechanism(const char *mechname, int *keylen, int *algtype) argument
839 __nis_keyalg2mechalias( keylen_t keylen, algtype_t algtype, char *alias, size_t alias_len) argument
895 __nis_keyalg2authtype( keylen_t keylen, algtype_t algtype, char *authtype, size_t authtype_len) argument
1083 __nis_get_mechanism_library(keylen_t keylen, algtype_t algtype, char *buffer, size_t buflen) argument
1108 __nis_get_mechanism_symbol(keylen_t keylen, algtype_t algtype, const char *symname) argument
[all...]
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeylogin.c114 write_rootkey(char *secret, char *flavor, keylen_t keylen, algtype_t algtype) argument
182 (atent == algtype)) {
185 * keylen/algtype
192 fprintf(rootfile, "%s %d\n", secret, algtype);
206 fprintf(rootfile, "%s %d\n", secret, algtype);
370 mechlist[i]->algtype, secret,
390 mechlist[i]->algtype) < 0) {
402 mechlist[i]->algtype);
H A Dchkey.c166 CURMECH->algtype, short_login_pw, netname,
247 CURMECH->algtype, public,
317 CURMECH->algtype, short_login_pw))) {
509 CURMECH->algtype, secret,
531 CURMECH->algtype,
656 keylogin(keylen_t keylen, algtype_t algtype) argument
663 algtype == CURMECH->algtype) {
667 CURMECH->algtype)
677 if (keylen == 192 && algtype
733 write_rootkey(char *secret, char *flavor, keylen_t keylen, algtype_t algtype) argument
1133 algtype_t algtype = CURMECH->algtype; local
[all...]
H A Dkeyserv_cache.c45 algtype_t algtype; member in struct:cachekey
88 algtype_t algtype; /* algorithm type */ member in struct:cachekey_header
105 algtype_t algtype,
127 algtype_t algtype);
201 create_cache_file_ch(keylen_t keylen, algtype_t algtype, int sizespec) argument
214 keylen, algtype) > sizeof (filename)) {
216 "error constructing file name for mech %d-%d", keylen, algtype);
223 keylen, algtype);
230 keylen, algtype);
238 keylen, algtype);
649 print_cache(keylen_t keylen, algtype_t algtype) argument
1121 get_cache_header(keylen_t keylen, algtype_t algtype) argument
1181 create_cache_file(keylen_t keylen, algtype_t algtype, int sizespec) 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 Dkeyserv.c353 (mechs[i]->keylen < 0) || (mechs[i]->algtype < 0))
355 create_cache_file(mechs[i]->keylen, mechs[i]->algtype,
518 algtype_t algtype; local
527 if (sscanf(line, "%s %d", key, &algtype) < 2) {
530 * (algtype) so default to DES.
532 algtype = AUTH_DES_ALGTYPE;
536 addmasterkey(key, name, algtype);
903 uid, arg->algtype, arg->keylen));
H A Dsetkey.c143 * we don't need to worry about locking for the keylen + algtype
150 algtype_t algtype; member in struct:algtypelist
213 *app != NULL && (*app)->algtype != a;
232 ap->algtype = a;
241 /* don't mind duplicate (keylen,algtype) paris for now. */
539 if ((mp = getmechtype(skey->keylen, skey->algtype)) == NULL) {
590 ("storeotherrootkeys alg: %d", ap->algtype));
597 kp->keylen, ap->algtype,
614 skey.algtype = ap->algtype;
924 addmasterkey(char *master, char *netname, algtype_t algtype) argument
1381 getdeskey3( keylen_t keylen, algtype_t algtype, int desarylen, keybuf3 *public, keybuf3 *secret, uid_t uid ) argument
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dkey_call.c123 algtype_t algtype,
129 if (CLASSIC_PK_DH(keylen, algtype))
133 arg.algtype = algtype;
238 key_secretkey_is_set_g_ext(keylen_t keylen, algtype_t algtype, int use_ruid) argument
251 if (CLASSIC_PK_DH(keylen, algtype))
254 arg.algtype = algtype;
273 key_secretkey_is_set_g(keylen_t keylen, algtype_t algtype) argument
275 return (key_secretkey_is_set_g_ext(keylen, algtype,
120 key_setsecret_g( char *secretkey, keylen_t keylen, algtype_t algtype, des_block userkey) argument
282 key_secretkey_is_set_g_ruid(keylen_t keylen, algtype_t algtype) argument
310 key_encryptsession_pk_g( const char *remotename, const char *remotekey, keylen_t remotekeylen, algtype_t algtype, des_block deskey[], keynum_t keynum ) argument
380 key_decryptsession_pk_g( const char *remotename, const char *remotekey, keylen_t remotekeylen, algtype_t algtype, des_block deskey[], keynum_t keynum ) argument
449 key_encryptsession_g( const char *remotename, keylen_t keylen, algtype_t algtype, des_block deskey[], keynum_t keynum ) argument
505 key_decryptsession_g( const char *remotename, keylen_t keylen, algtype_t algtype, des_block deskey[], keynum_t keynum ) argument
621 key_setnet_g_ext( const char *netname, const char *skey, keylen_t skeylen, const char *pkey, keylen_t pkeylen, algtype_t algtype, int use_ruid) argument
697 key_setnet_g(const char *netname, const char *skey, keylen_t skeylen, const char *pkey, keylen_t pkeylen, algtype_t algtype) argument
708 key_setnet_g_ruid(const char *netname, const char *skey, keylen_t skeylen, const char *pkey, keylen_t pkeylen, algtype_t algtype) argument
732 key_get_conv_g( const char *pkey, keylen_t pkeylen, algtype_t algtype, des_block deskey[], keynum_t keynum ) argument
[all...]
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c2201 algtype_t algtype; local
2332 * private_data (col 2) and algtype extraction
2341 algtype = 0;
2345 algtype = atoi(t);
2353 if (AUTH_DES_KEY(keylen, algtype))
2362 else if (!(__nis_keyalg2authtype(keylen, algtype, auth_type,
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspdsock.c2259 uint_t algtype; local
2345 for (algtype = 0; algtype < IPSEC_NALGTYPES; algtype++) {
2346 for (algidx = 0; algidx < ipss->ipsec_nalgs[algtype];
2348 int algid = ipss->ipsec_sortlist[algtype][algidx];
2350 ipss->ipsec_alglists[algtype][algid];
2356 if (algtype == IPSEC_ALG_AUTH) {
2364 ASSERT(algtype == IPSEC_ALG_ENCR);
2392 uint_t algtype; local
3635 ipsec_algtype_t algtype; local
[all...]
H A Dsadb.c5266 sadb_x_ecomb_t *ecomb, uint8_t satype, uint8_t algtype,
5285 algp = ipss->ipsec_alglists[(algtype == SADB_X_ALGTYPE_AUTH) ?
5299 algdesc->sadb_x_algdesc_algtype = algtype;
5265 sadb_new_algdesc(uint8_t *start, uint8_t *limit, sadb_x_ecomb_t *ecomb, uint8_t satype, uint8_t algtype, uint8_t alg, uint16_t minbits, uint16_t maxbits, ipsec_stack_t *ipss) argument
H A Dspd.c366 ipsec_algtype_t algtype; local
416 for (algtype = 0; algtype < IPSEC_NALGTYPES; algtype ++) {
417 int nalgs = ipss->ipsec_nalgs[algtype];
420 if (ipss->ipsec_alglists[algtype][i] != NULL)
421 ipsec_alg_unreg(algtype, i, ns);
774 ipsec_alg_reg(ipsec_algtype_t algtype, ipsec_alginfo_t *alg, netstack_t *ns) argument
780 ASSERT(ipss->ipsec_alglists[algtype][alg->alg_id] == NULL);
781 ipsec_alg_fix_min_max(alg, algtype, n
793 ipsec_alg_unreg(ipsec_algtype_t algtype, uint8_t algid, netstack_t *ns) argument
1102 act_alg_adjust(uint_t algtype, uint_t algid, uint16_t *minbits, uint16_t *maxbits, netstack_t *ns) argument
5035 uint_t algidx, algid, algtype, mech_count, mech_idx; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecconf.c602 uint_t algtype; local
659 algtype = 0;
670 known_algs[algtype][ipsec_nalgs[algtype]] = alg;
671 ipsec_nalgs[algtype]++;
702 algtype = attr->spd_attr_tag - SPD_ATTR_AH_AUTH;

Completed in 210 milliseconds