非对称密钥类型


🌐 Asymmetric key types

下面的列表按照每种类型支持导入和导出的完整格式集合,将 KeyObject API 识别的非对称密钥类型分组。

🌐 The following lists group the asymmetric key types recognized by the KeyObject API by the complete set of formats supported for importing and exporting each type.

格式: 'pem''der'

  • 'dh'(Diffie-Hellman) — OID 1.2.840.113549.1.3.1
  • 'dsa' — OID 1.2.840.10040.4.1
  • 'rsa-pss' — OID 1.2.840.113549.1.1.10

格式: 'pem''der''jwk'

  • 'rsa' — OID 1.2.840.113549.1.1.1

格式: 'pem', 'der', 'jwk', 'raw-public', 'raw-private'

  • 'ec'(椭圆曲线) — OID 1.2.840.10045.2.1
  • 'ed25519' — OID 1.3.101.112
  • 'ed448' — OID 1.3.101.113
  • 'slh-dsa-sha2-128f'1 — 对象标识符 2.16.840.1.101.3.4.3.21
  • 'slh-dsa-sha2-128s'1 — 对象标识符 2.16.840.1.101.3.4.3.20
  • 'slh-dsa-sha2-192f'1 — 对象标识符 2.16.840.1.101.3.4.3.23
  • 'slh-dsa-sha2-192s'1 — 对象标识符 2.16.840.1.101.3.4.3.22
  • 'slh-dsa-sha2-256f'1 — 对象标识符 2.16.840.1.101.3.4.3.25
  • 'slh-dsa-sha2-256s'1 — 对象标识符 2.16.840.1.101.3.4.3.24
  • 'slh-dsa-shake-128f'1 — 对象标识符 2.16.840.1.101.3.4.3.27
  • 'slh-dsa-shake-128s'1 — 对象标识符 2.16.840.1.101.3.4.3.26
  • 'slh-dsa-shake-192f'1 — 对象标识符 2.16.840.1.101.3.4.3.29
  • 'slh-dsa-shake-192s'1 — 对象标识符 2.16.840.1.101.3.4.3.28
  • 'slh-dsa-shake-256f'1 — 对象标识符 2.16.840.1.101.3.4.3.31
  • 'slh-dsa-shake-256s'1 — 对象标识符 2.16.840.1.101.3.4.3.30
  • 'x25519' — OID 1.3.101.110
  • 'x448' — OID 1.3.101.111

格式: 'pem', 'der', 'jwk', 'raw-public', 'raw-seed'

  • 'ml-dsa-44'1 — 对象标识符 2.16.840.1.101.3.4.3.17
  • 'ml-dsa-65'1 — 对象标识符 2.16.840.1.101.3.4.3.18
  • 'ml-dsa-87'1 — 对象标识符 2.16.840.1.101.3.4.3.19
  • 'ml-kem-512'1 — 对象标识符 2.16.840.1.101.3.4.4.1
  • 'ml-kem-768'1 — 对象标识符 2.16.840.1.101.3.4.4.2
  • 'ml-kem-1024'1 — 对象标识符 2.16.840.1.101.3.4.4.3