2

Can anybody point me to C or Java code (or anything else) that does NTRU encryption?

Several people who were implementing the algorithm have posted on this site, so maybe they could help?

I also noticed that quite a number of NTRU implementations have been written at universities, so it would seem strange that sources, or at least sample code, are so hard to come by.

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
ApplesOranges
  • 143
  • 1
  • 7

6 Answers6

3

The NTRU crypto is now available under an approved open source GPL v2 license. You can find it here. https://github.com/NTRUOpenSourceProject/ntru-crypto

3

Try this: http://sourceforge.net/projects/ntru/

2

There is a post here: http://java.itags.org/java-programming/164200/

You may find the tutorials on the NTRU website helpful -- http://www.ntru.com/cryptolab is the place to start.

Note that we encourage people to develop and play with the algorithms themselves, but you may not distribute your implementation without a license from NTRU.

================================

William Whyte, CTO, NTRU Cryptosystems

Perhaps this is why you cannot locate the source code, as you need a license.

Michael Baker
  • 3,338
  • 26
  • 29
  • I'm sure the NTRU company would like to be sent money every time somebody implements the algorithm. But things like ECC are patented out the wazoo and yet there are free implementations. So I find it hard to believe that nobody, nowhere can release an open-source NTRUEncrypt implementation without being attacked by their lawyers. – ApplesOranges Jun 13 '10 at 05:56
  • Nothing stops lawyers from attacking. They don't always win, but they'll always cheerfully attack on even the flimsiest of pretexts. – JUST MY correct OPINION Jun 13 '10 at 08:22
  • They now say it's okay if it's GPL. – Lodewijk Jul 26 '14 at 18:13
2

NTRU sources are also available from the FlexiProvider SVN repository:

svn co --username guest --password guest https://svn.cdc.informatik.tu-darmstadt.de/svn/repos/flexiprovider
zondo
  • 19,901
  • 8
  • 44
  • 83
ApplesOranges
  • 143
  • 1
  • 7
2

Java sources for NTRUEncrypt and NTRUSign can be found here:

http://sourceforge.net/projects/ntru/

ApplesOranges
  • 143
  • 1
  • 7
2

A command line interface for encryption and decryption using the NTRU cryptographic algorithm.

https://code.google.com/p/ntrutil/