www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - RSA library

reply Andre Pany <andre s-e-a-p.de> writes:
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é
Aug 18 2016
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
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.
Aug 18 2016
next sibling parent Kagamin <spam here.lot> writes:
Well, windows api has RSA 
https://msdn.microsoft.com/en-us/library/windows/desktop/aa3755
4%28v=vs.85%29.aspx is it different from RSA256?
Aug 18 2016
prev sibling parent reply Andre <andre s-e-a-p.de> writes:
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
Aug 18 2016
parent Kagamin <spam here.lot> writes:
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.
Aug 19 2016