Questions tagged [ntl]

NTL is a high-performance, portable C++ library licensed under GPL providing data structures and algorithms for arbitrary length integers; for vectors, matrices, and polynomials over the integers and over finite fields; and for arbitrary precision floating point arithmetic.

NTL (A Library For Doing Number Theory) is a high-performance, portable C++ library licensed under GPL providing data structures and algorithms for arbitrary length integers; for vectors, matrices, and polynomials over the integers and over finite fields; and for arbitrary precision floating point arithmetic.

See https://libntl.org/ for more details.

81 questions
0
votes
1 answer

Discrete logarithm brute force: Can someone explain me the runtime differences between C++ and C++ with NTL?

This is more a runtime and/or time-complexity question than a cryptography problem, so please continue reading: in university we have to implement a brute-force discrete logarithm algorithm to find the secrets in a diffie hellman exchange and I…
luuksen
  • 1,357
  • 2
  • 12
  • 38
0
votes
1 answer

Resize of NTL vector

i would like to resize my ZZ vector during running program. Is there any way, how to make it? I found methods .setLenght() alternatively .DosetLenght(), but it seems like only initialization step, due to my pro/gram refuses change the vector with…
Martin Orem
  • 31
  • 1
  • 8
0
votes
2 answers

C++ NTL (by Victor Shoup): How to represent infinity

I would like to know how would one represent infinity if there is no built-in function for you to do so. I know that if we are using float or double, we will be able to use infinity() with #include . But if I need to use int or in the case…
BlackAdder
  • 127
  • 8
0
votes
1 answer

Install Victor Shoup's NTL library on Mac OS X

I am trying to install Victor Shoup's NTL package on a fully up-to-date Mac (latest OSX etc). I downloaded the latest package (NTL 6.0.0) from http://www.shoup.net/ntl/download.html, unpacked it and ran the configure script ./configure…
Gordon Royle
  • 256
  • 1
  • 11
0
votes
2 answers

How to configuring NTL library in Visual Studio 2010

I am trying to configure NTL library in my first Visual Studio 2010 project. I am following the instructions from: http://www.shoup.net/ntl/doc/tour-win.html I created a new Win32 project, named ntl. Then, from Project -> Add Existing Items and…
Hope A
  • 27
  • 1
  • 7
0
votes
1 answer

From a large integer ZZ (as declared in NTL) to a hexadecimal

I m currently using the NTL to handle large integers. The large integers on this library are declared as ZZ. I would like to go from a ZZ number to a hexadecimal. However, NTL does not support conversion from ZZ to hexadecimals as I checked. So my…
Hashed
  • 57
  • 1
  • 2
  • 6
1 2 3 4 5
6