我正在使用HSM签署证书,我需要格式化CA公钥并输出它。我读的书EMV和格式如下:格式公钥
Field Name Length Description Format
Registered
Application Provider 5 Identifies the payment system to b
Identifier (RID) which the Certification Authority
Public Key is associated
Certification
Authority Public Key 1 Identifies the Certification
Index Authority Public Key in b
conjunction with the RID
Certification
Authority Hash 1 Identifies the hash algorithm used b
Algorithm Indicator to produce the Hash Result in the
digital signature scheme
Certification
Authority Public Key 1 Identifies the digital signature
Algorithm Indicator algorithm to be used with the b
Certification Authority Public Key
Certification
Authority Public Key Var. Value of the modulus part of the b
Modulus (max Certification Authority Public Key
248)
Certification
Authority Public Key 1 or 3 Value of the exponent part of the b
Exponent Certification Authority Public Key,
equal to 3 or 216 + 1
Certification
Authority Public Key 20 A check value calculated on the b
Check Sum36 concatenation of all parts of the
Certification Authority Public Key
(RID, Certification Authority
Public Key Index, Certification
Authority Public Key Modulus,
Certification Authority Public Key
Exponent) using SHA-1
我写了Visual Basic.net.How的代码,我可以在代码和输出格式呢?我创建了一个名为PublicKey的类,并且有三个函数,ExportPublicKey,FormatPublicKey和WritePublicKeyToFile。
任何人都可以帮忙吗?非常感谢你。
您的图片对我而言不起作用,但如果这是代码截图,您应该将其删除,并将代码_ **替换为文本** _。 –
@VisualVincent,嗨,我可以看到图像,它是问题中的文本。 – ccy
@VisualVincent,它不是代码的东西,它的格式要求。 – ccy