Dr. Stephen Henson
66d68327cb
Avoid memory leak.
2005-01-31 01:40:39 +00:00
Dr. Stephen Henson
7cfcca8ba3
Further FIPS algorithm blocking.
...
Fixes to cipher blocking and enabling code.
Add option -non-fips-allow to 'enc' and update testenc.
2005-01-28 14:03:54 +00:00
Richard Levitte
0cae19f5ef
The first argument to load_iv should really be a char ** instead of an
...
unsigned char **, since it points at text.
Thanks to Nils Larsch <nils.larsch@cybertrust.com> for pointing out
the inelegance of our code :-)
2005-01-27 11:42:25 +00:00
Dr. Stephen Henson
6be00c7e16
More FIPS algorithm blocking.
...
Catch attempted use of non FIPS algorithms with HMAC.
Give an assertion error for applications that ignore FIPS digest errors.
Make -non-fips-allow work with dgst and HMAC.
2005-01-27 01:49:42 +00:00
Richard Levitte
532d936be8
Check for errors from EVP_VerifyInit_ex(), or EVP_VerifyUpdate might
...
cause a segfault... This was uncovered because EVP_VerifyInit() may fail
in FIPS mode if the wrong algorithm is chosen...
2005-01-27 01:49:23 +00:00
Richard Levitte
d88edf1447
Get rid if the annoying warning
2005-01-27 01:47:27 +00:00
Dr. Stephen Henson
f60fc19a69
make update
2005-01-26 20:05:46 +00:00
Dr. Stephen Henson
d0edffc7da
FIPS algorithm blocking.
...
Non FIPS algorithms are not normally allowed in FIPS mode.
Any attempt to use them via high level functions will return an error.
The low level non-FIPS algorithm functions cannot return errors so they
produce assertion failures. HMAC also has to give an assertion error because
it (erroneously) can't return an error either.
There are exceptions (such as MD5 in TLS and non cryptographic use of
algorithms) and applications can override the blocking and use non FIPS
algorithms anyway.
For low level functions the override is perfomed by prefixing the algorithm
initalization function with "private_" for example private_MD5_Init().
For high level functions an override is performed by setting a flag in
the context.
2005-01-26 20:00:40 +00:00
Andy Polyakov
134d6a44ec
Don't zap AES CBC IV, when decrypting truncated content in place.
2005-01-18 00:24:55 +00:00
Dr. Stephen Henson
420eb6a306
PKCS7_verify() performance optimization. When the content is large and a
...
memory BIO (for example from SMIME_read_PKCS7 and detached data) avoid lots
of slow memory copies from the memory BIO by saving the content in a
temporary read only memory BIO.
2005-01-14 17:53:16 +00:00
Andy Polyakov
ea28f93c2d
Rely on e_os.h to appropriately define str[n]casecmp in non-POSIX
...
environments.
2005-01-14 16:22:02 +00:00
Andy Polyakov
adeb20b6b7
O_NOFOLLOW is not appropriate when opening /dev/* entries on Solaris.
...
PR: 998
2005-01-14 16:19:47 +00:00
Richard Levitte
086b64d0d3
make update
2005-01-14 00:16:31 +00:00
Richard Levitte
47c88d7413
Correct a faulty address assignment, and add a length check (not
...
really needed now, but may be needed in the future, who knows?).
2005-01-12 09:51:31 +00:00
Andy Polyakov
5cdf5e3308
Allow for ./config no-sha0.
...
PR: 993
2005-01-09 17:58:18 +00:00
Andy Polyakov
b58560b915
DJGPP update.
...
PR: 989
Submitted by: Doug Kaufman
2005-01-04 10:21:55 +00:00
Andy Polyakov
83f69163fd
Borrow #include <string[s].h> from e_os.h.
2004-12-31 00:01:23 +00:00
Andy Polyakov
5ca3a0aa86
Make whiny compilers stop complaining about missing prototype.
2004-12-30 23:39:06 +00:00
Andy Polyakov
702be727c0
AES CBC and CFB performance tune-up from HEAD.
2004-12-30 22:57:19 +00:00
Andy Polyakov
f709ffe832
Minor cygwin update.
...
PR: 949
2004-12-27 21:26:10 +00:00
Andy Polyakov
fb39cd850c
Improved PowerPC platform support.
2004-12-20 13:20:22 +00:00
Andy Polyakov
15bbc1574f
Backport of PPC BN module from HEAD.
2004-12-20 13:15:51 +00:00
Richard Levitte
37ece6156a
make update
2004-12-13 22:48:01 +00:00
Dr. Stephen Henson
965574039b
Remove duplicate lines.
2004-12-12 13:18:23 +00:00
Andy Polyakov
a661c1728f
Respect no-asm with fips option and disable FIPS DES assembler in
...
shared context [because it's not PIC].
2004-12-10 11:37:25 +00:00
Andy Polyakov
13e387c3fe
olaris x86 perlasm update [from HEAD].
2004-12-10 11:27:09 +00:00
Andy Polyakov
3dd16fb7fd
Eliminate false dependency on 386 config option is FIPS context.
...
At the same time limit assembler support to ELF platforms [that's
what is there, ELF modules].
2004-12-09 22:43:29 +00:00
Andy Polyakov
ab09133881
Engage SHA1 IA64 assembler on IA64 platforms [from HEAD].
2004-12-09 21:05:14 +00:00
Andy Polyakov
bd5a2195de
Postpone linking of shared libcrypto in FIPS build.
2004-12-09 18:03:23 +00:00
Dr. Stephen Henson
a4c9668f3c
Automatically mark the CRL cached encoding as invalid when some operations
...
are performed.
2004-12-09 13:34:41 +00:00
cvs2svn
f1ca15dd69
This commit was manufactured by cvs2svn to create branch
...
'OpenSSL_0_9_7-stable'.
2004-12-09 11:57:39 +00:00
Andy Polyakov
b4e0ce5165
SHA1 assembler for IA-64.
2004-12-09 11:57:38 +00:00
Andy Polyakov
17f0e916db
Extend RC4 test.
2004-12-07 11:55:56 +00:00
Dr. Stephen Henson
41c70d47d7
Remaing bits of PR:620 relevant to 0.9.8.
2004-12-05 01:50:56 +00:00
Dr. Stephen Henson
ec46cd8bb8
Remaining parts of PR:620
2004-12-05 01:46:03 +00:00
Dr. Stephen Henson
da8534693c
Add lots of checks for memory allocation failure, error codes to indicate
...
failure and freeing up memory if a failure occurs.
PR:620
2004-12-05 01:04:44 +00:00
Dr. Stephen Henson
a0e7c8eede
Add lots of checks for memory allocation failure, error codes to indicate
...
failure and freeing up memory if a failure occurs.
PR:620
2004-12-05 01:03:15 +00:00
Dr. Stephen Henson
c98175bf88
In by_file.c check last error for no start line, not first error.
2004-12-04 21:26:11 +00:00
Dr. Stephen Henson
3e66ee9f01
In by_file.c check last error for no start line, not first error.
2004-12-04 21:25:51 +00:00
Dr. Stephen Henson
8db8893cd7
V1 certificates that aren't self signed can't be accepted as CAs.
2004-12-03 00:10:59 +00:00
Dr. Stephen Henson
8f284faaec
V1 certificates that aren't self signed can't be accepted as CAs.
2004-12-03 00:10:34 +00:00
Andy Polyakov
3010b1730e
sha1_block_asm_data_order can't hash if message crosses 2GB boundary.
...
[back-port from HEAD branch]
2004-12-02 17:05:38 +00:00
Andy Polyakov
f670069a19
Back-port of RC4 assembler support for IA-64 from HEAD branch.
2004-12-02 10:54:36 +00:00
Andy Polyakov
575dbdc965
Downstream update from HEAD
2004-12-02 10:09:50 +00:00
Andy Polyakov
f774accdbf
Fix rc4-ia64.S to pass more exhaustive regression tests.
2004-12-02 10:07:55 +00:00
Dr. Stephen Henson
8544a80776
Add couple of OIDs. Resync NIDs for consistency with 0.9.7.
2004-12-01 18:09:53 +00:00
Dr. Stephen Henson
2e1366366e
Add two OIDs, make update
2004-12-01 17:55:07 +00:00
Andy Polyakov
fda344ece8
Complete backport of i386 RC4 assembler module from HEAD.
2004-12-01 15:45:34 +00:00
Andy Polyakov
280e3bd2c9
Downstream update from HEAD.
2004-12-01 15:30:50 +00:00
Andy Polyakov
7c69478064
I've introduced a bug to i386 RC4 assembler, which would emerge with
...
certain mix of calls to RC4 routine not covered by rc4test.c.
It's fixed now. In addition this patch inadvertently fixes minor
performance problem: in 0.9.7 context P4 was performing 12% slower
than the original implementation...
2004-12-01 15:28:18 +00:00