Hi there,
I'm trying to retrieve a public key, given x and y with the following code:
//x and y came from a webservice
std::string x =
"40BA49FCBA45C7EEB2261B1BE0EBC7C14D6484B9EF8A23B060EBE67F97252BBC";
std::string y =
"00987BA49DF364A0C9926F2B6DE1BAF46068A13A2C5C9812B2F3451F48B75719EE";
std::s
if I try to save this public key as PEM, I only get
-BEGIN PUBLIC KEY-
MFowMFow-END PUBLIC KEY-
as result. This was also my result with wrong y and failed validation.
Benjamin Schäfer schrieb am Dienstag, 14. September 2021 um 18:04:26 UTC+2:
> Hi there,
>
> I'm
Ok, at least this gives me a ray of hope. So, to get rid of any interfering
codelines, I did:
- Start Visual Studio
- New project (MFC Console, static linked MFC, Multibyte (unicode brings up
the same result)
Full code:
#include
#include
#include "cryptlib.h"
#include "filters.h"
#include "ec
Jeffrey Walton schrieb am Donnerstag, 16. September 2021 um 09:33:26 UTC+2:
> On Thu, Sep 16, 2021 at 2:44 AM Benjamin Schäfer
> wrote:
> >
> > Ok, at least this gives me a ray of hope. So, to get rid of any
> interfering codelines, I did:
> >
> > - Start V
command, I get
vc140.pdb as output. This drives me crazy - being one step away from the
goal and can't figure out what's wrong.
Jeffrey Walton schrieb am Donnerstag, 16. September 2021 um 11:10:36 UTC+2:
> On Thu, Sep 16, 2021 at 4:37 AM Benjamin Schäfer
> wrote:
> >
>
ll try the same again when I'm at home on a different machine, just to
be sure, nothing is screwed up on my working machine.
Benjamin Schäfer schrieb am Donnerstag, 16. September 2021 um 12:02:37
UTC+2:
> I just don't get it. Somehow I can't force the platform toolkit to be
>
Well, I tested it on another machine at home, but the result remains the
same :(
Benjamin Schäfer schrieb am Donnerstag, 16. September 2021 um 13:37:01
UTC+2:
> I've put a 7z archive with all file I've used into the repository. On the
> CTL I switched the working directory
Could you provide me your .exe to test it on my machine? I still don't get
it and will try it on a fresh and clean machine also.
Benjamin Schäfer schrieb am Donnerstag, 16. September 2021 um 17:50:42
UTC+2:
> Well, I tested it on another machine at home, but the result remains the
017 says, it's 64
bit. I will investigate that too.
Jeffrey Walton schrieb am Freitag, 17. September 2021 um 10:58:29 UTC+2:
> On Fri, Sep 17, 2021 at 4:32 AM Benjamin Schäfer
> wrote:
> >
> > Could you provide me your .exe to test it on my machine? I still don't
>
This is somehow ridiculus. I just set up a brand new VM with Win10, new
version. Also installed VS2019 Community. Nothing else, ran the upper
commands on the content of the 7zip archive and I still get the same
result. This can't be something with Intel vs. AMD, could it?
Your offer is fantast
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 :)
Jeffrey Walton schrieb am Samstag, 18. September 2021 um 05:11:31 UTC+2:
> On Fri
frey 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
> 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 th
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.
13 matches
Mail list logo