freeswitch/third_party/bnlib
Viktor Krikun 5a61e580b9 Add libzrtp beta 2012-03-31 18:37:58 +00:00
..
bignum-ARM Add libzrtp beta 2012-03-31 18:37:58 +00:00
test Add libzrtp beta 2012-03-31 18:37:58 +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 Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn.doc Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn00.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn16.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn16.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn32.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn32.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn64.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn64.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn8086.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bn68000.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bnconfig.hin Add libzrtp beta 2012-03-31 18:37:58 +00:00
bninit16.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bninit32.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bninit64.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bnintern.doc Add libzrtp beta 2012-03-31 18:37:58 +00:00
bnprint.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bnprint.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
bnsize00.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
bntest00.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bntest16.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bntest32.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
bntest64.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
cfg Add libzrtp beta 2012-03-31 18:37:58 +00:00
cfg.debug Add libzrtp beta 2012-03-31 18:37:58 +00:00
configure.in Add libzrtp beta 2012-03-31 18:37:58 +00:00
cputime.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
germain.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
germain.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
germtest.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
jacobi.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
jacobi.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
kludge.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn00.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn16.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn16.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn32.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn32.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn64.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn64.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn960jx.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn960jx.s Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn8086.asm Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn8086.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn68000.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn68000.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn68020.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn68020.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn68360.s Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn80386.asm Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn80386.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbn80386.s Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbnalpha.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbnalpha.s Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbnmem.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbnmem.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbnppc.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
lbnppc.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
legal.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
legal.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
ppcasm.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
prime.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
prime.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
sieve.c Add libzrtp beta 2012-03-31 18:37:58 +00:00
sieve.h Add libzrtp beta 2012-03-31 18:37:58 +00:00
sizetest.c Add libzrtp beta 2012-03-31 18:37:58 +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