@@ -542,48 +542,51 @@ msgid ""
542542"*inner_size*: inner digest size (0 to 64 for BLAKE2b, 0 to 32 for BLAKE2s, 0"
543543" in sequential mode)."
544544msgstr ""
545+ "*inner_size*: 内部摘要大小 (对于 BLAKE2b 为 0 至 64,对于 BLAKE2s 为 0 至 32,连续模式下则为 0)。"
545546
546547#: ../../library/hashlib.rst:373
547548msgid ""
548549"*last_node*: boolean indicating whether the processed node is the last one "
549550"(`False` for sequential mode)."
550- msgstr ""
551+ msgstr "*last_node*: 一个布尔值,指明所处理的节点是否为最后一个 (连续模式下则为 `False`)。 "
551552
552553#: ../../library/hashlib.rst:379
553554msgid ""
554555"See section 2.10 in `BLAKE2 specification "
555556"<https://blake2.net/blake2_20130129.pdf>`_ for comprehensive review of tree "
556557"hashing."
557558msgstr ""
559+ "请参阅 `BLAKE2 规格描述 <https://blake2.net/blake2_20130129.pdf>`_ 第 2.10 "
560+ "节获取有关树形哈希的完整说明。"
558561
559562#: ../../library/hashlib.rst:385
560563msgid "Constants"
561564msgstr "常数"
562565
563566#: ../../library/hashlib.rst:390
564567msgid "Salt length (maximum length accepted by constructors)."
565- msgstr ""
568+ msgstr "盐值长度(构造器所接受的最大长度)。 "
566569
567570#: ../../library/hashlib.rst:396
568571msgid ""
569572"Personalization string length (maximum length accepted by constructors)."
570- msgstr ""
573+ msgstr "个性化字符串长度(构造器所接受的最大长度)。 "
571574
572575#: ../../library/hashlib.rst:402
573576msgid "Maximum key size."
574- msgstr ""
577+ msgstr "最大密钥长度。 "
575578
576579#: ../../library/hashlib.rst:408
577580msgid "Maximum digest size that the hash function can output."
578- msgstr ""
581+ msgstr "哈希函数可输出的最大摘要长度。 "
579582
580583#: ../../library/hashlib.rst:412
581584msgid "Examples"
582585msgstr "示例"
583586
584587#: ../../library/hashlib.rst:415
585588msgid "Simple hashing"
586- msgstr ""
589+ msgstr "简单哈希 "
587590
588591#: ../../library/hashlib.rst:417
589592msgid ""
@@ -593,40 +596,47 @@ msgid ""
593596"the object, and, finally, get the digest out of the object by calling "
594597":meth:`digest` (or :meth:`hexdigest` for hex-encoded string)."
595598msgstr ""
599+ "要计算某个数据的哈希值,你应该首先通过调用适当的构造器函数 (:func:`blake2b` 或 :func:`blake2s`) "
600+ "来构造一个哈希对象,然后通过在该对象上调用 :meth:`update` 来更新目标数据,最后通过调用 :meth:`digest` "
601+ "(或针对十六进制编码字符串的 :meth:`hexdigest`) 来获取该对象的摘要。"
596602
597603#: ../../library/hashlib.rst:430
598604msgid ""
599605"As a shortcut, you can pass the first chunk of data to update directly to "
600606"the constructor as the positional argument:"
601- msgstr ""
607+ msgstr "作为快捷方式,你可以直接以位置参数的形式向构造器传入第一个数据块来直接更新: "
602608
603609#: ../../library/hashlib.rst:437
604610msgid ""
605611"You can call :meth:`hash.update` as many times as you need to iteratively "
606612"update the hash:"
607- msgstr ""
613+ msgstr "你可以多次调用 :meth:`hash.update` 至你所想要的任意次数以迭代地更新哈希值: "
608614
609615#: ../../library/hashlib.rst:450
610616msgid "Using different digest sizes"
611- msgstr ""
617+ msgstr "使用不同的摘要大小 "
612618
613619#: ../../library/hashlib.rst:452
614620msgid ""
615621"BLAKE2 has configurable size of digests up to 64 bytes for BLAKE2b and up to"
616622" 32 bytes for BLAKE2s. For example, to replace SHA-1 with BLAKE2b without "
617623"changing the size of output, we can tell BLAKE2b to produce 20-byte digests:"
618624msgstr ""
625+ "BLAKE2 具有可配置的摘要大小,对于 BLAKE2b 最多 64 字节,对于 BLAKE2s 最多 32 字节。 例如,要使用 BLAKE2b "
626+ "来替代 SHA-1 而不改变输出大小,我们可以让 BLAKE2b 产生 20 个字节的摘要:"
619627
620628#: ../../library/hashlib.rst:466
621629msgid ""
622630"Hash objects with different digest sizes have completely different outputs "
623631"(shorter hashes are *not* prefixes of longer hashes); BLAKE2b and BLAKE2s "
624632"produce different outputs even if the output length is the same:"
625633msgstr ""
634+ "不同摘要大小的哈希对象具有完全不同的输出(较短哈希值 *并非* 较长哈希值的前缀);即使输出长度相同,BLAKE2b 和 BLAKE2s "
635+ "也会产生不同的输出:"
626636
627637#: ../../library/hashlib.rst:482
628638msgid "Keyed hashing"
629- msgstr ""
639+ msgstr "密钥哈希 "
630640
631641#: ../../library/hashlib.rst:484
632642msgid ""
0 commit comments