88msgstr ""
99"Project-Id-Version : joserfc\n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2025-12-09 14:11 +0900\n "
11+ "POT-Creation-Date : 2026-03-01 20:41 +0900\n "
1212"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
1313"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
1414"Language : zh\n "
@@ -17,7 +17,7 @@ msgstr ""
1717"MIME-Version : 1.0\n "
1818"Content-Type : text/plain; charset=utf-8\n "
1919"Content-Transfer-Encoding : 8bit\n "
20- "Generated-By : Babel 2.17 .0\n "
20+ "Generated-By : Babel 2.18 .0\n "
2121
2222#: ../../api/errors.rst:2
2323msgid "Errors"
@@ -33,12 +33,11 @@ msgid ""
3333"match."
3434msgstr "该错误是为 JWS 设计的,当签名不匹配时触发。"
3535
36- #: ../../docstring joserfc.errors.BadSignatureError.error:1
36+ #: joserfc.errors.BadSignatureError.error:1
3737#: joserfc.errors.ConflictAlgorithmError.error:1
3838#: joserfc.errors.DecodeError.error:1 joserfc.errors.ExceededSizeError.error:1
3939#: joserfc.errors.ExpiredTokenError.error:1
4040#: joserfc.errors.InsecureClaimError.error:1
41- #: joserfc.errors.InvalidCEKLengthError.error:1
4241#: joserfc.errors.InvalidClaimError.error:1
4342#: joserfc.errors.InvalidEncryptedKeyError.error:1
4443#: joserfc.errors.InvalidEncryptionAlgorithmError.error:1
@@ -48,8 +47,7 @@ msgstr "该错误是为 JWS 设计的,当签名不匹配时触发。"
4847#: joserfc.errors.InvalidKeyIdError.error:1
4948#: joserfc.errors.InvalidKeyLengthError.error:1
5049#: joserfc.errors.InvalidKeyTypeError.error:1
51- #: joserfc.errors.InvalidPayloadError.error:1
52- #: joserfc.errors.InvalidTokenError.error:1 joserfc.errors.JoseError.error:1
50+ #: joserfc.errors.InvalidPayloadError.error:1 joserfc.errors.JoseError.error:1
5351#: joserfc.errors.KeyParameterError.error:1
5452#: joserfc.errors.MissingAlgorithmError.error:1
5553#: joserfc.errors.MissingClaimError.error:1
@@ -70,14 +68,12 @@ msgstr "短字符串错误代码"
7068msgid "This a base error for JWT claims validation."
7169msgstr ""
7270
73- #: ../../docstring joserfc.errors.ClaimError.description:1
71+ #: joserfc.errors.ClaimError.description:1
7472#: joserfc.errors.ExpiredTokenError.description:1
7573#: joserfc.errors.InsecureClaimError.description:1
76- #: joserfc.errors.InvalidCEKLengthError.description:1
7774#: joserfc.errors.InvalidClaimError.description:1
7875#: joserfc.errors.InvalidEncryptedKeyError.description:1
7976#: joserfc.errors.InvalidExchangeKeyError.description:1
80- #: joserfc.errors.InvalidTokenError.description:1
8177#: joserfc.errors.JoseError.description:1
8278#: joserfc.errors.MissingAlgorithmError.description:1
8379#: joserfc.errors.MissingClaimError.description:1
@@ -153,10 +149,6 @@ msgid ""
153149" JSON object."
154150msgstr "此错误用于 JWT。当载荷(payload)不是有效的 JSON 对象时触发。"
155151
156- #: joserfc.errors.InvalidTokenError:1 of
157- msgid "This error is designed for JWT. It raised when the token is not valid yet."
158- msgstr "此错误是为 JWT 设计的,当 Token 不是有效的 JSON 对象时触发。"
159-
160152#: joserfc.errors.JoseError:1 of
161153msgid "Base Exception for all errors in joserfc."
162154msgstr "joserfc 中所有错误的基类异常。"
@@ -279,11 +271,11 @@ msgstr "字典格式的额外 header"
279271msgid "Returns the protected header values in dict."
280272msgstr "返回受保护 header 的值,字典格式"
281273
282- #: ../../docstring joserfc.jwe.CompactEncryption.plaintext:1 of
274+ #: joserfc.jwe.CompactEncryption.plaintext:1 of
283275msgid "the plaintext in bytes"
284276msgstr "字节形式的明文"
285277
286- #: ../../docstring joserfc.jwe.CompactEncryption.protected:1 of
278+ #: joserfc.jwe.CompactEncryption.protected:1 of
287279msgid "protected header in dict"
288280msgstr "字典格式的受保护 header"
289281
@@ -310,7 +302,7 @@ msgstr "向 JWE JSON 序列化添加一个接收者。请添加符合 \"alg\"
310302msgid "recipient's own (unprotected) header"
311303msgstr "接收者自己的(未保护的)header"
312304
313- #: ../../docstring joserfc.jwe.FlattenedJSONEncryption.flattened:1
305+ #: joserfc.jwe.FlattenedJSONEncryption.flattened:1
314306#: joserfc.jwe.GeneralJSONEncryption.flattened:1 of
315307msgid "represents if the object is in flatten syntax"
316308msgstr "表示对象是否为扁平语法"
@@ -380,24 +372,23 @@ msgstr "获取给定名称的允许 (\"zip\") 算法实例。"
380372msgid "value of the ``zip``, e.g. ``DEF``"
381373msgstr "``zip`` 的值,例如 ``DEF``"
382374
383- #: ../../docstring joserfc.jwe.JWERegistry.max_auth_tag_length:1 of
375+ #: joserfc.jwe.JWERegistry.max_auth_tag_length:1 of
384376msgid "max auth tag's size in bytes"
385377msgstr ""
386378
387- #: ../../docstring joserfc.jwe.JWERegistry.max_ciphertext_length:1 of
379+ #: joserfc.jwe.JWERegistry.max_ciphertext_length:1 of
388380msgid "max ciphertext's size in bytes"
389381msgstr ""
390382
391- #: ../../docstring joserfc.jwe.JWERegistry.max_encrypted_key_length:1 of
383+ #: joserfc.jwe.JWERegistry.max_encrypted_key_length:1 of
392384msgid "max encrypted key's size in bytes"
393385msgstr ""
394386
395- #: ../../docstring joserfc.jwe.JWERegistry.max_initialization_vector_length:1
396- #: of
387+ #: joserfc.jwe.JWERegistry.max_initialization_vector_length:1 of
397388msgid "max initialization vector's size in bytes"
398389msgstr ""
399390
400- #: ../../docstring joserfc.jwe.JWERegistry.max_protected_header_length:1 of
391+ #: joserfc.jwe.JWERegistry.max_protected_header_length:1 of
401392msgid "max protected header content's size in bytes"
402393msgstr "受保护的 header 内容的最大字节大小"
403394
@@ -596,48 +587,78 @@ msgstr "此密钥用于,例如 \"sig\"、\"enc\""
596587msgid "if this key is not designed for the given use"
597588msgstr "如果此密钥不支持给定的 \" use\" "
598589
599- #: joserfc.jwk.ECKey.dict_value:1 joserfc.jwk.OKPKey.dict_value:1
600- #: joserfc.jwk.OctKey.dict_value:1 joserfc.jwk.RSAKey.dict_value:1 of
601- msgid "Property of the Key in Dict (JSON)."
602- msgstr "字典形式(JSON)的密钥的属性值。"
603-
604- #: joserfc._rfc7517.models.BaseKey.ensure_kid:1 of
590+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:1 of
605591msgid ""
606- "Ensure this key has a ``kid``. If ``kid`` is not provided by default, it "
607- "will generate the kid with ``.thumbprint`` method, which is defined by "
608- "RFC7638."
592+ "Generate an elliptic curve cryptographic key derived from a secret input "
593+ "using a key derivation function (KDF). This allows the creation of "
594+ "deterministic elliptic curve keys based on given input data, curve "
595+ "specification, and KDF options."
609596msgstr ""
610- "确保此密钥具有 ``kid``。如果默认未提供 ``kid``,将使用 ``.thumbprint`` 方法生成 kid,该方法由 RFC7638"
611- " 定义。"
612597
613- #: joserfc._rfc7518.ec_key.ECKey.generate_key:1 of
614- msgid "Generate a ``ECKey`` with the given \" crv\" value."
615- msgstr "生成具有给定 \" crv\" 值的 ``ECKey``。"
598+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:5
599+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:45 of
600+ msgid "The input secret used for key derivation"
601+ msgstr ""
616602
603+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:6
617604#: joserfc._rfc7518.ec_key.ECKey.generate_key:3 of
618605msgid "ECKey curve name"
619606msgstr "ECKey 曲线名称"
620607
608+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:7
621609#: joserfc._rfc7518.ec_key.ECKey.generate_key:4
622610#: joserfc._rfc7518.oct_key.OctKey.generate_key:4
623611#: joserfc._rfc7518.rsa_key.RSAKey.generate_key:4
612+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:47
624613#: joserfc._rfc8037.okp_key.OKPKey.generate_key:4 of
625614msgid "extra parameter in JWK"
626615msgstr "JWK 中的额外参数"
627616
617+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:8
628618#: joserfc._rfc7518.ec_key.ECKey.generate_key:5
629619#: joserfc._rfc7518.rsa_key.RSAKey.generate_key:5
620+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:48
630621#: joserfc._rfc8037.okp_key.OKPKey.generate_key:5 of
631622msgid "generate a private key or public key"
632623msgstr "生成私钥或公钥"
633624
625+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:9
634626#: joserfc._rfc7518.ec_key.ECKey.generate_key:6
635627#: joserfc._rfc7518.oct_key.OctKey.generate_key:6
636628#: joserfc._rfc7518.rsa_key.RSAKey.generate_key:6
629+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:49
637630#: joserfc._rfc8037.okp_key.OKPKey.generate_key:6 of
638631msgid "add ``kid`` automatically"
639632msgstr "自动添加 ``kid``"
640633
634+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:10
635+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:50 of
636+ msgid "Key derivation function name"
637+ msgstr ""
638+
639+ #: joserfc._rfc7518.ec_key.ECKey.derive_key:11
640+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:51 of
641+ msgid "Additional options for the KDF"
642+ msgstr ""
643+
644+ #: joserfc.jwk.ECKey.dict_value:1 joserfc.jwk.OKPKey.dict_value:1
645+ #: joserfc.jwk.OctKey.dict_value:1 joserfc.jwk.RSAKey.dict_value:1 of
646+ msgid "Property of the Key in Dict (JSON)."
647+ msgstr "字典形式(JSON)的密钥的属性值。"
648+
649+ #: joserfc._rfc7517.models.BaseKey.ensure_kid:1 of
650+ msgid ""
651+ "Ensure this key has a ``kid``. If ``kid`` is not provided by default, it "
652+ "will generate the kid with ``.thumbprint`` method, which is defined by "
653+ "RFC7638."
654+ msgstr ""
655+ "确保此密钥具有 ``kid``。如果默认未提供 ``kid``,将使用 ``.thumbprint`` 方法生成 kid,该方法由 RFC7638"
656+ " 定义。"
657+
658+ #: joserfc._rfc7518.ec_key.ECKey.generate_key:1 of
659+ msgid "Generate a ``ECKey`` with the given \" crv\" value."
660+ msgstr "生成具有给定 \" crv\" 值的 ``ECKey``。"
661+
641662#: joserfc.jwk.ECKey.kid:1 joserfc.jwk.OKPKey.kid:1 joserfc.jwk.OctKey.kid:1
642663#: joserfc.jwk.RSAKey.kid:1 of
643664msgid "The \" kid\" value of the JSON Web Key."
@@ -653,7 +674,7 @@ msgstr ""
653674msgid "Call this method will generate the thumbprint URI defined in RFC9278."
654675msgstr ""
655676
656- #: ../../docstring joserfc.jwk.ECKey.value_registry:1 of
677+ #: joserfc.jwk.ECKey.value_registry:1 of
657678msgid ""
658679"Registry definition for EC Key https://www.rfc-"
659680"editor.org/rfc/rfc7518#section-6.2"
@@ -751,15 +772,34 @@ msgstr ""
751772msgid "Key class of the ``OKP`` key type."
752773msgstr "``OKP`` 密钥类型的密钥类。"
753774
754- #: joserfc._rfc8037.okp_key.OKPKey.generate_key:1 of
755- msgid "Generate a ``OKPKey`` with the given \" crv\" value."
756- msgstr "生成具有给定 \" crv\" 值的 ``OKPKey``。"
775+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:1 of
776+ msgid ""
777+ "Derives a key from a given input secret using a specified key derivation "
778+ "function (KDF) and elliptic curve algorithm."
779+ msgstr ""
780+
781+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:4 of
782+ msgid ""
783+ "To derive a key using **HKDF**, the ``kdf_options`` may contain the "
784+ "``algorithm``, ``salt`` and ``info`` values:"
785+ msgstr ""
786+
787+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:25 of
788+ msgid ""
789+ "To derive a key using **PBKDF2**, the ``kdf_options`` may contain the "
790+ "``algorithm``, ``salt`` and ``iterations`` values:"
791+ msgstr ""
757792
793+ #: joserfc._rfc8037.okp_key.OKPKey.derive_key:46
758794#: joserfc._rfc8037.okp_key.OKPKey.generate_key:3 of
759795msgid "OKPKey curve name"
760796msgstr "OKPKey 曲线名称"
761797
762- #: ../../docstring joserfc.jwk.OKPKey.value_registry:1 of
798+ #: joserfc._rfc8037.okp_key.OKPKey.generate_key:1 of
799+ msgid "Generate a ``OKPKey`` with the given \" crv\" value."
800+ msgstr "生成具有给定 \" crv\" 值的 ``OKPKey``。"
801+
802+ #: joserfc.jwk.OKPKey.value_registry:1 of
763803msgid ""
764804"Registry definition for OKP Key https://www.rfc-"
765805"editor.org/rfc/rfc8037#section-2"
@@ -798,15 +838,15 @@ msgstr ""
798838msgid "The raw key in bytes."
799839msgstr "原始密钥,字节形式。"
800840
801- #: ../../docstring joserfc.jwk.OctKey.value_registry:1 of
841+ #: joserfc.jwk.OctKey.value_registry:1 of
802842msgid "https://www.rfc-editor.org/rfc/rfc7518#section-6.4"
803843msgstr "https://www.rfc-editor.org/rfc/rfc7518#section-6.4"
804844
805845#: joserfc._rfc7518.rsa_key.RSAKey.generate_key:1 of
806846msgid "Generate a ``RSAKey`` with the given bit size (not bytes)."
807847msgstr "生成具有给定位大小(不是字节)的 ``RSAKey``。"
808848
809- #: ../../docstring joserfc.jwk.RSAKey.value_registry:1 of
849+ #: joserfc.jwk.RSAKey.value_registry:1 of
810850msgid ""
811851"Registry definition for RSA Key https://www.rfc-"
812852"editor.org/rfc/rfc7518#section-6.3"
@@ -873,13 +913,13 @@ msgstr "用于紧凑模式的 JSON Web Signature 对象。此对象用于表示
873913msgid "Returns protected header values in dict."
874914msgstr "返回字典形式的受保护的 header 值。"
875915
876- #: ../../docstring joserfc.jws.CompactSignature.payload:1
916+ #: joserfc.jws.CompactSignature.payload:1
877917#: joserfc.jws.FlattenedJSONSignature.payload:1
878918#: joserfc.jws.GeneralJSONSignature.payload:1 of
879919msgid "payload content in bytes"
880920msgstr "字节形式的载荷内容"
881921
882- #: ../../docstring joserfc.jws.CompactSignature.protected:1
922+ #: joserfc.jws.CompactSignature.protected:1
883923#: joserfc.jws.HeaderMember.protected:1 of
884924msgid "protected header"
885925msgstr "受保护的 header"
@@ -888,15 +928,15 @@ msgstr "受保护的 header"
888928msgid "JSON Signature object that represents a flattened JSON serialization."
889929msgstr "表示扁平 JSON 序列化的 JSON Signature 对象。"
890930
891- #: ../../docstring joserfc.jws.FlattenedJSONSignature.flattened:1 of
931+ #: joserfc.jws.FlattenedJSONSignature.flattened:1 of
892932msgid "mark it as flattened"
893933msgstr "标记为扁平"
894934
895935#: joserfc._rfc7515.model.FlattenedJSONSignature.headers:1 of
896936msgid "Header values in dict."
897937msgstr "字典形式的 header 值。"
898938
899- #: ../../docstring joserfc.jws.FlattenedJSONSignature.member:1 of
939+ #: joserfc.jws.FlattenedJSONSignature.member:1 of
900940msgid "the only header member"
901941msgstr "唯一的 header 成员"
902942
@@ -910,11 +950,11 @@ msgstr ""
910950msgid "JSON Signature object that represents a general JSON serialization."
911951msgstr "表示通用 JSON 序列化的 JSON Signature 对象。"
912952
913- #: ../../docstring joserfc.jws.GeneralJSONSignature.flattened:1 of
953+ #: joserfc.jws.GeneralJSONSignature.flattened:1 of
914954msgid "mark it as not flattened (general)"
915955msgstr "标记为非扁平(通用)"
916956
917- #: ../../docstring joserfc.jws.GeneralJSONSignature.members:1 of
957+ #: joserfc.jws.GeneralJSONSignature.members:1 of
918958msgid "a list of header members"
919959msgstr "header 成员列表"
920960
@@ -924,7 +964,7 @@ msgid ""
924964"header, and unprotected header."
925965msgstr "JSON 签名的 header 成员。它由受保护和未保护的 header 组成。"
926966
927- #: ../../docstring joserfc.jws.HeaderMember.header:1 of
967+ #: joserfc.jws.HeaderMember.header:1 of
928968msgid "unprotected header"
929969msgstr "未保护的 header"
930970
@@ -935,11 +975,11 @@ msgid ""
935975"``joserfc.jws``."
936976msgstr "用于 JSON Web Signature 的注册表,用于保存所有支持的算法。通常与 ``joserfc.jws`` 中的方法一起使用。"
937977
938- #: ../../docstring joserfc.jws.JWSRegistry.Strategy.RECOMMENDED:1 of
978+ #: joserfc.jws.JWSRegistry.Strategy.RECOMMENDED:1 of
939979msgid "find the recommended algorithm"
940980msgstr ""
941981
942- #: ../../docstring joserfc.jws.JWSRegistry.Strategy.SECURITY:1 of
982+ #: joserfc.jws.JWSRegistry.Strategy.SECURITY:1 of
943983msgid "find the most secure algorithm"
944984msgstr ""
945985
@@ -975,15 +1015,15 @@ msgstr ""
9751015msgid "the strategy for guessing the JWS algorithm"
9761016msgstr ""
9771017
978- #: ../../docstring joserfc.jws.JWSRegistry.max_header_length:1 of
1018+ #: joserfc.jws.JWSRegistry.max_header_length:1 of
9791019msgid "max header content's size in bytes"
9801020msgstr "header 内容的最大字节大小"
9811021
982- #: ../../docstring joserfc.jws.JWSRegistry.max_payload_length:1 of
1022+ #: joserfc.jws.JWSRegistry.max_payload_length:1 of
9831023msgid "max payload content's size in bytes"
9841024msgstr "payload 内容的最大字节大小"
9851025
986- #: ../../docstring joserfc.jws.JWSRegistry.max_signature_length:1 of
1026+ #: joserfc.jws.JWSRegistry.max_signature_length:1 of
9871027msgid "max signature's size in bytes"
9881028msgstr "签名的最大字节大小"
9891029
@@ -1257,11 +1297,11 @@ msgstr "JWT 的 header 部分"
12571297msgid "the payload part of the JWT"
12581298msgstr "JWT 的有效载荷 (payload) 部分"
12591299
1260- #: ../../docstring joserfc.jwt.Token.claims:1 of
1300+ #: joserfc.jwt.Token.claims:1 of
12611301msgid "payload claims in dict"
12621302msgstr "字典形式的有效载荷 (payload) 声明 (claims)"
12631303
1264- #: ../../docstring joserfc.jwt.Token.header:1 of
1304+ #: joserfc.jwt.Token.header:1 of
12651305msgid "header in dict"
12661306msgstr "字典形式的 header"
12671307
@@ -1328,3 +1368,10 @@ msgstr "要使用的 JSONEncoder 子类"
13281368#: joserfc.jwt.encode:9 of
13291369msgid "default value of the ``typ`` header parameter"
13301370msgstr ""
1371+
1372+ #~ msgid ""
1373+ #~ "This error is designed for JWT. It"
1374+ #~ " raised when the token is not "
1375+ #~ "valid yet."
1376+ #~ msgstr "此错误是为 JWT 设计的,当 Token 不是有效的 JSON 对象时触发。"
1377+
0 commit comments