【问题标题】:How to read PKCS ASN.1 specs如何阅读 PKCS ASN.1 规范
【发布时间】:2022-01-09 13:25:24
【问题描述】:

例如https://datatracker.ietf.org/doc/html/rfc5208#appendix-A

没有定义顶级结构。只是一堆以某种顺序出现的内部位。但是外层序列在哪里?

此外,实际上在哪里可以找到导入的定义,例如属性?

【问题讨论】:

    标签: asn.1


    【解决方案1】:

    有顶层结构,是PrivateKeyInfo:

    PrivateKeyInfo ::= SEQUENCE {
      version Version,
      privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}},
      privateKey PrivateKey,
      attributes [0] Attributes OPTIONAL }
    

    此外,实际上在哪里可以找到导入的定义,例如属性?

    来自 ASN.1 模块:

    Attribute
             FROM InformationFramework informationFramework
    

    寻找进口: 进口

    informationFramework
             FROM UsefulDefinitions {joint-iso-itu-t(2) ds(5) module(1)
                                     usefulDefinitions(0) 3}
    

    这代表 OID 1.2.5.1.0.3 InformationFramework 在 X.501 中定义:https://www.itu.int/ITU-T/formal-language/itu-t/x/x501/2019/InformationFramework.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多