Okay, I've read the articles, but somehow I don't know where to start. I
have to use the public key, generated out of x and y, algorith brainpool,
to encrypt a JWT. The JWT is generated with the cpp-jwt library and now I
really don't know what to do. How can I "convert" the public key I got from
CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey publicKey;
publicKey.Initialize(CryptoPP::ASN1::brainpoolP256r1(), q);
to the needed byte array. What do I have to use as initialisation vector?
I'm no pro in crypto-algorithms but I have to use them for a specific
project -_-
Jeffrey Walton schrieb am Samstag, 18. September 2021 um 15:29:40 UTC+2:
> On Fri, Sep 17, 2021 at 11:59 PM Benjamin Schäfer
> <[email protected]> wrote:
> >
> > Correction: I have to encrypt the JWT, not sign it. Signing is with the
> private key - which I don't have. I will take a look at the article and the
> linking. Maybe that will bring some hints for me. Thanks again :)
>
> This may help if you need to verify signatures:
> https://www.cryptopp.com/wiki/JSON_Web_Signature
>
> Jeff
>
--
You received this message because you are subscribed to the Google Groups
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/cryptopp-users/85cd607f-c650-4326-a883-794fc82a90fdn%40googlegroups.com.