Debian Codegraph @

templates/man3/encrypt.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:23+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: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "encrypt"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Password hashing library (I<libcrypt>,\\ I<-lcrypt>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
78 "B<#include E<lt>unistd.hE<gt>>\n"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<[[deprecated]] void encrypt(char >I<block>B<[64], int >I<edflag>B<);>\n"
86 msgstr ""
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
94 "B<#include E<lt>stdlib.hE<gt>>\n"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid "B<[[deprecated]] void setkey(const char *>I<key>B<);>\n"
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
110 "B<#include E<lt>crypt.hE<gt>>\n"
111 msgstr ""
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "B<[[deprecated]] void setkey_r(const char *>I<key>B<, struct crypt_data *>I<data>B<);>\n"
119 "B<[[deprecated]] void encrypt_r(char *>I<block>B<, int >I<edflag>B<,>\n"
120 "B< struct crypt_data *>I<data>B<);>\n"
121 msgstr ""
122
123 #. type: SH
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "These functions encrypt and decrypt 64-bit messages. The B<setkey>() "
135 "function sets the key used by B<encrypt>(). The I<key> argument used here "
136 "is an array of 64 bytes, each of which has numerical value 1 or 0. The "
137 "bytes key[n] where n=8*i-1 are ignored, so that the effective key length is "
138 "56 bits."
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "The B<encrypt>() function modifies the passed buffer, encoding if I<edflag> "
146 "is 0, and decoding if 1 is being passed. Like the I<key> argument, also "
147 "I<block> is a bit vector representation of the actual value that is "
148 "encoded. The result is returned in that same vector."
149 msgstr ""
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid ""
155 "These two functions are not reentrant, that is, the key data is kept in "
156 "static storage. The functions B<setkey_r>() and B<encrypt_r>() are the "
157 "reentrant versions. They use the following structure to hold the key data:"
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid ""
165 "struct crypt_data {\n"
166 " char keysched[16 * 8];\n"
167 " char sb0[32768];\n"
168 " char sb1[32768];\n"
169 " char sb2[32768];\n"
170 " char sb3[32768];\n"
171 " char crypt_3_buf[14];\n"
172 " char current_salt[2];\n"
173 " long current_saltbits;\n"
174 " int direction;\n"
175 " int initialized;\n"
176 "};\n"
177 msgstr ""
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid "Before calling B<setkey_r>() set I<data-E<gt>initialized> to zero."
183 msgstr ""
184
185 #. type: SH
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "RETURN VALUE"
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid "These functions do not return any value."
196 msgstr ""
197
198 #. type: SH
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "ERRORS"
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "Set I<errno> to zero before calling the above functions. On success, "
210 "I<errno> is unchanged."
211 msgstr ""
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "B<ENOSYS>"
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "The function is not provided. (For example because of former USA export "
225 "restrictions.)"
226 msgstr ""
227
228 #. type: SH
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "ATTRIBUTES"
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "For an explanation of the terms used in this section, see B<attributes>(7)."
240 msgstr ""
241
242 #. type: tbl table
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "Interface"
247 msgstr ""
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "Attribute"
254 msgstr ""
255
256 #. type: tbl table
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "Value"
261 msgstr ""
262
263 #. type: tbl table
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid ".na\n"
268 msgstr ""
269
270 #. type: tbl table
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid ".nh\n"
275 msgstr ""
276
277 #. type: tbl table
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid ""
282 "B<encrypt>(),\n"
283 "B<setkey>()"
284 msgstr ""
285
286 #. type: tbl table
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "Thread safety"
291 msgstr ""
292
293 #. type: tbl table
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "MT-Unsafe race:crypt"
298 msgstr ""
299
300 #. type: tbl table
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid ""
305 "B<encrypt_r>(),\n"
306 "B<setkey_r>()"
307 msgstr ""
308
309 #. type: tbl table
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "MT-Safe"
314 msgstr ""
315
316 #. type: SH
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "STANDARDS"
321 msgstr ""
322
323 #. type: TP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "B<encrypt>()"
328 msgstr ""
329
330 #. type: TQ
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<setkey>()"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "POSIX.1-2008."
341 msgstr ""
342
343 #. type: TP
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "B<encrypt_r>()"
348 msgstr ""
349
350 #. type: TQ
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "B<setkey_r>()"
355 msgstr ""
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid "None."
361 msgstr ""
362
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "HISTORY"
368 msgstr ""
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid "Removed in glibc 2.28."
374 msgstr ""
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "Because they employ the DES block cipher, which is no longer considered "
381 "secure, these functions were removed from glibc. Applications should switch "
382 "to a modern cryptography library, such as B<libgcrypt>."
383 msgstr ""
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid "POSIX.1-2001, SUS, SVr4."
389 msgstr ""
390
391 #. type: SS
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "Availability in glibc"
396 msgstr ""
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid "See B<crypt>(3)."
402 msgstr ""
403
404 #. type: SS
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "Features in glibc"
409 msgstr ""
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid "In glibc 2.2, these functions use the DES algorithm."
415 msgstr ""
416
417 #. type: SH
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid "EXAMPLES"
422 msgstr ""
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid ""
429 "#define _XOPEN_SOURCE\n"
430 "#include E<lt>crypt.hE<gt>\n"
431 "#include E<lt>stdio.hE<gt>\n"
432 "#include E<lt>stdlib.hE<gt>\n"
433 "#include E<lt>unistd.hE<gt>\n"
434 "\\&\n"
435 "int\n"
436 "main(void)\n"
437 "{\n"
438 " char key[64];\n"
439 " char orig[9] = \"eggplant\";\n"
440 " char buf[64];\n"
441 " char txt[9];\n"
442 "\\&\n"
443 " for (size_t i = 0; i E<lt> 64; i++) {\n"
444 " key[i] = rand() & 1;\n"
445 " }\n"
446 "\\&\n"
447 " for (size_t i = 0; i E<lt> 8; i++) {\n"
448 " for (size_t j = 0; j E<lt> 8; j++) {\n"
449 " buf[i * 8 + j] = orig[i] E<gt>E<gt> j & 1;\n"
450 " }\n"
451 " setkey(key);\n"
452 " }\n"
453 " printf(\"Before encrypting: %s\\[rs]n\", orig);\n"
454 "\\&\n"
455 " encrypt(buf, 0);\n"
456 " for (size_t i = 0; i E<lt> 8; i++) {\n"
457 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
458 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
459 " }\n"
460 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
461 " }\n"
462 " printf(\"After encrypting: %s\\[rs]n\", txt);\n"
463 "\\&\n"
464 " encrypt(buf, 1);\n"
465 " for (size_t i = 0; i E<lt> 8; i++) {\n"
466 " for (size_t j = 0, txt[i] = \\[aq]\\[rs]0\\[aq]; j E<lt> 8; j++) {\n"
467 " txt[i] |= buf[i * 8 + j] E<lt>E<lt> j;\n"
468 " }\n"
469 " txt[8] = \\[aq]\\[rs]0\\[aq];\n"
470 " }\n"
471 " printf(\"After decrypting: %s\\[rs]n\", txt);\n"
472 " exit(EXIT_SUCCESS);\n"
473 "}\n"
474 msgstr ""
475
476 #. SRC END
477 #. type: SH
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "SEE ALSO"
482 msgstr ""
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid "B<cbc_crypt>(3), B<crypt>(3), B<ecb_crypt>(3)"
488 msgstr ""
489
490 #. type: TH
491 #: debian-trixie
492 #, no-wrap
493 msgid "2024-06-15"
494 msgstr ""
495
496 #. type: TH
497 #: debian-trixie
498 #, no-wrap
499 msgid "Linux man-pages 6.9.1"
500 msgstr ""
501
502 #. type: Plain text
503 #: debian-trixie
504 msgid "Password hashing library (I<libcrypt>, I<-lcrypt>)"
505 msgstr ""
506
507 #. type: TH
508 #: fedora-44 fedora-rawhide
509 #, no-wrap
510 msgid "2024-07-23"
511 msgstr ""
512
513 #. type: TH
514 #: fedora-44 fedora-rawhide
515 #, no-wrap
516 msgid "Linux man-pages 6.13"
517 msgstr ""
518
519 #. type: TH
520 #: mageia-cauldron
521 #, no-wrap
522 msgid "Linux man-pages 6.17"
523 msgstr ""
524
525 #. type: TH
526 #: opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "Linux man-pages (unreleased)"
529 msgstr ""