Thales Payshield 9000的RSA_SK是什么格式?

时间:2019-02-08 10:57:24

标签: cryptography format private-key hsm

我收到来自Test Thales HSM Payshield 9000的EI命令(“通用RSA密钥对”)的以下响应。

03AA

474F5357  ==> header

454A  ==> EJ, response command

3030  ==> 00, error code

**3082010A0282010100B23FEF15AD4D89535C944D71B8BCFE526DC39ECD9D8656DAA46D1638F7178C4FEFE05EFEF5273A4E79D63912C388C1922263017972942EDF393E29FEF15B43E8B43DA9B1A50D8118BD9B584B6B1599E235CC07B14D3A00DAFE49D18E49967C89206BC81C6490249234F0C99A0082ACD651D0F2B28C43CA2E72EFF70E8ED9E5D2F04EE0F625F1F7E56E5D082989E7779DA391CA667182E163413582A86E40A60532F1F968E70089D2CDD427E66DBE3E46E07509E5025B2B390E6C53A2B32E865340CEC3455800393FE2A14A8D37E2C0F1175F5DB105D8916B07232DA31BA94D603CD39A3CDB59783783E6C0BC6058731210762331450D193BFB8B3E8F09F15D070203010001**

30363536  ==> 656, private key length (656 bytes)

**20C71F7F6A18927150D982B6C2244885BE10AD8C35C85256D4229D3676059377D524A3724C1C0C17444AAFEFAD1AAFFDDDCDE497386AE52F7AA7FB9986F406F5B538AFCE3D79265A7CBF7B0D1AB198D869A95F8B7209A4ACF98C58C6D46E0CC47931C47427ECE847E6F2F31A160A2E1BB52112A2936029319C835B0793C894D17FBE81407FE7E917CAE5E029ED2DF0A757956EBC20B744456E2C2FCCFDADF9C37F11CC63C023BB9EBF7799C3922D1F8CF63551D8D8C4D5A74D8A6D18382057CD5B408FCB82EE5D9A9C192B7565C0ED85433900BA28B41DB6437EA1D029D31936DB0D0582FF257A070594411A66FA170628F650EBDED04F75792B43BBAB9F6BB854FE7BF72BF3B4E5BF693A5E2AD04C1BB76C650B71F014FEAC42C31FEC8B79A3BA2EED5BAC9F05CCCD92387C09549A04603C74EFE927CDE39EAD4C9A444D2215A43ECB9CC2F966E5D5E824AAC52D3349E2EAA76BD7456262A9E42C69053A5D1E56B9CBAEBEB4BA3F8D36FF5FDF982E49EB3ABCCDD42D439C97B6672018284645CCF9DD9460407E4A26DEF71B69F6E3C53D49221F2A76183DCEB759F8D3F57313A108004FF5B43AE6F20084267E6A1FFA75C13EB8F56870A19FBE8323A50A30715B93ABAF98E6BEF4D1CF15E0DF5845D7F6539058311550D16A7A82A870A451C0F0FAD27D73F6F3460D4179F3415073A004174A883296F51FC2E613D204644058643CA72153A6AE4345047A0DFED62BDEC4C8760EC47C2B08B5D1E15A49F0160A791840B7F7D0C8E21CC2886E179C9131FFFEF7B37A6298D0775B650AD12FCA01B0BD20898A1E20648EA6C8663A2B4DAED1A169B2684A346542DE05543A226AC37B04C3F889A7771E92D40713BD8792A73BDB4C3FFBC1092DE09A376415961E0994C872D0AB845010256A5E59B49B7D58**

第一个突出显示的部分是ASN.1格式的公钥,可以使用任何在线ans.1解析器轻松对其进行解析。 但是,我发现在突出显示的第二部分中很难理解私钥格式。

根据文档,它说此私钥是根据LMK密钥对34,35加密的。

LMK密钥对34,35(即密钥类型00C)是此清除值: 2a2a2a2a2a2a2a2a2c2c2c2c2c2c2c2c

在使用TripleDES(ECB模式)的EI响应中使用以上密钥解密私钥时,输出如下:

7091312539a335304692623f3e119624f512373b9092a4821bb8e412c6b8614558cb51460a3343d5cfc0cc4d709e526918b518d9d5e121451260634df7aea2d54e87d170443b5ddbccfb9f42175862bec9e379aa837e84f3a37f9294f1662be1959763498da2a51c1459434b4ce71b004e8e952df3a3037d51f2e074​​53d9eef3316242d14affd85afc4a05aec5ce92ee5bdbac82a940fe08970aa469fdeec0a570875df1a5d1e22cb41351862d9159968abf2641a342857ff05914a1ecade038e4e57b2c073419eb5df8bd637e526904dbab4e16e3debe1877264805b6e6903032c062fb9d8d376100a9a6183aa508259bb2e4311f486ca0985e428c831fd4fcba0394ef684687eb68cbbdcd4cc4c74034248ceb502893de8c05ad8b21d36de6fcfe859e4a6d4bc05d76ecc3a8e53fc39ee55527fa124ce2471cfb7a3e81f7e7350453668298eb2ec2c36e885bbdb6f6afba574a3827e142f3d81b8f32d704b9d66ec31b71e6eb3b44a14e1f77a59056acee34c3ec62b817140c5f012bd2e1871a692a34d78e7b288c2bbeb5f802539ffca014a6eb1a25f00406219559fea36c452c98dca557b109de0d73efe9da01ee39a904e7d78c9d34609d08116ee7179bd94c0f1188809909c47cabe190da773ddd82bad47e1142e60c6c620cc293558581a2a1ca63cdf0a14105a53c19be7b629a6bb f1263624d5bae1ef81dc4f1ad2f8f0508ee27c50c1489fbf9c517d7dbdb41b5241c8dc6af48f1a0b33e098c50400e6fc9f9885f90d870a0f135262dc5653f80b19bbb505fa7900e468beb388ea0f4782d8b602779edd809c424811223fbbddc0579cbdf8156997366e2a7293de1571f30dfa5a0900636bcb967dadaf33824e2b1aba8dbaf1af534a0a2970609f7cab52719c78ee4df1939f556551827c8

它与任何格式都不匹配。

谁能告诉我RSA-SK(密钥类型00C)的格式是什么?

0 个答案:

没有答案