X509SubjectKeyIdentifierHashAlgorithm 枚举

定义

定义用于 X509SubjectKeyIdentifierExtension 类的哈希算法类型。Defines the type of hash algorithm to use with the X509SubjectKeyIdentifierExtension class.

public enum class X509SubjectKeyIdentifierHashAlgorithm
public enum X509SubjectKeyIdentifierHashAlgorithm
type X509SubjectKeyIdentifierHashAlgorithm = 
Public Enum X509SubjectKeyIdentifierHashAlgorithm
继承
X509SubjectKeyIdentifierHashAlgorithm

字段

CapiSha1 2

主题密钥标识符 (SKI) 由编码公钥(包括标记、长度和未使用位数)的 160 位 SHA-1 哈希组成。The subject key identifier (SKI) is composed of a 160-bit SHA-1 hash of the encoded public key (including the tag, length, and number of unused bits).

Sha1 0

SKI 由公钥值(不包括标记、长度和未使用位数)的 160 位 SHA-1 哈希组成。The SKI is composed of the 160-bit SHA-1 hash of the value of the public key (excluding the tag, length, and number of unused bits).

ShortSha1 1

SKI 由具有值 0100 的四位类型字段组成,后跟公钥值(不包括标记、长度和未使用字符串位数)的 SHA-1 哈希的 60 位最低有效位The SKI is composed of a four-bit type field with the value 0100, followed by the least significant 60 bits of the SHA-1 hash of the value of the public key (excluding the tag, length, and number of unused bit string bits)

注解

使用 XML 数字签名时, 主题密钥标识符 (SKI) 为证书使用者提供唯一的标识。The subject key identifier (SKI) provides a unique identification for a certificate's subject when working with XML digital signing. SKI 是使用者公钥信息的 SHA-1 哈希。An SKI is an SHA-1 hash of the subject's public key information.

创建 SKI 时, 使用X509SubjectKeyIdentifierExtension 枚举定义要用于类的哈希算法的类型。X509SubjectKeyIdentifierHashAlgorithmUse the X509SubjectKeyIdentifierHashAlgorithm enumeration to define the type of hash algorithm to use with the X509SubjectKeyIdentifierExtension class when creating an SKI.

适用于