-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the type def of generateKey() in DH class? #14
Comments
Would like to see answer for this too. |
Hope is not too late to reply, as the documentation says at https://opensource.apple.com/source/CommonCrypto/CommonCrypto-60027/Source/CommonCryptoSPI/CommonDH.h It returns a byte string
|
It's an Octet String as defined in PKCS#3. https://github.com/st3fan/osx-10.9/blob/master/CommonCrypto-60049/lib/CommonDH.c#L124 Maybe the java's X509EncodedKeySpec can use it. |
Hi,
What is the content of NSData that is returned by generateKey() in DH class?
How can I convert it (Public Key) to X509 in order to be used by Java consumer?
Best Regards,
P
The text was updated successfully, but these errors were encountered: