zhangke5959 / strongswan

支持国密sm1,sm2,sm3,sm4算法的ipsec vpn。
Other
102 stars 76 forks source link

OID.txt中的国密算法是按照什么要求添加的 #25

Open zzzzrf opened 8 months ago

zzzzrf commented 8 months ago

您好:

我在阅读您国密相关的commit时对国密算法的OID命名比较疑惑,烦请告知这样写的原因,谢谢!

0x2A                         ""
  0x81                       ""
    0x1c                     "ISO-CN"
      0xcf                   ""
        0x55                 "oscca"
          0x01               "sm-scheme"
            0x66             "sm1"
              0x01           "sm1-ecb"                          OID_SM1_ECB
              0x02           "sm1-cbc"                          OID_SM1_CBC
            0x68             "sm4"
              0x01           "sm4-ecb"                          OID_SM4_ECB
              0x02           "sm4-cbc"                          OID_SM4_CBC
            0x82             ""
              0x2d           "sm2"              OID_SM2
            0x83             ""
              0x11           "sm3"
                0x01         "hash-sm3"             OID_SM3
              0x75           "sm2signsm3"           OID_SM2_WITH_SM3
akaascar commented 3 weeks ago

这是asn.1编码