pkcs8.asn

来自「vc环境下的pgp源码」· ASN 代码 · 共 26 行

ASN
26
字号
IMPORTS AlgorithmIdentifier, Attributes, Version FROM x509;

PrivateKeyInfo ::= SEQUENCE {
  version Version,

  privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
  privateKey PrivateKey,
  attributes [0] IMPLICIT Attributes OPTIONAL }

-- Version ::= INTEGER

PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier

PrivateKey ::= OCTET STRING

-- Attributes ::= SET OF Attribute

EncryptedPrivateKeyInfo ::= SEQUENCE {
  encryptionAlgorithm EncryptionAlgorithmIdentifier,
  encryptedData PKCS8EncryptedData }

EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier

-- unfortunately, PKCS-7 defined EncryptedData to be something else...
PKCS8EncryptedData ::= OCTET STRING

⌨️ 快捷键说明

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