Home
last modified time | relevance | path

Searched refs:keylen (Results 1 – 25 of 100) sorted by relevance

1234

/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_match.c67 int keylen; member
109 ((n->key = malloc(keylen)) == 0) || in makenode()
139 if ((c->keylen == keylen) && in in_cache()
200 (key == NULL) || (keylen == 0)) in __yp_match_cflookup()
277 c->keylen = keylen; in __yp_match_cflookup()
308 int keylen, in yp_match() argument
359 int keylen, in __yp_match_rsvdport_cflookup() argument
384 (key == NULL) || (keylen == 0)) in __yp_match_rsvdport_cflookup()
472 c->keylen = keylen; in __yp_match_rsvdport_cflookup()
493 int keylen, in yp_match_rsvdport() argument
[all …]
/illumos-gate/usr/src/cmd/keyserv/
H A Dkeyserv_cache.h52 #define KEYLEN(keylen) (((keylen)+7)/8) argument
55 #define DHKEYALLOC(keylen) ALIGN4(sizeof (struct dhkey) + KEYLEN(keylen)) argument
68 #define CACHEKEY3_LIST_SIZE(keylen) (sizeof (struct cachekey3_list) + \ argument
70 2*(ALIGN4(2*KEYLEN(keylen)+1)) + \
73 int create_cache_file(keylen_t keylen, algtype_t algtype,
76 int cache_insert(keylen_t keylen, algtype_t algtype,
82 struct cachekey3_list *cache_retrieve(keylen_t keylen, algtype_t algtype,
86 int cache_remove(keylen_t keylen, algtype_t algtype,
90 void print_cache(keylen_t keylen, algtype_t algtype);
H A Dkeyserv_cache.c44 keylen_t keylen; member
75 #define SKCK_LEN(keylen) ALIGN8(sizeof (struct skck) + KEYLEN(keylen)) argument
78 KEYLEN(keylen) + SKCK_LEN(keylen))
223 keylen, algtype); in create_cache_file_ch()
230 keylen, algtype); in create_cache_file_ch()
294 ch->keylen != keylen || in create_cache_file_ch()
335 ch->keylen = keylen; in create_cache_file_ch()
1128 if (c->keylen == keylen && c->algtype == algtype) { in get_cache_header()
1146 c->keylen = keylen; in get_cache_header()
1204 keylen_t keylen, in cache_insert() argument
[all …]
H A Dchkey.c530 CURMECH->keylen, in getsecrets()
662 if (keylen == CURMECH->keylen && in keylogin()
665 CURMECH->keylen, in keylogin()
677 if (keylen == 192 && algtype == 0) in keylogin()
793 if (keylen == 192) { in write_rootkey()
820 if (keylen == 192) in write_rootkey()
1012 realmechlist[i]->keylen; in addmechtolist()
1132 keylen_t keylen = CURMECH->keylen; in main() local
1143 keylen, algtype); in main()
1231 CURMECH->keylen, in main()
[all …]
H A Dkeylogin.c112 write_rootkey(char *secret, char *flavor, keylen_t keylen, algtype_t algtype) in write_rootkey() argument
157 hexkeybytes = ((keylen + 7) / 8) * 2; in write_rootkey()
172 if (keylen == 192) { in write_rootkey()
199 if (keylen == 192) in write_rootkey()
211 if (keylen == 192) in write_rootkey()
367 if (getsecretkey_g(fullname, mechlist[i]->keylen, in main()
369 (((mechlist[i]->keylen / 7) + in main()
387 mechlist[i]->keylen, NULL, 0, in main()
399 mechlist[i]->keylen, in main()
H A Dsetkey.c154 keylen_t keylen; member
192 kp->keylen = k; in appendkeylist()
595 kp->keylen, ap->algtype, in storeotherrootkeys()
611 skey.keylen = kp->keylen; in storeotherrootkeys()
926 keylen_t keylen = bytelen*4; in addmasterkey() local
949 tmp.keylen = keylen; in addmasterkey()
1106 if (net->keylen == 0) { in fetch_netname3()
1380 keylen_t keylen, in getdeskey3() argument
1464 keylen, algtype, in getdeskey3()
1512 arg->keylen, arg->algtype, in pk_get_conv_key3()
[all …]
/illumos-gate/usr/src/lib/libnsl/key/
H A Dpublickey.c152 int keylen, err, r = 0; in getkeys_nis() local
350 keylen_t keylen, /* in */ in extract_secret_g() argument
357 !VALID_KEYALG(keylen, algtype)) { in extract_secret_g()
429 keylen_t keylen, /* in */ in getkeys_ldap_g() argument
458 dh_caps_str, keylen, algtype); in getkeys_ldap_g()
506 keylen_t keylen, in netname2hashname() argument
548 keylen_t keylen, /* in */ in __getpublickey_cached_g() argument
573 keylen, algtype); in __getpublickey_cached_g()
616 int keylen, /* in */ in getpublickey_g() argument
631 keylen_t keylen, /* in */ in getsecretkey_g() argument
[all …]
H A Dgen_dhkeys.c170 keylen_t keylen, /* in */ in __gen_dhkeys_g() argument
174 const int classic_des = keylen == 192 && algtype == 0; in __gen_dhkeys_g()
185 if (dlfp = (int (*)())__nis_get_mechanism_symbol(keylen, in __gen_dhkeys_g()
258 keylen_t keylen, /* in */ in __gen_common_dhkeys_g() argument
263 const int classic_des = keylen == 192 && algtype == 0; in __gen_common_dhkeys_g()
284 if (dlfp = (int (*)())__nis_get_mechanism_symbol(keylen, in __gen_common_dhkeys_g()
H A Dxcrypt.c242 keylen_t keylen, /* in */ in xencrypt_g() argument
253 const int classic_des = keylen == 192 && algtype == 0; in xencrypt_g()
254 const int hexkeybytes = BITS2NIBBLES(keylen); in xencrypt_g()
256 const int binkeybytes = do_chksum ? keylen/8 + keychecksumsize/2 : in xencrypt_g()
257 keylen/8; in xencrypt_g()
262 if (!secret || !keylen || !passwd || !encrypted_secret) in xencrypt_g()
347 int keylen, /* in */ in xdecrypt_g() argument
358 const int classic_des = keylen == 192 && algtype == 0; in xdecrypt_g()
359 const int hexkeybytes = BITS2NIBBLES(keylen); in xdecrypt_g()
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Dgeneric_key.c77 adjust(char *keyout, char *keyin, int keylen) in adjust() argument
81 int hexkeybytes = (keylen+3)/4; in adjust()
102 __generic_gen_dhkeys(int keylen, /* Size of keys in bits */ in __generic_gen_dhkeys() argument
130 len = ((keylen + BASEBITS - 1) / BASEBITS); in __generic_gen_dhkeys()
161 (void) adjust(secret, xkey, keylen); in __generic_gen_dhkeys()
167 (void) adjust(public, xkey, keylen); in __generic_gen_dhkeys()
183 extractdeskeys(MINT *ck, int keylen, des_block keys[], int keynum) in extractdeskeys() argument
203 for (i = 0; i < ((keylen - len)/2)/8; i++) in extractdeskeys()
221 if (keylen == 192) /* Old broken way for compatibility */ in extractdeskeys()
242 int keylen, /* All the keys have this many bits */ in __generic_common_dhkeys() argument
[all …]
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSShared/
H A Ddnssd_clientlib.c72 unsigned long *keylen in InternalTXTRecordSearch() argument
77 *keylen = (unsigned long) strlen(key); in InternalTXTRecordSearch()
82 if (p <= e && *keylen <= x[0] && !strncasecmp(key, (char*)x+1, *keylen)) in InternalTXTRecordSearch()
83 if (*keylen == x[0] || x[1+*keylen] == '=') return(x); in InternalTXTRecordSearch()
248 unsigned long keylen, itemlen, remainder; in TXTRecordRemoveValue() local
275 unsigned long keylen; in TXTRecordContainsKey() local
276 return (InternalTXTRecordSearch(txtLen, txtRecord, key, &keylen) ? 1 : 0); in TXTRecordContainsKey()
287 unsigned long keylen; in TXTRecordGetValuePtr() local
288 uint8_t *item = InternalTXTRecordSearch(txtLen, txtRecord, key, &keylen); in TXTRecordGetValuePtr()
290 *valueLen = (uint8_t)(item[0] - (keylen + 1)); in TXTRecordGetValuePtr()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dkey_call.c122 keylen_t keylen, in key_setsecret_g() argument
134 arg.keylen = keylen; in key_setsecret_g()
253 arg.keylen = keylen; in key_secretkey_is_set_g_ext()
337 arg.keylen = remotekeylen; in key_encryptsession_pk_g()
451 keylen_t keylen, in key_encryptsession_g() argument
464 arg.keylen = keylen; in key_encryptsession_g()
507 keylen_t keylen, in key_decryptsession_g() argument
520 arg.keylen = keylen; in key_decryptsession_g()
652 arg.keylen = pkeylen; in key_setnet_g_ext()
658 arg.keylen = skeylen; in key_setnet_g_ext()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dsuntpi.c148 size_t keylen; in tpi_findprov() local
157 key = tpi_makekey(WR(q), &keylen); in tpi_findprov()
159 if (keylen == 0) { in tpi_findprov()
170 if ((*tpp)->tpi_keylen == keylen && in tpi_findprov()
171 bcmp((*tpp)->tpi_key, key, keylen) == 0) { in tpi_findprov()
181 (*tpp)->tpi_key = kmem_alloc(keylen, KM_SLEEP); in tpi_findprov()
182 bcopy(key, (*tpp)->tpi_key, keylen); in tpi_findprov()
183 (*tpp)->tpi_keylen = keylen; in tpi_findprov()
/illumos-gate/usr/src/lib/libnsl/nis/gen/
H A Dnis_sec_mechs.c429 m->keylen = 192; in get_secfile_ent()
434 m->keylen = NIS_SEC_CF_NA_KA; in get_secfile_ent()
466 if (mp->keylen != tp->keylen) in equal_entries()
502 tp->keylen = mp->keylen; in sf_copy_mech_ent()
666 *keylen = AUTH_DES_KEYLEN; in __nis_translate_mechanism()
679 *keylen = mp->keylen; in __nis_translate_mechanism()
686 *keylen = mp->keylen; in __nis_translate_mechanism()
840 keylen_t keylen, /* in */ in __nis_keyalg2mechalias() argument
850 if (AUTH_DES_KEY(keylen, algtype)) { in __nis_keyalg2mechalias()
868 if (keylen == mp->keylen && in __nis_keyalg2mechalias()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Dgenkey.c63 keylength = keylen; in genkey_nss()
109 char *keylabel, KMF_KEY_ALG keyAlg, int keylen, in genkey_pkcs11() argument
167 keylength = keylen; /* bits */ in genkey_pkcs11()
286 keylength = keylen; in genkey_file()
370 int keylen = 0; in pk_genkey() local
468 keylen = 64; /* fixed size; ignore input */ in pk_genkey()
470 keylen = 192; /* fixed size; ignore input */ in pk_genkey()
478 if (sscanf(keylenstr, "%d", &keylen) != 1) { in pk_genkey()
484 if (keylen == 0 || (keylen % 8) != 0) { in pk_genkey()
538 keylabel, keyAlg, keylen, &tokencred); in pk_genkey()
[all …]
H A Dgenkeypair.c61 keylength = keylen; /* bits */ in genkeypair_pkcs11()
163 keylength = keylen; /* bits */ in genkeypair_file()
228 int keylen, KMF_CREDENTIAL *tokencred, in genkeypair_nss() argument
247 keylength = keylen; /* bits */ in genkeypair_nss()
329 int keylen = PK_DEFAULT_KEYLENGTH; in pk_genkeypair() local
382 &keylen) != 1) { in pk_genkeypair()
469 keylen = 1024; in pk_genkeypair()
470 else if (keylen > 1024 || keylen < 512) { in pk_genkeypair()
501 tokenname, label, dir, prefix, keyAlg, keylen, in pk_genkeypair()
506 tokenname, label, keyAlg, keylen, in pk_genkeypair()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dmd5.c209 int keylen = strlen (key); in md5_password() local
238 md5_update (key, keylen); in md5_password()
240 md5_update (key, keylen); in md5_password()
246 md5_update (key, keylen); in md5_password()
248 for (i = keylen; i > 16; i -= 16) in md5_password()
252 for (i = keylen; i > 0; i >>= 1) in md5_password()
253 md5_update (key + ((i & 1) ? keylen : 0), 1); in md5_password()
263 md5_update (key, keylen); in md5_password()
271 md5_update (key, keylen); in md5_password()
276 md5_update (key, keylen); in md5_password()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dencrypt.c163 int keylen; member
747 kp->keylen = 0; in encrypt_keyid()
752 if (kp->keylen == 0) in encrypt_keyid()
754 kp->keylen = 0; in encrypt_keyid()
758 } else if ((len != kp->keylen) || in encrypt_keyid()
763 kp->keylen = len; in encrypt_keyid()
787 (void) memcpy(kp->keyid, keyid, keylen); in encrypt_send_keyid()
788 kp->keylen = keylen; in encrypt_send_keyid()
791 for (strp = &str_keyid[4]; keylen > 0; --keylen) { in encrypt_send_keyid()
846 for (i = 0; i < ki[KI_ENCRYPT].keylen; ++i) { in encrypt_start_output()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dudb.c141 int keylen; local
219 key.size = keylen;
222 keybuf, keylen);
245 keybuf, keylen);
363 key.size = keylen;
393 key.size = keylen;
396 keybuf, keylen);
495 key.size = keylen;
602 int keylen; local
651 key.size = keylen;
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.c210 uint32_t keylen; in soft_dh_key_derive() local
226 keylen = OBJ_SEC_VALUE_LEN(secretkey); in soft_dh_key_derive()
227 if (keylen > sizeof (key)) { /* check for overflow */ in soft_dh_key_derive()
240 rv = dh_key_derive(&k, secretkey->key_type, key, &keylen, 0); in soft_dh_key_derive()
246 if ((OBJ_SEC_VALUE(secretkey) = malloc(keylen)) == NULL) { in soft_dh_key_derive()
251 OBJ_SEC_VALUE_LEN(secretkey) = keylen; in soft_dh_key_derive()
252 (void) memcpy(OBJ_SEC_VALUE(secretkey), key, keylen); in soft_dh_key_derive()
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_vpd.c503 uint8_t keylen; in efx_vpd_hunk_verify() local
531 taglen, pos, &keyword, &keylen)) != 0) in efx_vpd_hunk_verify()
657 uint8_t keylen; in efx_vpd_hunk_next() local
686 taglen, pos, &keyword, &keylen)) != 0) in efx_vpd_hunk_next()
691 paylen = keylen; in efx_vpd_hunk_next()
734 uint8_t keylen; in efx_vpd_hunk_get() local
761 *paylenp = keylen; in efx_vpd_hunk_get()
798 uint8_t keylen; in efx_vpd_hunk_set() local
868 taglen, pos, &keyword, &keylen)) != 0) in efx_vpd_hunk_set()
874 source = offset + pos + 3 + keylen; in efx_vpd_hunk_set()
[all …]
/illumos-gate/usr/src/lib/pam_modules/dhkeys/
H A Ddhkeys.c99 keylen_t keylen, /* in */ in get_and_set_seckey() argument
114 skeylen = BITS2NIBBLES(keylen) + 1; in get_and_set_seckey()
120 if (getsecretkey_g(netname, keylen, algtype, skey, skeylen, pw)) { in get_and_set_seckey()
126 if (key_setnet_g_uid(netname, skey, keylen, NULL, 0, in get_and_set_seckey()
134 "%d-%d", keylen, algtype); in get_and_set_seckey()
143 "for '%s'."), keylen, algtype, netname); in get_and_set_seckey()
152 keylen, algtype); in get_and_set_seckey()
277 "key type = %d-%d", mp->keylen, in establish_key()
280 if (!get_and_set_seckey(pamh, netname, mp->keylen, in establish_key()
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_encrypt_pkcs.c82 smb3_crypto_param_t *param, uint8_t *key, size_t keylen, in smb3_encrypt_init() argument
85 return (smb3_crypto_init(ctxp, mech, key, keylen, param, B_TRUE)); in smb3_encrypt_init()
90 smb3_crypto_param_t *param, uint8_t *key, size_t keylen) in smb3_decrypt_init() argument
92 return (smb3_crypto_init(ctxp, mech, key, keylen, param, B_FALSE)); in smb3_decrypt_init()
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh192/
H A Dfakensl.c41 __getpublickey_cached_g(const char remotename[], int keylen, in __getpublickey_cached_g() argument
50 getpublickey_g(const char remotename[], int keylen, in getpublickey_g() argument
59 key_encryptsession_pk_g(const char *remotename, const char *pk, int keylen, in key_encryptsession_pk_g() argument
78 key_decryptsession_pk_g(const char *remotename, const char *pk, int keylen, in key_decryptsession_pk_g() argument
/illumos-gate/usr/src/lib/libnsl/include/rpcsvc/
H A Dnis_dhext.h58 ushort_t keylen; member
78 keylen_t keylen; member
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,

1234