Thread overview
RSA library
Aug 18, 2016
Andre Pany
Aug 18, 2016
Adam D. Ruppe
Aug 18, 2016
Kagamin
Aug 18, 2016
Andre
Aug 19, 2016
Kagamin
August 18, 2016
Hi,

I am searching for a RSA (256) library to validate the signature of a JWT token.
Although there are OpenSSL and Botan both have some small disadvantages.
For OpenSSL I always have include the DLLs on windows and for Botan
you have to install the Microsoft Linker or built it as win64 application.

Is there a D library which can be built with a plain x86 DMD and without
dll dependencies?

Kind regards
André

August 18, 2016
On Thursday, 18 August 2016 at 09:00:58 UTC, Andre Pany wrote:
> Is there a D library which can be built with a plain x86 DMD and without dll dependencies?

Not that I know of, and I don't think the win32 api includes rsa256 (though .net does!).

The botan lib though, why doesn't it work on 32 bit optlink? You might be able to hack it by just taking the algorithms you need and compiling yourself.
August 18, 2016
Well, windows api has RSA https://msdn.microsoft.com/en-us/library/windows/desktop/aa375534%28v=vs.85%29.aspx is it different from RSA256?
August 18, 2016
On Thursday, 18 August 2016 at 14:29:54 UTC, Adam D. Ruppe wrote:
> On Thursday, 18 August 2016 at 09:00:58 UTC, Andre Pany wrote:
>> Is there a D library which can be built with a plain x86 DMD and without dll dependencies?
>
> Not that I know of, and I don't think the win32 api includes rsa256 (though .net does!).
>
> The botan lib though, why doesn't it work on 32 bit optlink? You might be able to hack it by just taking the algorithms you need and compiling yourself.

It is a statement from the botan github readme, maybe due to a dependency.

I will try the windows api, from the description it seems exactly what i need. I will also check wheter the specific botan part could be extracted.
Thanks a lot.

Kind regards
Andre
August 19, 2016
On Thursday, 18 August 2016 at 17:56:54 UTC, Andre wrote:
> I will try the windows api, from the description it seems exactly what i need.

CNG was introduced in Vista if it matters.