Topic: How to connect NTRU library in wolfssl, and migrate to openssl

Hello, i've been working on my project for 2 months, and im stuck at this state, im wondering if someone can guide me privately or some other ways, it will helpful and great for me!

So, long story short, my plans are create certificate that it's algorithm fusion with NTRU, so i added NTRU library to wolf ssl with this

./configure --with-ntru=/usr/local/lib/ --enable-all CFLAGS="-DWOLFSSL_STATIC_RSA" --enable-opensslextra

and opensslextra to migrate to openssl as the manual guide said.

What am i supposse to do to creating certificate using NTRU library?

Share

Re: How to connect NTRU library in wolfssl, and migrate to openssl

Hi laurensiaaverin,

There is an ntru cert and key provided for testing in wolfssl-root/certs/ntru-cert.pem wolfssl-root/certs/ntru-key.raw.

To generate these one can use the APIs' wc_MakeNtruCert() and ntru_crypto_ntru_encrypt_keygen(). For a reference example please checkout wolfssl-root/wolfcrypt/test/test.c and find the section wrapped by "#ifdef HAVE_NTRU". In that section we create the new key and update the certificate.

Let us know if this helps.

Warm Regards,

K

Re: How to connect NTRU library in wolfssl, and migrate to openssl

Hello K,

Which is mean, i dont have to link the NTRU Crypto from github to wolfssl? Because there's already NTRU lib in wolfssl?

Share

Re: How to connect NTRU library in wolfssl, and migrate to openssl

laurensiaaverin,

You do need to link the ntru crypto from github. wolfSSL has API's that rely on the ntru crypto library but make it easier for users to consume.

Warm Regards,

K

Re: How to connect NTRU library in wolfssl, and migrate to openssl

Im sorry, i didnt quiet understand this one :

To generate these one can use the APIs' wc_MakeNtruCert() and ntru_crypto_ntru_encrypt_keygen(). For a reference example please checkout wolfssl-root/wolfcrypt/test/test.c and find the section wrapped by "#ifdef HAVE_NTRU". In that section we create the new key and update the certificate.

Im still trying to understand it, but it seems im not even reach that part yet. I mean, can u give some example certificate generate with that command line in Linux, please?

Share

Re: How to connect NTRU library in wolfssl, and migrate to openssl

laurensiaaverin,

My apologies it is unclear. Here is a link to the code: https://github.com/wolfSSL/wolfssl/blob … 640-L13817

I mean, can u give some example certificate generate with that command line in Linux, please?

I can not, the example we have is programatic. If you need to write a custom little application that takes in user input you could do that easily enough!

I've attached the example cert and key.

Warm Regards,

K

Post's attachments

ntru-cert.pem 1.73 kb, 3 downloads since 2020-07-02 

You don't have the permssions to download the attachments of this post.

Re: How to connect NTRU library in wolfssl, and migrate to openssl

Here is the key (can only attach one file at a time)

- K

Post's attachments

ntru-key.raw 607 b, 3 downloads since 2020-07-02 

You don't have the permssions to download the attachments of this post.

8 (edited by laurensiaaverin 2020-07-03 15:51:32)

Re: How to connect NTRU library in wolfssl, and migrate to openssl

Great! Thank you so much for your amazing help!

I'll try it first and running it.

But i have one more question, it's related to my project assignment. Is it any possible way to enable it in apache? 'Cause, i want to try it on LAN connection first

Share

9 (edited by laurensiaaverin 2020-07-03 15:52:25)

Re: How to connect NTRU library in wolfssl, and migrate to openssl

Oh, yes, one more thing to inform you, my project assignment is to create self-signed certificate, but the algorithms are mix with NTRU, so i tried it on LAN connection first to make it sure it's run smoothly. It might help you to understand my problems.

Thankyou very much, Kaleb.

Verin.

Share