Ich arbeite an Signaturzertifikat mit HSM, und ich brauche die CA öffentlichen Schlüssel und gibt es zu formatieren. Ich las das Buch EMV und das Format wie folgt:Format Public-Key-
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
ich den Code mit Visual Basic.net.How schreibe kann ich das Format, in dem Code und Ausgang? Ich habe eine Klasse mit dem Namen PublicKey erstellt, und es gibt drei Funktionen, ExportPublicKey, FormatPublicKey und WritePublicKeyToFile.
Kann jemand helfen? Vielen Dank.
Ihr Bild für mich nicht funktioniert, aber wenn das ein Screenshot von Code sollten Sie eher, dass entfernen und den Code setzen _ ** als Text ** _ in der Frage statt. –
@VisualVincent, Hallo, ich kann das Bild sehen, und es ist ein Text in der Frage. – ccy
@VisualVincent und es ist kein Code-Kram, es ist die Formatanforderung. – ccy