Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6162831

Browse files
[po] auto sync
1 parent d1fcf2c commit 6162831

2 files changed

Lines changed: 35 additions & 21 deletions

File tree

library/dis.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ msgstr "行号可能会减少。 以前,他们总是在增加。"
311311
msgid ""
312312
"Detect all offsets in the raw compiled bytecode string *code* which are jump"
313313
" targets, and return a list of these offsets."
314-
msgstr ""
314+
msgstr "检测作为跳转目标的原始编译后字节码字符串 *code* 中的所有偏移量,并返回这些偏移量的列表。"
315315

316316
#: ../../library/dis.rst:253
317317
msgid "Compute the stack effect of *opcode* with argument *oparg*."

library/hashlib.po

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,14 @@ msgid ""
327327
"Python implementation uses an inline version of :mod:`hmac`. It is about "
328328
"three times slower and doesn't release the GIL."
329329
msgstr ""
330+
"随同 OpenSSL 提供了一个快速的 *pbkdf2_hmac* 实现。 Python 实现是使用 :mod:`hmac` 的内联版本。 "
331+
"它的速度大约要慢上三倍并且不会释放 GIL。"
330332

331333
#: ../../library/hashlib.rst:262
332334
msgid ""
333335
"The function provides scrypt password-based key derivation function as "
334336
"defined in :rfc:`7914`."
335-
msgstr ""
337+
msgstr "此函数提供基于密码加密的密钥派生函数,其定义参见 :rfc:`7914`。"
336338

337339
#: ../../library/hashlib.rst:265
338340
msgid ""
@@ -341,17 +343,22 @@ msgid ""
341343
"length (e.g. 1024). *salt* should be about 16 or more bytes from a proper "
342344
"source, e.g. :func:`os.urandom`."
343345
msgstr ""
346+
"*password* 和 *salt* 必须为 :term:`字节类对象 <bytes-like object>`。 应用和库应当将 "
347+
"*password* 限制在合理长度 (例如 1024)。 *salt* 应当为适当来源例如 :func:`os.urandom` 的大约 16 "
348+
"个或更多的字节串数据。"
344349

345350
#: ../../library/hashlib.rst:270
346351
msgid ""
347352
"*n* is the CPU/Memory cost factor, *r* the block size, *p* parallelization "
348353
"factor and *maxmem* limits memory (OpenSSL 1.1.0 defaults to 32 MiB). "
349354
"*dklen* is the length of the derived key."
350355
msgstr ""
356+
"*n* 为 CPU/内存开销因子,*r* 为块大小,*p* 为并行化因子,*maxmem* 为内存限制 (OpenSSL 1.1.0 默认为 32 "
357+
"MiB)。 *dklen* 为派生密钥的长度。"
351358

352359
#: ../../library/hashlib.rst:275
353360
msgid ":ref:`Availability <availability>`: OpenSSL 1.1+."
354-
msgstr ""
361+
msgstr ":ref:`可用性 <availability>`: OpenSSL 1.1+。"
355362

356363
#: ../../library/hashlib.rst:280
357364
msgid "BLAKE2"
@@ -361,73 +368,75 @@ msgstr "BLAKE2"
361368
msgid ""
362369
"BLAKE2_ is a cryptographic hash function defined in :rfc:`7693` that comes "
363370
"in two flavors:"
364-
msgstr ""
371+
msgstr "BLAKE2_ 是在 :rfc:`7693` 中定义的加密哈希函数,它有两种形式:"
365372

366373
#: ../../library/hashlib.rst:290
367374
msgid ""
368375
"**BLAKE2b**, optimized for 64-bit platforms and produces digests of any size"
369376
" between 1 and 64 bytes,"
370-
msgstr ""
377+
msgstr "**BLAKE2b**,针对 64 位平台进行优化,并会生成长度介于 1 和 64 字节之间任意大小的摘要。"
371378

372379
#: ../../library/hashlib.rst:293
373380
msgid ""
374381
"**BLAKE2s**, optimized for 8- to 32-bit platforms and produces digests of "
375382
"any size between 1 and 32 bytes."
376-
msgstr ""
383+
msgstr "**BLAKE2s**,针对 8 至 32 位平台进行优化,并会生成长度介于 1 和 32 字节之间任意大小的摘要。"
377384

378385
#: ../../library/hashlib.rst:296
379386
msgid ""
380387
"BLAKE2 supports **keyed mode** (a faster and simpler replacement for HMAC_),"
381388
" **salted hashing**, **personalization**, and **tree hashing**."
382389
msgstr ""
390+
"BLAKE2 支持 **keyed mode** (HMAC_ 的更快速更简单的替代), **salted hashing**, "
391+
"**personalization** 和 **tree hashing**."
383392

384393
#: ../../library/hashlib.rst:299
385394
msgid ""
386395
"Hash objects from this module follow the API of standard library's "
387396
":mod:`hashlib` objects."
388-
msgstr ""
397+
msgstr "此模块的哈希对象遵循标准库 :mod:`hashlib` 对象的 API。"
389398

390399
#: ../../library/hashlib.rst:304
391400
msgid "Creating hash objects"
392-
msgstr ""
401+
msgstr "创建哈希对象"
393402

394403
#: ../../library/hashlib.rst:306
395404
msgid "New hash objects are created by calling constructor functions:"
396-
msgstr ""
405+
msgstr "新哈希对象可通过调用构造器函数来创建:"
397406

