Debian Codegraph @

templates/man3/crypt.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: Dd
20 #: debian-trixie debian-unstable
21 #, no-wrap
22 msgid "October 11, 2017"
23 msgstr ""
24
25 #. type: Dt
26 #: debian-trixie debian-unstable
27 #, no-wrap
28 msgid "CRYPT 3"
29 msgstr ""
30
31 #. type: Os
32 #: debian-trixie debian-unstable
33 #, no-wrap
34 msgid "Openwall Project"
35 msgstr ""
36
37 #. type: Sh
38 #: debian-trixie debian-unstable
39 #, no-wrap
40 msgid "NAME"
41 msgstr ""
42
43 #. type: Plain text
44 #: debian-trixie debian-unstable
45 msgid "E<.Nm crypt , crypt_r , crypt_rn , crypt_ra>"
46 msgstr ""
47
48 #. type: Nd
49 #: debian-trixie debian-unstable
50 #, no-wrap
51 msgid "passphrase hashing"
52 msgstr ""
53
54 #. type: Sh
55 #: debian-trixie debian-unstable
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr ""
59
60 #. type: Plain text
61 #: debian-trixie debian-unstable
62 msgid "E<.Lb libcrypt>"
63 msgstr ""
64
65 #. type: Sh
66 #: debian-trixie debian-unstable
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr ""
70
71 #. type: In
72 #: debian-trixie debian-unstable
73 #, no-wrap
74 msgid "crypt.h"
75 msgstr ""
76
77 #. type: Plain text
78 #: debian-trixie debian-unstable
79 msgid ""
80 "E<.Ft \"char *\"> E<.Fo crypt> E<.Fa \"const char *phrase\"> E<.Fa \"const "
81 "char *setting\"> E<.Fc> E<.Ft \"char *\"> E<.Fo crypt_r> E<.Fa \"const char "
82 "*phrase\"> E<.Fa \"const char *setting\"> E<.Fa \"struct crypt_data *data\"> "
83 "E<.Fc> E<.Ft \"char *\"> E<.Fo crypt_rn> E<.Fa \"const char *phrase\"> E<.Fa "
84 "\"const char *setting\"> E<.Fa \"struct crypt_data *data\"> E<.Fa \"int "
85 "size\"> E<.Fc> E<.Ft \"char *\"> E<.Fo crypt_ra> E<.Fa \"const char "
86 "*phrase\"> E<.Fa \"const char *setting\"> E<.Fa \"void **data\"> E<.Fa \"int "
87 "*size\"> E<.Fc>"
88 msgstr ""
89
90 #. type: Sh
91 #: debian-trixie debian-unstable
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 #. type: Plain text
97 #: debian-trixie debian-unstable
98 msgid ""
99 "The E<.Nm crypt>, E<.Nm crypt_r>, E<.Nm crypt_rn>, and E<.Nm crypt_ra> "
100 "functions irreversibly E<.Dq hash> E<.Fa phrase> for storage in the system "
101 "password database E<.Pq Xr shadow 5> using a cryptographic E<.Dq hashing "
102 "method.> The result of this operation is called a E<.Dq hashed passphrase> "
103 "or just a E<.Dq hash.> Hashing methods are described in E<.Xr crypt 5>."
104 msgstr ""
105
106 #. type: Plain text
107 #: debian-trixie debian-unstable
108 msgid ""
109 "E<.Fa setting> controls which hashing method to use, and also supplies "
110 "various parameters to the chosen method, most importantly a random E<.Dq "
111 "salt> which ensures that no two stored hashes are the same, even if the "
112 "E<.Fa phrase> strings are the same."
113 msgstr ""
114
115 #. type: Plain text
116 #: debian-trixie debian-unstable
117 msgid ""
118 "The E<.Fa data> argument to E<.Nm crypt_r> is a structure of type E<.Vt "
119 "\"struct crypt_data\">. It has at least these fields:"
120 msgstr ""
121
122 #. type: Plain text
123 #: debian-trixie debian-unstable
124 #, no-wrap
125 msgid ""
126 "struct crypt_data {\n"
127 " char output[CRYPT_OUTPUT_SIZE];\n"
128 " char setting[CRYPT_OUTPUT_SIZE];\n"
129 " char input[CRYPT_MAX_PASSPHRASE_SIZE];\n"
130 " char initialized;\n"
131 "};\n"
132 msgstr ""
133
134 #. type: Plain text
135 #: debian-trixie debian-unstable
136 msgid ""
137 "Upon a successful return from E<.Nm crypt_r>, the hashed passphrase will be "
138 "stored in E<.Fa output>. Applications are encouraged, but not required, to "
139 "use the E<.Fa input> and E<.Fa setting> fields to store the strings that "
140 "they will pass as E<.Fa input phrase> and E<.Fa setting> to E<.Nm crypt_r>. "
141 "This will make it easier to erase all sensitive data after it is no longer "
142 "needed."
143 msgstr ""
144
145 #. type: Plain text
146 #: debian-trixie debian-unstable
147 msgid ""
148 "The E<.Fa initialized> field must be set to zero before the first time a "
149 "E<.Vt \"struct crypt_data\"> object is first used in a call to E<.Fn "
150 "crypt_r>. We recommend zeroing the entire object, not just E<.Fa "
151 "initialized> and not just the documented fields, before the first use. (Of "
152 "course, do this before storing anything in E<.Fa setting> and E<.Fa input>.)"
153 msgstr ""
154
155 #. type: Plain text
156 #: debian-trixie debian-unstable
157 msgid ""
158 "The E<.Fa data> argument to E<.Nm crypt_rn> should also point to a E<.Vt "
159 "\"struct crypt_data\"> object, and E<.Fa size> should be the size of that "
160 "object, cast to E<.Vt int>. When used with E<.Nm crypt_rn>, the entire "
161 "E<.Fa data> object (except for the E<.Fa input> and E<.Fa setting> fields) "
162 "must be zeroed before its first use; this is not just a recommendation, as "
163 "it is for E<.Nm crypt_r>. Otherwise, the fields of the object have the same "
164 "uses that they do for E<.Nm crypt_r>."
165 msgstr ""
166
167 #. type: Plain text
168 #: debian-trixie debian-unstable
169 msgid ""
170 "On the first call to E<.Nm crypt_ra>, E<.Fa data> should be the address of a "
171 "E<.Vt \"void *\"> variable set to NULL, and E<.Fa size> should be the "
172 "address of an E<.Vt int> variable set to zero. E<.Nm crypt_ra> will "
173 "allocate and initialize a E<.Vt \"struct crypt_data\"> object, using E<.Xr "
174 "malloc 3>, and write its address and size into the variables pointed to by "
175 "E<.Fa data> and E<.Fa size>. These can be reused in subsequent calls. "
176 "After the application is done hashing passphrases, it should deallocate the "
177 "E<.Vt \"struct crypt_data\"> object using E<.Xr free 3>."
178 msgstr ""
179
180 #. type: Sh
181 #: debian-trixie debian-unstable
182 #, no-wrap
183 msgid "RETURN VALUES"
184 msgstr ""
185
186 #. type: Plain text
187 #: debian-trixie debian-unstable
188 msgid ""
189 "Upon successful completion, E<.Nm crypt>, E<.Nm crypt_r>, E<.Nm crypt_rn>, "
190 "and E<.Nm crypt_ra> return a pointer to a string which encodes both the "
191 "hashed passphrase, and the settings that were used to encode it. This "
192 "string is directly usable as E<.Fa setting> in other calls to E<.Nm crypt>, "
193 "E<.Nm crypt_r>, E<.Nm crypt_rn>, and E<.Nm crypt_ra>, and as E<.Fa prefix> "
194 "in calls to E<.Nm crypt_gensalt>, E<.Nm crypt_gensalt_rn>, and E<.Nm "
195 "crypt_gensalt_ra>. It will be entirely printable ASCII, and will not "
196 "contain whitespace or the characters E<.Sq Li \\&:>, E<.Sq Li \\&;>, E<.Sq "
197 "Li \\&*>, E<.Sq Li \\&!>, or E<.Sq Li \\&\\e>. See E<.Xr crypt 5> for more "
198 "detail on the format of hashed passphrases."
199 msgstr ""
200
201 #. type: Plain text
202 #: debian-trixie
203 msgid ""
204 "E<.Nm crypt> places its result in a static storage area, which will be "
205 "overwritten by subsequent calls to E<.Nm crypt>. It is not safe to call "
206 "E<.Nm crypt> from multiple threads simultaneously."
207 msgstr ""
208
209 #. type: Plain text
210 #: debian-trixie
211 msgid ""
212 "E<.Nm crypt_r>, E<.Nm crypt_rn>, and E<.Nm crypt_ra> place their result in "
213 "the E<.Fa output> field of their E<.Fa data> argument. It is safe to call "
214 "them from multiple threads simultaneously, as long as a separate E<.Fa data> "
215 "object is used for each thread."
216 msgstr ""
217
218 #. type: Plain text
219 #: debian-trixie debian-unstable
220 msgid ""
221 "Upon error, E<.Nm crypt_r>, E<.Nm crypt_rn>, and E<.Nm crypt_ra> write an "
222 "E<.Em invalid> hash to the E<.Fa output> field of their E<.Fa data> "
223 "argument, and E<.Nm crypt> writes an invalid hash to its static storage "
224 "area. This string will be shorter than 13 characters, will begin with a "
225 "E<.Sq Li \\&*>, and will not compare equal to E<.Fa setting>."
226 msgstr ""
227
228 #. type: Plain text
229 #: debian-trixie debian-unstable
230 msgid ""
231 "Upon error, E<.Nm crypt_rn> and E<.Nm crypt_ra> return a null pointer. "
232 "E<.Nm crypt_r> and E<.Nm crypt> may also return a null pointer, or they may "
233 "return a pointer to the invalid hash, depending on how libcrypt was "
234 "configured. (The option to return the invalid hash is for compatibility "
235 "with old applications that assume that E<.Nm crypt> cannot return a null "
236 "pointer. See E<.Sx PORTABILITY NOTES> below.)"
237 msgstr ""
238
239 #. type: Plain text
240 #: debian-trixie debian-unstable
241 msgid ""
242 "All four functions set E<.Va errno> when they fail. When the functions "
243 "succeed, the value of E<.Va errno> is unspecified and must not be relied "
244 "upon."
245 msgstr ""
246
247 #. type: Sh
248 #: debian-trixie debian-unstable
249 #, no-wrap
250 msgid "ERRORS"
251 msgstr ""
252
253 #. type: It
254 #: debian-trixie debian-unstable
255 #, no-wrap
256 msgid "Er EINVAL"
257 msgstr ""
258
259 #. type: Plain text
260 #: debian-trixie debian-unstable
261 msgid ""
262 "E<.Fa setting> is invalid, or requests a hashing method that is not "
263 "supported."
264 msgstr ""
265
266 #. type: It
267 #: debian-trixie debian-unstable
268 #, no-wrap
269 msgid "Er ERANGE"
270 msgstr ""
271
272 #. type: Plain text
273 #: debian-trixie debian-unstable
274 msgid ""
275 "E<.Fa phrase> is too long (more than E<.Dv CRYPT_MAX_PASSPHRASE_SIZE> "
276 "characters; some hashing methods may have lower limits)."
277 msgstr ""
278
279 #. type: Plain text
280 #: debian-trixie debian-unstable
281 msgid ""
282 "E<.Nm crypt_rn> only: E<.Fa size> is too small for the hashing method "
283 "requested by E<.Fa setting>."
284 msgstr ""
285
286 #. type: It
287 #: debian-trixie debian-unstable
288 #, no-wrap
289 msgid "Er ENOMEM"
290 msgstr ""
291
292 #. type: Plain text
293 #: debian-trixie debian-unstable
294 msgid "Failed to allocate internal scratch memory."
295 msgstr ""
296
297 #. type: Plain text
298 #: debian-trixie debian-unstable
299 msgid "E<.Nm crypt_ra> only: failed to allocate memory for E<.Fa data>."
300 msgstr ""
301
302 #. type: It
303 #: debian-trixie debian-unstable
304 #, no-wrap
305 msgid "Er ENOSYS No or Er EOPNOTSUPP"
306 msgstr ""
307
308 #. type: Plain text
309 #: debian-trixie debian-unstable
310 msgid ""
311 "Hashing passphrases is not supported at all on this installation, or the "
312 "hashing method requested by E<.Fa setting> is not supported. These error "
313 "codes are not used by this version of libcrypt, but may be encountered on "
314 "other systems."
315 msgstr ""
316
317 #. type: Sh
318 #: debian-trixie debian-unstable
319 #, no-wrap
320 msgid "PORTABILITY NOTES"
321 msgstr ""
322
323 #. type: Plain text
324 #: debian-trixie debian-unstable
325 msgid ""
326 "E<.Nm crypt> is included in POSIX, but E<.Nm crypt_r>, E<.Nm crypt_rn>, and "
327 "E<.Nm crypt_ra> are not part of any standard."
328 msgstr ""
329
330 #. type: Plain text
331 #: debian-trixie debian-unstable
332 msgid ""
333 "POSIX does not specify any hashing methods, and does not require hashed "
334 "passphrases to be portable between systems. In practice, hashed passphrases "
335 "are portable as long as both systems support the hashing method that was "
336 "used. However, the set of supported hashing methods varies considerably "
337 "from system to system."
338 msgstr ""
339
340 #. type: Plain text
341 #: debian-trixie debian-unstable
342 msgid ""
343 "The behavior of E<.Nm crypt> on errors isn't well standardized. Some "
344 "implementations simply can't fail (except by crashing the program), others "
345 "return a null pointer or a fixed string. Most implementations don't set "
346 "E<.Va errno>, but some do. POSIX specifies returning a null pointer and "
347 "setting E<.Va errno>, but it defines only one possible error, E<.Er ENOSYS>, "
348 "in the case where E<.Nm crypt> is not supported at all. Some older "
349 "applications are not prepared to handle null pointers returned by E<.Nm "
350 "crypt>. The behavior described above for this implementation, setting E<.Va "
351 "errno> and returning an invalid hash different from E<.Fa setting>, is "
352 "chosen to make these applications fail closed when an error occurs."
353 msgstr ""
354
355 #. type: Plain text
356 #: debian-trixie debian-unstable
357 msgid ""
358 "Due to historical restrictions on the export of cryptographic software from "
359 "the USA, E<.Nm crypt> is an optional POSIX component. Applications should "
360 "therefore be prepared for E<.Nm crypt> not to be available, or to always "
361 "fail (setting E<.Va errno> to E<.Er ENOSYS>) at runtime."
362 msgstr ""
363
364 #. type: Plain text
365 #: debian-trixie debian-unstable
366 msgid "POSIX specifies that E<.Nm crypt> is declared in"
367 msgstr ""
368
369 #. type: In
370 #: debian-trixie debian-unstable
371 #, no-wrap
372 msgid "unistd.h ,"
373 msgstr ""
374
375 #. type: Plain text
376 #: debian-trixie debian-unstable
377 msgid ""
378 "but only if the macro E<.Dv _XOPEN_CRYPT> is defined and has a value greater "
379 "than or equal to zero. Since libcrypt does not provide"
380 msgstr ""
381
382 #. type: Plain text
383 #: debian-trixie debian-unstable
384 msgid ""
385 "it declares E<.Nm crypt>, E<.Nm crypt_r>, E<.Nm crypt_rn>, and E<.Nm "
386 "crypt_ra> in"
387 msgstr ""
388
389 #. type: Plain text
390 #: debian-trixie debian-unstable
391 msgid "instead."
392 msgstr ""
393
394 #. type: Plain text
395 #: debian-trixie debian-unstable
396 msgid ""
397 "On a minority of systems (notably recent versions of Solaris), E<.Nm crypt> "
398 "uses a thread-specific static storage buffer, which makes it safe to call "
399 "from multiple threads simultaneously, but does not prevent each call within "
400 "a thread from overwriting the results of the previous one."
401 msgstr ""
402
403 #. type: Sh
404 #: debian-trixie debian-unstable
405 #, no-wrap
406 msgid "BUGS"
407 msgstr ""
408
409 #. type: Plain text
410 #: debian-trixie debian-unstable
411 msgid ""
412 "Some implementations of E<.Nm crypt>, upon error, return an invalid hash "
413 "that is stored in a read-only location or only initialized once, which means "
414 "that it is only safe to erase the buffer pointed to by the E<.Nm crypt> "
415 "return value if an error did not occur."
416 msgstr ""
417
418 #. type: Plain text
419 #: debian-trixie debian-unstable
420 msgid ""
421 "E<.Vt \"struct crypt_data\"> may be quite large (32kB in this implementation "
422 "of libcrypt; over 128kB in some other implementations). This is large "
423 "enough that it may be unwise to allocate it on the stack."
424 msgstr ""
425
426 #. type: Plain text
427 #: debian-trixie debian-unstable
428 msgid ""
429 "Some recently designed hashing methods need even more scratch memory, but "
430 "the E<.Nm crypt_r> interface makes it impossible to change the size of E<.Vt "
431 "\"struct crypt_data\"> without breaking binary compatibility. The E<.Nm "
432 "crypt_rn> interface could accommodate larger allocations for specific "
433 "hashing methods, but the caller of E<.Nm crypt_rn> has no way of knowing how "
434 "much memory to allocate. E<.Nm crypt_ra> does the allocation itself, but "
435 "can only make a single call to E<.Xr malloc 3>."
436 msgstr ""
437
438 #. type: Sh
439 #: debian-trixie debian-unstable
440 #, no-wrap
441 msgid "ATTRIBUTES"
442 msgstr ""
443
444 #. type: Plain text
445 #: debian-trixie debian-unstable
446 msgid ""
447 "For an explanation of the terms used in this section, see E<.Xr attributes "
448 "7>."
449 msgstr ""
450
451 #. type: tbl table
452 #: debian-trixie debian-unstable
453 #, no-wrap
454 msgid "Interface"
455 msgstr ""
456
457 #. type: tbl table
458 #: debian-trixie debian-unstable
459 #, no-wrap
460 msgid "Attribute"
461 msgstr ""
462
463 #. type: tbl table
464 #: debian-trixie debian-unstable
465 #, no-wrap
466 msgid "Value"
467 msgstr ""
468
469 #. type: tbl table
470 #: debian-trixie debian-unstable
471 #, no-wrap
472 msgid ".Nm crypt\n"
473 msgstr ""
474
475 #. type: tbl table
476 #: debian-trixie debian-unstable
477 #, no-wrap
478 msgid "Thread safety"
479 msgstr ""
480
481 #. type: tbl table
482 #: debian-trixie debian-unstable
483 #, no-wrap
484 msgid "MT-Unsafe race:crypt"
485 msgstr ""
486
487 #. type: tbl table
488 #: debian-trixie debian-unstable
489 #, no-wrap
490 msgid ".Nm crypt_r ,\n"
491 msgstr ""
492
493 #. type: tbl table
494 #: debian-trixie debian-unstable
495 #, no-wrap
496 msgid ".Nm crypt_rn ,\n"
497 msgstr ""
498
499 #. type: tbl table
500 #: debian-trixie debian-unstable
501 #, no-wrap
502 msgid ".Nm crypt_ra\n"
503 msgstr ""
504
505 #. type: tbl table
506 #: debian-trixie debian-unstable
507 #, no-wrap
508 msgid "MT-Safe"
509 msgstr ""
510
511 #. type: Sh
512 #: debian-trixie debian-unstable
513 #, no-wrap
514 msgid "HISTORY"
515 msgstr ""
516
517 #. type: Plain text
518 #: debian-trixie debian-unstable
519 msgid ""
520 "A rotor-based E<.Nm crypt> function appeared in E<.At v6>. The E<.Dq "
521 "traditional> DES-based E<.Nm crypt> first appeared in E<.At v7>."
522 msgstr ""
523
524 #. type: Plain text
525 #: debian-trixie debian-unstable
526 msgid ""
527 "E<.Nm crypt_r> originates with the GNU C Library. There's also a E<.Nm "
528 "crypt_r> function on HP-UX and MKS Toolkit, but the prototypes and semantics "
529 "differ."
530 msgstr ""
531
532 #. type: Plain text
533 #: debian-trixie debian-unstable
534 msgid ""
535 "E<.Nm crypt_rn> and E<.Nm crypt_ra> originate with the Openwall project."
536 msgstr ""
537
538 #. type: Sh
539 #: debian-trixie debian-unstable
540 #, no-wrap
541 msgid "SEE ALSO"
542 msgstr ""
543
544 #. type: Plain text
545 #: debian-trixie debian-unstable
546 msgid ""
547 "E<.Xr crypt_gensalt 3>, E<.Xr getpass 3>, E<.Xr getpwent 3>, E<.Xr shadow "
548 "3>, E<.Xr login 1>, E<.Xr passwd 1>, E<.Xr crypt 5>, E<.Xr passwd 5>, E<.Xr "
549 "shadow 5>, E<.Xr pam 8>"
550 msgstr ""
551
552 #. type: Plain text
553 #: debian-unstable
554 msgid ""
555 "E<.Nm crypt> places its result in a static storage area, which will be "
556 "overwritten by subsequent calls to E<.Nm crypt>. It is not safe to call "
557 "E<.Nm crypt> from multiple threads simultaneously. It's also not "
558 "recommended to use the pointer returned as an argument for another call to "
559 "E<.Nm crypt>, as some implementations, including earlier releases of "
560 "libxcrypt, may overwrite the underlying static output buffer before "
561 "computing the hash."
562 msgstr ""
563
564 #. type: Plain text
565 #: debian-unstable
566 msgid ""
567 "E<.Nm crypt_r>, E<.Nm crypt_rn>, and E<.Nm crypt_ra> place their result in "
568 "the E<.Fa output> field of their E<.Fa data> argument. It is safe to call "
569 "them from multiple threads simultaneously, as long as a separate E<.Fa data> "
570 "object is used for each thread. It's also not recommended to use the "
571 "pointer returned as an argument for another call to E<.Nm crypt_r>, E<.Nm "
572 "crypt_rn>, and E<.Nm crypt_ra> using the same E<.Fa data> object for "
573 "subsequent calls, as some implementations, including earlier releases of "
574 "libxcrypt, may overwrite the E<.Fa output> field of the passed E<.Fa data> "
575 "argument before computing the hash. Calling E<.Nm crypt_ra> with the E<.Fa "
576 "phrase> and/or E<.Fa setting> parameters located within a passed E<.Fa data> "
577 "object which is smaller than the size of E<.Vt \"struct crypt_data\"> is not "
578 "recommended, as some implementations, including earlier releases of "
579 "libxcrypt, may not preserve the passed literals, if the E<.Fa data> object "
580 "needs to be altered."
581 msgstr ""