local.asn

来自「可以实现对邮件的加密解密以及签名」· ASN 代码 · 共 45 行

ASN
45
字号
--
-- CMS specific ASN.1 definitions, all other definitions are from PKIX, part 1
--

-- for certificate validation, we need the raw form of the signed portion
-- so use the following definition to just parse the outer information
XCertificate ::= SEQUENCE {
        tbsCertificate                ANY,
        signatureAlgorithm        AlgorithmIdentifier,
        signature                BIT_STRING
}

-- RSA public key definition from X.509 --

RSAKey ::= SEQUENCE {
        modulus INTEGER,
        exponent INTEGER
}

-- DSS definitions 

DSAPublicKey ::= INTEGER -- public key Y

-- PKCS #10 --

Attributes ::= SET_OF Attribute

CertificationRequestInfo ::= SEQUENCE {
  version Version,
  subject Name,
  subjectPublicKeyInfo SubjectPublicKeyInfo,
  attributes [0] IMPLICIT Attributes
}

CertificationRequest ::= SEQUENCE {
  certificationRequestInfo CertificationRequestInfo,
  signatureAlgorithm AlgorithmIdentifier,
  signature BIT_STRING
}

-- PKCS-1

md5 OBJECT IDENTIFIER ::=
{ iso(1) member-body(2) US(840) rsadsi(113549) digestAlgorithm(2) 5 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?