freeswitch/third_party/bnlib
Philip Zimmermann c7e476402a Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH
Thanks to Travis Cross for much of the language here.

Signed-off-by: Philip Zimmermann <prz@mit.edu>
Signed-off-by: Travis Cross <tc@traviscross.com>
2012-03-31 22:56:22 +00:00
..
bignum-ARM Add libzrtp beta 2012-03-31 18:37:58 +00:00
test Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
CHANGES Add libzrtp beta 2012-03-31 18:37:58 +00:00
Makefile Add libzrtp beta 2012-03-31 18:37:58 +00:00
Makefile.in Add libzrtp beta 2012-03-31 18:37:58 +00:00
README.bn Add libzrtp beta 2012-03-31 18:37:58 +00:00
README.bntest Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn.doc Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn00.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn16.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn16.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn32.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn32.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn64.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn64.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn8086.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bn68000.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bnconfig.hin Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bninit16.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bninit32.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bninit64.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bnintern.doc Add libzrtp beta 2012-03-31 18:37:58 +00:00
bnprint.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bnprint.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bnsize00.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bntest00.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bntest16.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bntest32.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
bntest64.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
cfg Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
cfg.debug Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
configure.in Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
cputime.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
germain.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
germain.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
germtest.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
jacobi.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
jacobi.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
kludge.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn00.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn16.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn16.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn32.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn32.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn64.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn64.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn960jx.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn960jx.s Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn8086.asm Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn8086.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn68000.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn68000.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn68020.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn68020.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn68360.s Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn80386.asm Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn80386.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbn80386.s Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbnalpha.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbnalpha.s Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbnmem.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbnmem.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbnppc.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
lbnppc.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
legal.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
legal.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
ppcasm.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
prime.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
prime.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
sieve.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
sieve.h Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00
sizetest.c Relicense bnlib under GPLv2/GPLv3 with exception for FreeSWITCH 2012-03-31 22:56:22 +00:00

README.bntest

Test driver for low-level BigNum library correctness.

In addition to the generic "bntest" program, which picks a size
at compile time, there are specific test drivers, bntest16,
bntest32 and bntest64 that you can compile specifically, e.g.
to test multiple word sizes.

bntest is different from other programs in that it invokes the
low-level BigNum functions directly.  It need only be linked with
lbnmem.o, lbn32.o and legal.o.  This is not normally desirable, but
it lets this test driver isolate errors better in the bottom-level
primitives.

It's served very well in tracking down errors.  If you write some new
assembly primitives and it doesn't find a problem with them, you
can have a good deal of confidence that they're correct.

This program also does timing tests on basic modular exponentiation.
It is invoked as bntest [modsize [expsize [expsize2]]].
If modsize is not specified, it only runs consistency checks.
If expsize is not specified, it defaults to modsize.
If expsize2 is not specified, it defaults to expsize.
Invalid arguments produce a usage message.

Example invocation lines:
bntest
bntest 512
bntest 1024 160