398407
#: ../../library/hashlib.rst:318
399408
msgid ""
400409
"These functions return the corresponding hash objects for calculating "
401410
"BLAKE2b or BLAKE2s. They optionally take these general parameters:"
402-
msgstr ""
411+
msgstr "这些函数返回用于计算 BLAKE2b 或 BLAKE2s 的相应的哈希对象。 它们接受下列可选通用形参:"
403412

404413
#: ../../library/hashlib.rst:321
405414
msgid ""
406415
"*data*: initial chunk of data to hash, which must be :term:`bytes-like "
407416
"object`. It can be passed only as positional argument."
408-
msgstr ""
417+
msgstr "*data*: 要哈希的初始数据块,它必须为 :term:`bytes-like object`。 它只能作为位置参数传入。"
409418

410419
#: ../../library/hashlib.rst:324
411420
msgid "*digest_size*: size of output digest in bytes."
412-
msgstr ""
421+
msgstr "*digest_size*: 以字节数表示的输出摘要大小。"
413422

414423
#: ../../library/hashlib.rst:326
415424
msgid ""
416425
"*key*: key for keyed hashing (up to 64 bytes for BLAKE2b, up to 32 bytes for"
417426
" BLAKE2s)."
418-
msgstr ""
427+
msgstr "*key*: 用于密钥哈希的密钥(对于 BLAKE2b 最长 64 字节,对于 BLAKE2s 最长 32 字节)。"
419428

420429
#: ../../library/hashlib.rst:329
421430
msgid ""
422431
"*salt*: salt for randomized hashing (up to 16 bytes for BLAKE2b, up to 8 "
423432
"bytes for BLAKE2s)."
424-
msgstr ""
433+
msgstr "*salt*: 用于随机哈希的盐值(对于 BLAKE2b 最长 16 字节,对于 BLAKE2s 最长 8 字节)。"
425434

426435
#: ../../library/hashlib.rst:332
427436
msgid ""
428437
"*person*: personalization string (up to 16 bytes for BLAKE2b, up to 8 bytes "
429438
"for BLAKE2s)."
430-
msgstr ""
439+
msgstr "*person*: 个性化字符串(对于 BLAKE2b 最长 16 字节,对于 BLAKE2s 最长 8 字节)。"
431440

432441
#: ../../library/hashlib.rst:335
433442
msgid "The following table shows limits for general parameters (in bytes):"
@@ -486,42 +495,47 @@ msgid ""
486495
"example, ``b'salt'`` and ``b'salt\\x00'`` is the same value. (This is not "
487496
"the case for *key*.)"
488497
msgstr ""
498+
"BLAKE2 规格描述为盐值和个性化形参定义了固定的长度,但是为了方便起见,此实现接受指定在长度以内的任意大小的字节串。 "
499+
"如果形参长度小于指定值,它将以零值进行填充,因此举例来说,``b'salt'`` 和 ``b'salt\\x00'`` 为相同的值 (*key* "
500+
"的情况则并非如此。)"
489501

490502
#: ../../library/hashlib.rst:353
491503
msgid "These sizes are available as module `constants`_ described below."
492-
msgstr ""
504+
msgstr "如下面的模块 `constants`_ 所描述,这些是可用的大小取值。"
493505

494506
#: ../../library/hashlib.rst:355
495507
msgid ""
496508
"Constructor functions also accept the following tree hashing parameters:"
497-
msgstr ""
509+
msgstr "构造器函数还接受下列树形哈希形参:"
498510

499511
#: ../../library/hashlib.rst:357
500512
msgid "*fanout*: fanout (0 to 255, 0 if unlimited, 1 in sequential mode)."
501-
msgstr ""
513+
msgstr "*fanout*: 扇出值 (0 至 255,如无限制即为 0,连续模式下为 1)。"
502514

503515
#: ../../library/hashlib.rst:359
504516
msgid ""
505517
"*depth*: maximal depth of tree (1 to 255, 255 if unlimited, 1 in sequential "
506518
"mode)."
507-
msgstr ""
519+
msgstr "*depth*: 树的最大深度 (1 至 255,如无限制则为 255,连续模式下为 1)。"
508520

509521
#: ../../library/hashlib.rst:362
510522
msgid ""
511523
"*leaf_size*: maximal byte length of leaf (0 to 2**32-1, 0 if unlimited or in"
512524
" sequential mode)."
513-
msgstr ""
525+
msgstr "*leaf_size*: 叶子的最大字节长度 (0 至 2**32-1,如无限制或在连续模式下则为 0)。"
514526

515527
#: ../../library/hashlib.rst:365
516528
msgid ""
517529
"*node_offset*: node offset (0 to 2**64-1 for BLAKE2b, 0 to 2**48-1 for "
518530
"BLAKE2s, 0 for the first, leftmost, leaf, or in sequential mode)."
519531
msgstr ""
532+
"*node_offset*: 节点偏移量 (对于 BLAKE2b 为 0 至 2**64-1,对于 BLAKE2s 为 0 至 "
533+
"2**48-1,对于最左边第一个叶子或在连续模式下则为 0)。"
520534

521535
#: ../../library/hashlib.rst:368
522536
msgid ""
523537
"*node_depth*: node depth (0 to 255, 0 for leaves, or in sequential mode)."
524-
msgstr ""
538+
msgstr "*node_depth*: 节点深度 (0 至 255,对于叶子或在连续模式下则为 0)。"
525539

526540
#: ../../library/hashlib.rst:370
527541
msgid ""

0 commit comments

Comments
 (0)