home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / crypl200.zip / BNLIB / README.BNT < prev    next >
Text File  |  1996-01-28  |  1KB  |  29 lines

  1. Test driver for low-level BigNum library correctness.
  2.  
  3. In addition to the generic "bntest" program, which picks a size
  4. at compile time, there are specific test drivers, bntest16,
  5. bntest32 and bntest64 that you can compile specifically, e.g.
  6. to test multiple word sizes.
  7.  
  8. bntest is different from other programs in that it invokes the
  9. low-level BigNum functions directly.  It need only be linked with
  10. lbnmem.o, lbn32.o and legal.o.  This is not normally desirable, but
  11. it lets this test driver isolate errors better in the bottom-level
  12. primitives.
  13.  
  14. It's served very well in tracking down errors.  If you write some new
  15. assembly primitives and it doesn't find a problem with them, you
  16. can have a good deal of confidence that they're correct.
  17.  
  18. This program also does timing tests on basic modular exponentiation.
  19. It is invoked as bntest [modsize [expsize [expsize2]]].
  20. If modsize is not specified, it only runs consistency checks.
  21. If expsize is not specified, it defaults to modsize.
  22. If expsize2 is not specified, it defaults to expsize.
  23. Invalid arguments produce a usage message.
  24.  
  25. Example invocation lines:
  26. bntest
  27. bntest 512
  28. bntest 1024 160
  29.