Home
last modified time | relevance | path

Searched refs:key_len (Results 1 – 16 of 16) sorted by relevance

/glibc-2.36/crypt/
Dsha256-crypt.c108 size_t key_len; in __sha256_crypt_r() local
143 key_len = strlen (key); in __sha256_crypt_r()
149 if (__libc_use_alloca (alloca_used + key_len + __alignof__ (uint32_t))) in __sha256_crypt_r()
150 tmp = alloca_account (key_len + __alignof__ (uint32_t), alloca_used); in __sha256_crypt_r()
153 free_key = tmp = (char *) malloc (key_len + __alignof__ (uint32_t)); in __sha256_crypt_r()
161 key, key_len); in __sha256_crypt_r()
195 sha256_process_bytes (key, key_len, &ctx, nss_ctx); in __sha256_crypt_r()
207 sha256_process_bytes (key, key_len, &alt_ctx, nss_alt_ctx); in __sha256_crypt_r()
213 sha256_process_bytes (key, key_len, &alt_ctx, nss_alt_ctx); in __sha256_crypt_r()
220 for (cnt = key_len; cnt > 32; cnt -= 32) in __sha256_crypt_r()
[all …]
Dsha512-crypt.c108 size_t key_len; in __sha512_crypt_r() local
143 key_len = strlen (key); in __sha512_crypt_r()
149 if (__libc_use_alloca (alloca_used + key_len + __alignof__ (uint64_t))) in __sha512_crypt_r()
150 tmp = alloca_account (key_len + __alignof__ (uint64_t), alloca_used); in __sha512_crypt_r()
153 free_key = tmp = (char *) malloc (key_len + __alignof__ (uint64_t)); in __sha512_crypt_r()
161 key, key_len); in __sha512_crypt_r()
194 sha512_process_bytes (key, key_len, &ctx, nss_ctx); in __sha512_crypt_r()
206 sha512_process_bytes (key, key_len, &alt_ctx, nss_alt_ctx); in __sha512_crypt_r()
212 sha512_process_bytes (key, key_len, &alt_ctx, nss_alt_ctx); in __sha512_crypt_r()
219 for (cnt = key_len; cnt > 64; cnt -= 64) in __sha512_crypt_r()
[all …]
Dmd5-crypt.c96 size_t key_len; in __md5_crypt_r() local
111 key_len = strlen (key); in __md5_crypt_r()
117 if (__libc_use_alloca (alloca_used + key_len + __alignof__ (md5_uint32))) in __md5_crypt_r()
118 tmp = (char *) alloca (key_len + __alignof__ (md5_uint32)); in __md5_crypt_r()
121 free_key = tmp = (char *) malloc (key_len + __alignof__ (md5_uint32)); in __md5_crypt_r()
129 key, key_len); in __md5_crypt_r()
162 md5_process_bytes (key, key_len, &ctx, nss_ctx); in __md5_crypt_r()
180 md5_process_bytes (key, key_len, &alt_ctx, nss_alt_ctx); in __md5_crypt_r()
186 md5_process_bytes (key, key_len, &alt_ctx, nss_alt_ctx); in __md5_crypt_r()
193 for (cnt = key_len; cnt > 16; cnt -= 16) in __md5_crypt_r()
[all …]
/glibc-2.36/nscd/
Dinitgrcache.c209 + req->key_len), 1)) != NULL) in addinitgroupsX()
213 + req->key_len), total, in addinitgroupsX()
220 char *key_copy = memcpy (dataset->strdata, key, req->key_len); in addinitgroupsX()
229 + sizeof (struct dataset) + req->key_len, MS_ASYNC); in addinitgroupsX()
232 (void) cache_add (req->type, key_copy, req->key_len, in addinitgroupsX()
256 dataset = (struct dataset *) mempool_alloc (db, total + req->key_len, in addinitgroupsX()
264 dataset = (struct dataset *) alloca (total + req->key_len); in addinitgroupsX()
270 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addinitgroupsX()
296 memcpy (cp, key, req->key_len); in addinitgroupsX()
307 if (total + req->key_len == dh->allocsize in addinitgroupsX()
[all …]
Dservicescache.c120 + req->key_len), 1)) != NULL) in cache_addserv()
124 + req->key_len), total, in cache_addserv()
131 memcpy (dataset->strdata, key, req->key_len); in cache_addserv()
140 + sizeof (struct dataset) + req->key_len, MS_ASYNC); in cache_addserv()
143 (void) cache_add (req->type, &dataset->strdata, req->key_len, in cache_addserv()
191 dataset = (struct dataset *) mempool_alloc (db, total + req->key_len, in cache_addserv()
199 dataset = (struct dataset *) alloca (total + req->key_len); in cache_addserv()
205 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in cache_addserv()
232 char *key_copy = memcpy (cp, key, req->key_len); in cache_addserv()
240 if (total + req->key_len == dh->allocsize in cache_addserv()
[all …]
Dnetgroupcache.c89 dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1); in do_notfound()
94 sizeof (struct dataset) + req->key_len, in do_notfound()
101 memcpy (dataset->strdata, key, req->key_len); in do_notfound()
135 size_t buflen = MAX (1024, sizeof (*dataset) + req->key_len); in addgetnetgrentX()
199 buflen - buffilled - req->key_len, &e); in addgetnetgrentX()
231 if (buflen - req->key_len - bufused < needed) in addgetnetgrentX()
358 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addgetnetgrentX()
368 assert (buflen - buffilled >= req->key_len); in addgetnetgrentX()
369 key_copy = memcpy (buffer + buffilled, key, req->key_len); in addgetnetgrentX()
370 buffilled += req->key_len; in addgetnetgrentX()
[all …]
Dhstcache.c150 + req->key_len), 1)) != NULL) in cache_addhst()
154 + req->key_len), total, in cache_addhst()
162 memcpy (dataset->strdata, key, req->key_len); in cache_addhst()
171 + sizeof (struct dataset) + req->key_len, MS_ASYNC); in cache_addhst()
174 (void) cache_add (req->type, &dataset->strdata, req->key_len, in cache_addhst()
239 dataset = (struct dataset *) mempool_alloc (db, total + req->key_len, in cache_addhst()
247 dataset = (struct dataset *) alloca (total + req->key_len); in cache_addhst()
253 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in cache_addhst()
294 key_copy = memcpy (cp, key, req->key_len); in cache_addhst()
304 if (total + req->key_len == dh->allocsize in cache_addhst()
[all …]
Daicache.c161 + req->key_len, 1); in addhstaiX()
168 dataset = (struct dataset *) alloca (total + req->key_len); in addhstaiX()
333 + req->key_len, 1); in addhstaiX()
340 dataset = (struct dataset *) alloca (total + req->key_len); in addhstaiX()
362 timeout = datahead_init_pos (&dataset->head, total + req->key_len, in addhstaiX()
378 key_copy = memcpy (cp, key, req->key_len); in addhstaiX()
388 if (total + req->key_len == dh->allocsize in addhstaiX()
406 = (struct dataset *) mempool_alloc (db, total + req->key_len, in addhstaiX()
413 dataset = memcpy (newp, dataset, total + req->key_len); in addhstaiX()
475 + req->key_len), 1)) != NULL) in addhstaiX()
[all …]
Dnscd_netgroup.c168 size_t key_len = (strlen (netgroup) + strlen (host ?: "") in __nscd_innetgr() local
171 bool use_alloca = __libc_use_alloca (key_len); in __nscd_innetgr()
173 key = alloca (key_len); in __nscd_innetgr()
176 key = malloc (key_len); in __nscd_innetgr()
202 key_len = wp - key; in __nscd_innetgr()
219 key_len, mapped, in __nscd_innetgr()
236 sock = __nscd_open_socket (key, key_len, INNETGR, in __nscd_innetgr()
Dpwdcache.c132 + req->key_len), 1)) != NULL) in cache_addpw()
136 + req->key_len), total, in cache_addpw()
143 char *key_copy = memcpy (dataset->strdata, key, req->key_len); in cache_addpw()
152 + sizeof (struct dataset) + req->key_len, MS_ASYNC); in cache_addpw()
155 (void) cache_add (req->type, key_copy, req->key_len, in cache_addpw()
175 const size_t key_len = strlen (key); in cache_addpw() local
176 const size_t buf_len = 3 * sizeof (pwd->pw_uid) + key_len + 1; in cache_addpw()
333 if (cache_add (GETPWBYNAME, key_copy, key_len + 1, in cache_addpw()
452 .key_len = he->len in readdpwbyname()
495 .key_len = he->len in readdpwbyuid()
Dgrpcache.c125 else if ((dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1)) != NULL) in cache_addgr()
129 + req->key_len), total, in cache_addgr()
136 memcpy (dataset->strdata, key, req->key_len); in cache_addgr()
145 + sizeof (struct dataset) + req->key_len, MS_ASYNC); in cache_addgr()
148 (void) cache_add (req->type, &dataset->strdata, req->key_len, in cache_addgr()
169 const size_t key_len = strlen (key); in cache_addgr() local
170 const size_t buf_len = 3 * sizeof (grp->gr_gid) + key_len + 1; in cache_addgr()
354 if (cache_add (GETGRBYNAME, key_copy, key_len + 1, in cache_addgr()
473 .key_len = he->len in readdgrbyname()
516 .key_len = he->len in readdgrbygid()
Dconnections.c1137 cached = (struct datahead *) cache_search (req->type, key, req->key_len, in handle_request()
1665 if (__builtin_expect (req.key_len, 1) < 0 in nscd_run_worker()
1666 || __builtin_expect (req.key_len, 1) > MAXKEYLEN) in nscd_run_worker()
1669 dbg_log (_("key length in request too long: %d"), req.key_len); in nscd_run_worker()
1677 req.key_len)) in nscd_run_worker()
1678 != req.key_len, 0)) in nscd_run_worker()
1686 keybuf[req.key_len] = '\0'; in nscd_run_worker()
Dnscd.c351 reqdata->req.key_len = dbname_len; in invalidate_db()
396 req.key_len = 0; in send_shutdown()
Dnscd-client.h84 int32_t key_len; /* Key length. */ member
Dnscd_stat.c201 req.key_len = 0; in receive_print_stats()
Dnscd_helper.c191 reqdata->req.key_len = keylen; in open_socket()