bc-csharp
bc-csharp copied to clipboard
How to create AsymmetricKeyParameter from byte[] ?
Hello. I have SM2 key pairs which is generated from cipher machine and its type is byte[]. Now I want to use them to generate SM2 Certificate by BouncyCastle. How to create AsymmetricKeyParameter or other object type in BouncyCastle from byte[] , so that I can generate SM2 Certificate.
Here is a SM2 key pair hex string from cipher machine.
publish key:412F0AC624CB07D4E61F197F85AA71B547365E3EBE3967BD7A5ECD974D74BF91DA66BAD664C2FD018A2B392518D5449E895435E44C24528EBC59D83344978042
private key:8833748F9E4E4F8440727F17A2FAF7414EEEDBCE7690CC3B07A1D237F1164C12