keyObject.asymmetricKeyDetails


  • <Object>

    • modulusLength<number> 以位为单位的密钥大小(RSA、DSA)。

      ¥modulusLength: <number> Key size in bits (RSA, DSA).

    • publicExponent<bigint> 公共指数 (RSA)。

      ¥publicExponent: <bigint> Public exponent (RSA).

    • hashAlgorithm<string> 消息摘要的名称 (RSA-PSS)。

      ¥hashAlgorithm: <string> Name of the message digest (RSA-PSS).

    • mgf1HashAlgorithm<string> MGF1 (RSA-PSS) 使用的消息摘要的名称。

      ¥mgf1HashAlgorithm: <string> Name of the message digest used by MGF1 (RSA-PSS).

    • saltLength<number> 以字节为单位的最小盐长度 (RSA-PSS)。

      ¥saltLength: <number> Minimal salt length in bytes (RSA-PSS).

    • divisorLength<number> q 的大小(以位为单位)(DSA)。

      ¥divisorLength: <number> Size of q in bits (DSA).

    • namedCurve<string> 曲线的名称 (EC)。

      ¥namedCurve: <string> Name of the curve (EC).

此属性仅存在于非对称密钥上。根据密钥的类型,此对象包含有关密钥的信息。通过此属性获得的任何信息都不能用于唯一标识密钥或危及密钥的安全性。

¥This property exists only on asymmetric keys. Depending on the type of the key, this object contains information about the key. None of the information obtained through this property can be used to uniquely identify a key or to compromise the security of the key.

对于 RSA-PSS 密钥,如果密钥材料包含 RSASSA-PSS-params 序列,则将设置 hashAlgorithmmgf1HashAlgorithmsaltLength 属性。

¥For RSA-PSS keys, if the key material contains a RSASSA-PSS-params sequence, the hashAlgorithm, mgf1HashAlgorithm, and saltLength properties will be set.

其他密钥细节可能会使用额外属性通过此 API 暴露。

¥Other key details might be exposed via this API using additional attributes.