beecrypt-3.0.0 merge: copyright messages, new primitive types merged.

CVS patchset: 6775
CVS date: 2003/04/25 18:02:45
This commit is contained in:
jbj 2003-04-25 18:02:45 +00:00
parent 79d776ceb6
commit b52edfb1ed
68 changed files with 214 additions and 178 deletions

View File

@ -1,40 +1,25 @@
Copyright 1994, 1995, 1996, 1999, 2000, 2001 Free Software Foundation,
Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
@ -49,7 +34,13 @@ The simplest way to compile this package is:
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
If you're building GNU make on a system which does not already have
a `make', you can use the build.sh shell script to compile. Run
`sh ./build.sh'. This should compile the program in the current
directory. Then you will have a Make program that you can use for
`make install', or whatever else.
3. Optionally, type `./make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
@ -68,15 +59,14 @@ Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
You can give `configure' initial values for variables by setting
them in the environment. You can do that on the command line like this:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
*Note Defining Variables::, for more details.
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
@ -89,11 +79,11 @@ directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
@ -136,35 +126,22 @@ you can use the `configure' options `--x-includes=DIR' and
Specifying the System Type
==========================
There may be some features `configure' cannot figure out
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it cannot guess the host type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are _building_ compiler tools for cross-compiling, you should
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the host
platform (i.e., that on which the generated programs will eventually be
run) with `--host=TYPE'. In this case, you should also specify the
build platform with `--build=TYPE', because, in this case, it may not
be possible to guess the build platform (it sometimes involves
compiling and running simple test programs, and this can't be done if
the compiler is a cross compiler).
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
@ -177,43 +154,19 @@ default values for variables like `CC', `cache_file', and `prefix'.
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
Operation Controls
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
will cause the specified gcc to be used as the C compiler (unless it is
overridden in the site shell script).
`configure' Invocation
======================
`configure' recognizes the following options to control how it
operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
@ -226,6 +179,9 @@ operates.
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

View File

@ -1,9 +1,9 @@
#
# Makefile.am contains the top-level automake definitions
#
# Copyright (c) 2001, 2002 Virtual Unlimited B.V.
# Copyright (c) 2001, 2002, 2003 Virtual Unlimited B.V.
#
# Author: Bob Deblier <bob@virtualunlimited.com>
# Author: Bob Deblier <bob.deblier@pandora.be>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public

View File

@ -4,7 +4,7 @@
# To be used with Microsoft's nmake utility;
# Will need the Visual C Processor Pack installed.
#
# Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
# Copyright (c) 2000, 2001, 2002, 2003 Virtual Unlimited B.V.
#
# Author: Bob Deblier <bob@virtualunlimited.com>
#
@ -39,8 +39,9 @@ LIBPATH="C:\Program Files\Microsoft Visual Studio\VC98\Lib"
JAVAPATH="C:\j2sdk1.4.0\include"
# To enable SSE2 optimization, add switch /DOPTIMIZE_SSE2 to ASFLAGS
ASFLAGS=/nologo /c /coff /Gd
CFLAGS=/nologo /TC /MT /GD /GM /Ox /G5 /I. # /ZI
CFLAGS=/nologo /TC /MT /GM /Ox /G6 /I.
LDFLAGS=/nologo /machine:IX86 /libpath:$(LIBPATH) $(LIBS) # /DEBUG
RCFLAGS=/r /L 0x409 /FObeecrypt.res
JAVAFLAGS=/DJAVAGLUE=1 /I$(JAVAPATH) /I$(JAVAPATH)\win32

View File

@ -1,14 +1,29 @@
2.2.0:
3.0.0pre:
- Modified the API so that all keys can be passed as arrays of bytes.
- Modified the API so that all key sizes are given in bits.
- Modified the multi-precision integer library to work better on 64-bit
machines.
- Modified the assembly source generation mechanism, employing the m4
macro processor.
- Added multi-precision integer vectorized assembler routines for
Itanium.
- Added multi-precision integer assembler routines for PowerPC 64-bit.
- Added multi-precision integer assembler routines for Alpha.
- Added new benchmarking programs.
2.3.0pre:
- Modified the header files so that the library now uses self-contained autoconf-generated configuration files; a program employing BeeCrypt can now use the symbols already tested and defined instead of having to regenerate them (thus also eliminating the risk of inconsistencies).
- Added the AES algorithm, with assembler routines for i586 and powerpc.
- Added the AES algorithm, with assembler routines for i586 and powerpc.
- Added the DSA signature algorithm.
- Added powerpc assembler routines for blowfish.
- Added PowerPC assembler routines for blowfish.
- Added Pentium4 SSE2 assembler multiplication routines.
- Fixed the RSA CRT algorithm.
- Fixed the gas/i386 mp32even and mp32odd routines.
- Fixed a bug in modular inverse computation; thanks to Jeff Johnson of RedHat for pointing this out.
- Fixed a bug in testing the result of a gcd operation in the mp32prndconone routine.
- Fixed an ugly bug in base64 decoding.
- Fixed compatibility with the latest automake & autoconf versions.
- Replaces CPU optimization mechanism in configure script.
2.1.0:
- Added support for automake, autoheader and libtool, which should make compiling the library even easier.

View File

@ -6,7 +6,7 @@
*/
/*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -6,7 +6,7 @@
*/
/*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000-2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -1,3 +1,22 @@
/*
* Copyright (c) 2001, 2002 Virtual Unlimited B.V.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _BEECRYPT_API_H
#define _BEECRYPT_API_H

View File

@ -3,7 +3,7 @@
*
* BeeCrypt library hooks & stubs, header
*
* Copyright (c) 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 1999, 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -1,8 +1,8 @@
#include <winver.h>
1 VERSIONINFO
FILEVERSION 2,1,0,0
PRODUCTVERSION 2,1,0,0
FILEVERSION 2,2,0,0
PRODUCTVERSION 2,2,0,0
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEFLAGS 0x0L
FILEOS VOS__WINDOWS32
@ -15,13 +15,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "Virtual Unlimited B.V.\0"
VALUE "FileDescription", "BeeCrypt Cryptography Library\0"
VALUE "FileVersion", "2.1.0\0"
VALUE "FileVersion", "2.2.0\0"
VALUE "InternalName", "beecrypt\0"
VALUE "LegalCopyright", "Copyright (c) 1997-2001 Virtual Unlimited B.V.\0"
VALUE "LegalCopyright", "Copyright (c) 1997-2003 Virtual Unlimited B.V.\0"
VALUE "LegalTradeMarks", "BeeCrypt is a trademark of Virtual Unlimited B.V.\0"
VALUE "OriginalFileName", "BEECRYPT.DLL\0"
VALUE "ProductName", "BeeCrypt\0"
VALUE "ProductVersion", "2.1.0\0"
VALUE "ProductVersion", "2.2.0\0"
END
END
BLOCK "VarFileInfo"

View File

@ -3,7 +3,7 @@
*
* Win32 config file
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -12,7 +12,7 @@
*/
/*
* Copyright (c) 1999, 2000 Virtual Unlimited B.V.
* Copyright (c) 1999, 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1999, 2000 Virtual Unlimited B.V.
* Copyright (c) 1999, 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002, 2003 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -28,7 +28,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited, B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited, B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited, B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited, B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002, 2003 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 1999, 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -20,7 +20,7 @@
*/
/*
* Copyright (c) 2001 Virtual Unlimited B.V.
* Copyright (c) 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2001 Virtual Unlimited B.V.
* Copyright (c) 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -35,7 +35,7 @@
*/
/*
* Copyright (c) 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 1999, 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 1998, 1999, 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1998, 1999, 2000 Virtual Unlimited B.V.
* Copyright (c) 1998, 1999, 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 1998, 1999, 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -1,6 +1,6 @@
#! /bin/sh
rm -f ltconfig ltmain.sh
libtoolize --force --copy
aclocal
autoheader
automake -a
automake -a Makefile docs/Makefile gas/Makefile masm/Makefile mwerks/Makefile tests/Makefile
autoconf

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -1,11 +1,11 @@
/** \ingroup MP_m
* \file mp.c
*
* Multiprecision 2's complement integer routines for 32 bit cpu, code.
* Multiprecision integer routines.
*/
/*
* Copyright (c) 1997, 1998, 1999, 2000 Virtual Unlimited B.V.
* Copyright (c) 2002, 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1997, 1998, 1999, 2000 Virtual Unlimited B.V.
* Copyright (c) 2002, 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*
@ -25,8 +25,8 @@
*
*/
#ifndef _MP32_H
#define _MP32_H
#ifndef _MP_H
#define _MP_H
#include "beecrypt.h"
@ -37,6 +37,50 @@
#include "mpopt.h"
#include <stdint.h> /* XXX scaffolding. */
#define MP_WBITS 32 /* XXX scaffolding. */
#define HAVE_UINT64_T 1 /* XXX scaffolding. */
#define MP_HWBITS (MP_WBITS >> 1)
#define MP_WBYTES (MP_WBITS >> 3)
#define MP_WNIBBLES (MP_WBITS >> 2)
#if (MP_WBITS == 64)
# define MP_WORDS_TO_BITS(x) ((x) << 6)
# define MP_WORDS_TO_NIBBLES(x) ((x) << 4)
# define MP_WORDS_TO_BYTES(x) ((x) << 3)
# define MP_BITS_TO_WORDS(x) ((x) >> 6)
# define MP_NIBBLES_TO_WORDS(x) ((x) >> 4)
# define MP_BYTES_TO_WORDS(x) ((x) >> 3)
#elif (MP_WBITS == 32)
# define MP_WORDS_TO_BITS(x) ((x) << 5)
# define MP_WORDS_TO_NIBBLES(x) ((x) << 3)
# define MP_WORDS_TO_BYTES(x) ((x) << 2)
# define MP_BITS_TO_WORDS(x) ((x) >> 5)
# define MP_NIBBLES_TO_WORDS(x) ((x) >> 3)
# define MP_BYTES_TO_WORDS(x) ((x) >> 2)
#else
# error
#endif
#if (MP_WBITS == 64)
typedef uint64_t mpw;
typedef uint32_t mphw;
#elif (MP_WBITS == 32)
# if HAVE_UINT64_T
# define HAVE_MPDW 1
typedef uint64_t mpdw;
# endif
typedef uint32_t mpw;
typedef uint16_t mphw;
#else
# error
#endif
#define MP_MSBMASK (((mpw) 0x1) << (MP_WBITS-1))
#define MP_LSBMASK ((mpw) 0x1)
#define MP_ALLMASK ~((mpw) 0x0)
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1997, 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*
@ -25,8 +25,8 @@
*
*/
#ifndef _MP32BARRETT_H
#define _MP32BARRETT_H
#ifndef _MPBARRETT_H
#define _MPBARRETT_H
#include "beecrypt.h"
#include "mpnumber.h"

View File

@ -7,7 +7,7 @@
/*
*
* Copyright (c) 1997, 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1997, 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*
@ -25,8 +25,8 @@
*
*/
#ifndef _MP32NUMBER_H
#define _MP32NUMBER_H
#ifndef _MPNUMBER_H
#define _MPNUMBER_H
#include "types.h"

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*
@ -25,8 +25,8 @@
*
*/
#ifndef _MP32OPT_H
#define _MP32OPT_H
#ifndef _MPOPT_H
#define _MPOPT_H
#ifdef __cplusplus
extern "C" {

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2003 Bob Deblier
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*
@ -25,8 +25,8 @@
*
*/
#ifndef _MP32PRIME_H
#define _MP32PRIME_H
#ifndef _MPPRIME_H
#define _MPPRIME_H
#include "mpbarrett.h"

View File

@ -15,7 +15,8 @@
*
*/
/* Copyright (c) 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
/*
* Copyright (c) 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1998, 1999, 2000 Virtual Unlimited B.V.
* Copyright (c) 1998, 1999, 2000, 2003 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -7,7 +7,7 @@
/*
* <conformance statement for IEEE P1363 needed here>
*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 1997, 1998, 1999, 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 1997, 1998, 1999, 2000, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000 Virtual Unlimited B.V.
* Copyright (c) 2000, 2003 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2000, 2001 Virtual Unlimited B.V.
* Copyright (c) 2000, 2001, 2002 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*

View File

@ -1,9 +1,9 @@
#
# Makefile.am's purpose is to build the beetest_ test_ program.
#
# Copyright (c) 2001, 2002 Virtual Unlimited B.V.
# Copyright (c) 2001, 2002, 2003 Virtual Unlimited B.V.
#
# Author: Bob Deblier <bob@virtualunlimited.com>
# Author: Bob Deblier <bob.deblier@pandora.be>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public

View File

@ -4,7 +4,7 @@
* Unit test program for discrete logarithm domain parameters (over a prime field),
* as specified by IEEE P.1363.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Unit test program for DSA.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Unit test program for HMAC-MD5; it tests all vectors specified by RFC 2202.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Unit test program for HMAC-SHA1; it tests all vectors specified by RFC 2202.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Unit test program for MD5; it tests all vectors specified by RFC 1321.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Unit test program for SHA-1; it tests all but one of vectors specified by FIPS PUB 180-1.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Unit test program for SHA-256; it implements the test vectors from the draft FIPS document.
*
* Copyright (c) 2002 Bob Deblier
* Copyright (c) 2002, 2003 Bob Deblier <bob.deblier@pandora.be>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public

View File

@ -3,7 +3,7 @@
*
* Java compatible 64-bit timestamp, code
*
* Copyright (c) 1999, 2000, 2002 Virtual Unlimited B.V.
* Copyright (c) 1999, 2000, 2002, 2003 Virtual Unlimited B.V.
*
* Author: Bob Deblier <bob@virtualunlimited.com>
*