Replies: 1 comment 1 reply
-
This has come up before, have a look at: #1478 We'd welcome further clarity on this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use the following java code to generate WAPI192 keypair,
KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC", providerName);
kpg.initialize(new ECGenParameterSpec("wapi192v1"));
KeyPair kp = kpg.generateKeyPair();
The public key generated like this,
-----BEGIN PUBLIC KEY-----
MEkwEwYHKoZIzj0CAQYIKoEc12MBAQEDMgAELE3dc1Zq6xy4NKn3kP6KufuADCyT
DDrCqTQxonRLtrWuE+nMn09OeyVGyQ6lkzto
-----END PUBLIC KEY-----
In ASN1 view,
SEQUENCE {
SEQUENCE {
OBJECT IDENTIFIER ecPublicKey (1 2 840 10045 2 1)
(ANSI X9.62 public key type)
OBJECT IDENTIFIER '1 2 156 11235 1 1 1'
}
BIT STRING 0 unused bits
04 2C 4D DD 73 56 6A EB 1C B8 34 A9 F7 90 FE 8A
B9 FB 80 0C 2C 93 0C 3A C2 A9 34 31 A2 74 4B B6
B5 AE 13 E9 CC 9F 4F 4E 7B 25 46 C9 0E A5 93 3B
68
}
Should the parameter OID be "1.2.156.11235.1.1.2.1" ?
Then I wonder if the signature OID is wrong also.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions