In the end it could be broke down to: I want to encrypt a std::string (the JSON Web Token) with the public key I created out of x and y with crypto++. I will take a look into OpenSSL and what I could do with that, but this project seems to get out of hand. Jeffrey Walton schrieb am Dienstag, 21. September 2021 um 14:35:43 UTC+2:
> > 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 -_- > > Sorry, I'm not sure what you need. I'm not familiar with cpp-jwt. > > Maybe it would be easier to add Brainpool support to cpp-jwt. Then you > won't need to use other libraries. cpp-jwt will do everything you > need. > > cpp-jwt uses OpenSSL for its cryptography. It should be relatively > easy to add the support. > > 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 cryptopp-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/5e15462e-3cd7-4d54-8088-5af5de801619n%40googlegroups.com.