Richard Levitte
9e9f48f0b1
Don't use global variables. Instead, use a function that returns the
...
proper value.
There are a few more spots where FIPS makes use of global variables.
This is problematic on some non-Unix platforms. I will deal with them
later.
2004-04-16 09:52:50 +00:00
Richard Levitte
0cd83fa586
Wrap with a check for OPENSSL_FIPS. We need that to have mkdef.pl
...
work properly.
Add C++ protection.
2004-04-16 09:50:49 +00:00
Richard Levitte
1d8f39c144
Add the first half of the C++ protection :-).
2004-04-16 09:49:41 +00:00
Richard Levitte
83a542996c
make update
2004-04-15 16:30:39 +00:00
Richard Levitte
93dcdddbfd
Some platforms (Win32, it seems) do not have PATH_MAX, so let's define
...
it with a generic value (1024) if it isn't already defined.
2004-04-15 16:29:44 +00:00
Richard Levitte
0ae9a77679
Make fips_gettime work on Win32 (lets hope the Win32 function we use
...
is OK with NIST. Otherwise, we have a problem).
Avoid depending on 32-bit longs.
Provided by Dr Stephen Henson <shenson@drh-consultancy.co.uk>
2004-04-15 16:28:05 +00:00
Richard Levitte
1e4ae04e79
Include string.h to get a proper declaration of memcmp()
2004-04-15 16:25:32 +00:00
Richard Levitte
54f581d3c7
Make sure this script works with shared library builds as well.
2004-04-15 16:24:44 +00:00
Ben Laurie
343e6a4950
Add corruptors so KATs can be made to fail.
2004-04-14 17:58:54 +00:00
Ben Laurie
0c0bba9776
2-key 3DES KAT.
2004-04-13 19:46:13 +00:00
Ben Laurie
e68eff1465
Fingerprint SHA-1 asm.
2004-04-11 16:53:43 +00:00
Ben Laurie
43a6d78bcc
Add SHA-1 assembler.
2004-04-11 15:59:57 +00:00
Ben Laurie
364f6fb504
Remove crib and sabotage.
2004-04-11 12:32:43 +00:00
Dr. Stephen Henson
dee67db36c
Stop warnings:
...
Signed/unsigned mismatches.
Unused functions.
C++ style coments.
2004-04-09 21:56:14 +00:00
Ben Laurie
aba2163a06
Add x86 assembler.
2004-04-09 15:48:50 +00:00
Ben Laurie
bedc89e7af
Use HMAC instead of straight SHA-1.
2004-04-09 14:55:43 +00:00
Ben Laurie
d46359842f
Don't make, $(MAKE).
2004-04-09 11:18:13 +00:00
Ben Laurie
08198b1b5c
Signature verification test. Enable all tests.
2004-04-04 14:16:29 +00:00
Ben Laurie
16d5c926de
SigGen test.
2004-04-03 20:05:33 +00:00
Ben Laurie
f27846cc2c
Key pair test.
2004-04-03 17:24:40 +00:00
Ben Laurie
dcd44b5121
New style PQGGen test.
2004-04-03 17:01:51 +00:00
Richard Levitte
8797be2dce
Recent changes from 0.9.7-stable
...
Since we have changed from using Makefile instead of Makefile.ssl, we
need to complete the work by changing all references.
make update
2004-03-30 16:58:44 +00:00
Ben Laurie
839032c34d
Improve test output.
2004-03-13 17:46:12 +00:00
Ben Laurie
766519fc12
Spelling the test right helps.
2004-03-11 17:39:49 +00:00
Ben Laurie
6e07f8a4ba
Finish elimination of Makefile.ssl
2004-03-11 12:31:43 +00:00
Ben Laurie
a82d1527c4
Step 1 in blowing away Makefile.ssl
2004-03-10 09:23:51 +00:00
Ben Laurie
09773532ed
Add pairwise tests, fix makefiles.
2004-03-05 08:28:01 +00:00
Ben Laurie
0f0e53db43
Superfluous bracket.
2004-03-03 18:25:12 +00:00
Ben Laurie
5713956f61
Fix broken test vectors.
2004-02-29 19:18:15 +00:00
Ben Laurie
a5ad942b70
Improve selftests, check for stuck PRNG(!).
2004-02-17 11:51:54 +00:00
Richard Levitte
0ae3ca9ec4
Recent changes from 0.9.7-stable.
...
make update
2004-02-13 21:57:51 +00:00
Richard Levitte
33dd54d4b0
Files to ignore
2004-02-13 21:56:23 +00:00
Ben Laurie
0f7ff5b809
We have to save text0 each time round the outer loop.
2004-02-12 19:32:57 +00:00
Ben Laurie
e6738d4be8
Improve test suite.
2004-02-02 15:25:30 +00:00
Ben Laurie
4c6d0b7069
Wrong variable!
2004-01-31 17:18:02 +00:00
Ben Laurie
135891a9d5
Force odd parity.
2004-01-31 16:39:59 +00:00
Ben Laurie
bcb0a64421
Eliminate pointless variable.
2004-01-31 16:30:13 +00:00
Ben Laurie
7575c7e3bb
Test suite plus failure if selftest fails.
2004-01-30 19:22:22 +00:00
Andy Polyakov
326e02b260
Reserve for unaligned buffer. The problem was "pointed out" be HPUX64
...
gcc, which failed to compile it with "not aligned" at higher optimization
levels.
2004-01-24 15:04:38 +00:00
Ben Laurie
6062460131
Improve debugging.
2004-01-06 18:02:32 +00:00
Ben Laurie
9c2fcb789e
Make OFB MCT work.
2003-12-18 17:21:18 +00:00
Ben Laurie
01d49d19e0
Even ECB needs new keys.
2003-12-18 15:39:16 +00:00
Ben Laurie
380537d9ff
All CFB modes have to do magic on decrypt.
2003-12-18 15:38:58 +00:00
Ben Laurie
3229fd6afe
Who invented these tests? Reconstruct internal state in order to follow
...
bizarre CFB test algorithm.
2003-12-18 14:26:50 +00:00
Ben Laurie
cba1c06e5f
CFB-64 needs to use the saved IV too.
2003-12-18 14:10:53 +00:00
Ben Laurie
bebc48c72f
Decrypt correctly.
2003-12-18 13:57:24 +00:00
Ben Laurie
50bd5b852a
Derive new keys correctly.
2003-12-18 13:33:12 +00:00
Ben Laurie
91182b1b28
Output keys correctly.
2003-12-18 12:44:27 +00:00
Ben Laurie
21a5b6c521
Count was missing in MCT output.
2003-12-18 10:08:01 +00:00
Ben Laurie
ffe8370a18
Targets build too fast.
2003-10-28 14:56:14 +00:00