Re: CNG engine on GitHub

2021-07-07 Thread Reinier Torenbeek
Hello Selva and Matt, Thanks for the pointers. Following the suggested approach, I have added (in a branch of a fork) initial support of RSA-PSS for the BCrypt engine and the few first tests look promising. Next, I will do the same thing for NCrypt. After that I will probably add support for OAEP

Re: CNG engine on GitHub

2021-07-02 Thread Selva Nair
Hi > >> >> This is great, but limiting RSA signature to RSA-PKCS#1 v 1.5 is a major >> limitation. It doesn't have to be that way as the OpenSSL engine interface >> does allow using EVP_PKEY_METHOD callbacks instead of rsa_priv_dec etc. >> > > Yes I agree the lack of support for RSA-PSS is

Re: CNG engine on GitHub

2021-07-02 Thread Matt Caswell
On 02/07/2021 16:33, Matt Caswell wrote: via the RSA_PKEY_METHOD I meant RSA EVP_PKEY_METHOD. Matt

Re: CNG engine on GitHub

2021-07-02 Thread Matt Caswell
On 02/07/2021 16:18, Reinier Torenbeek wrote: It is not clear to me what you mean with "the OpenSSL engine interface does allow using EVP_PKEY_METHOD callbacks instead of rsa_priv_dec etc.". Can you elaborate (here or on the GitHub issue)? You can hook the RSA calls at different

Re: CNG engine on GitHub

2021-07-02 Thread Reinier Torenbeek
Hi Selva, On Fri, Jul 2, 2021 at 10:49 AM Selva Nair wrote: > Hi, > > On Thu, Jul 1, 2021 at 1:49 PM Reinier Torenbeek < > reinier.torenb...@gmail.com> wrote: > >> Hi, >> >> For anyone interested in leveraging Windows CNG with OpenSSL 1.1.1, you >> may want to check out this new OpenSSL CNG

Re: CNG engine on GitHub

2021-07-02 Thread Reinier Torenbeek
Hi Richard, Glad you like it. The cert: scheme is a little inconvenient and I do not know how extensively it is used in practice. But it seemed appropriate to leverage it since it was around already and seemed to fit the bill. Microsoft's documentation is not too extensive, but for anybody

Re: CNG engine on GitHub

2021-07-02 Thread Selva Nair
Hi, On Thu, Jul 1, 2021 at 1:49 PM Reinier Torenbeek < reinier.torenb...@gmail.com> wrote: > Hi, > > For anyone interested in leveraging Windows CNG with OpenSSL 1.1.1, you > may want to check out this new OpenSSL CNG Engine project on GitHub: > https://github.com/rticommunity/openssl-cng-engine

Re: CNG engine on GitHub

2021-07-02 Thread Reinier Torenbeek
Thanks Matt. >From your response, it seems that this would be a good moment to start looking into the provider interface. I will check it out (and may get back with questions after that...) Reinier On Fri, Jul 2, 2021 at 4:21 AM Matt Caswell wrote: > > > On 02/07/2021 04:25, Reinier Torenbeek

Re: CNG engine on GitHub

2021-07-02 Thread Richard Levitte
This is cool! I had some kind of skeleton of a start to make something similar, but time was never on my side. I'm really glad to see this got picked up! This also answered a question I never got the answer for, what scheme to use for the STORE. I know next to nothing about PowerShell, so

Re: CNG engine on GitHub

2021-07-02 Thread Matt Caswell
On 02/07/2021 04:25, Reinier Torenbeek wrote: Hi Matt, I am aware of the deprecation of the engine interface with 3.0 but have not looked into the details of support providers yet. I expect converting an engine to a support provider could be done with quite a bit of code reuse, correct?

Re: CNG engine on GitHub

2021-07-01 Thread Reinier Torenbeek
Hi Matt, I am aware of the deprecation of the engine interface with 3.0 but have not looked into the details of support providers yet. I expect converting an engine to a support provider could be done with quite a bit of code reuse, correct? Would you say the interface and design of support

Re: CNG engine on GitHub

2021-07-01 Thread Matt Caswell
Nice! Are there any thoughts to support providers? The engine interface is deprecated in 3.0. Matt On 01/07/2021 18:49, Reinier Torenbeek wrote: Hi, For anyone interested in leveraging Windows CNG with OpenSSL 1.1.1, you may want to check out this new OpenSSL CNG Engine project on GitHub: