HELP: Create new encryption with coordinates of PUK and BrainpoolP256R1 Curve #1379
-
Hey, So what I got from API is:
In a reference implementation seeing below they using this C# reference code:
However, is it possible to archive this with your library and if yes how can we do this with these x and y values? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @kheinrich188 , OpenPGP.js is not a generic crypto library, it deals with OpenPGP messages specifically. Unless you have a recipient OpenPGP key to encrypt to (which doesn't seem to be the case), this is not the right tool for you. BrainpoolP256R1 is supported natively by NodeCrypto, but if you need to run the code in the browser, you can try the elliptic library, even though it is not constant time (hence there might be more secure alternatives). |
Beta Was this translation helpful? Give feedback.
Hi @kheinrich188 , OpenPGP.js is not a generic crypto library, it deals with OpenPGP messages specifically. Unless you have a recipient OpenPGP key to encrypt to (which doesn't seem to be the case), this is not the right tool for you.
BrainpoolP256R1 is supported natively by NodeCrypto, but if you need to run the code in the browser, you can try the elliptic library, even though it is not constant time (hence there might be more secure alternatives).