Skip to content

Commit 3964a65

Browse files
Tom St Denissjaeckel
authored andcommitted
added libtomcrypt-1.03
1 parent 65c1317 commit 3964a65

285 files changed

Lines changed: 5878 additions & 2245 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PROJECT_NAME = LibTomCrypt
2323
# This could be handy for archiving the generated documentation or
2424
# if some version control system is used.
2525

26-
PROJECT_NUMBER = 1.02
26+
PROJECT_NUMBER = 1.03
2727

2828
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
2929
# base path where the generated documentation will be put.

TODO

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
Things ideal for 1.04
2+
3+
- ASN.1 SET and UTCtime
4+
- Start working towards making the bignum code plugable
5+
- Add OID for ciphers and PRNGs to their descriptors
6+
- Document the ASN.1 a bit more verbosely ;-)
7+
- Some ASN.1 demo programs [for now read the source code!]
8+
- Look into other ECC point muls and consider a "precomp" interface
19

build.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
echo "$1 ($2, $3)..."
3+
make clean 1>/dev/null 2>/dev/null
4+
echo -n "building..."
5+
CFLAGS="$2 $CFLAGS" make -f $3 test tv_gen 1>gcc_1.txt 2>gcc_2.txt || (echo "build $1 failed see gcc_2.txt for more information" && cat gcc_2.txt && exit 1)
6+
echo -n "testing..."
7+
if [ -a test ] && [ -f test ] && [ -x test ]; then
8+
((./test >test_std.txt 2>test_err.txt && ./tv_gen > tv.txt) && echo "$1 test passed." && echo "y" > testok.txt) || (echo "$1 test failed" && cat test_err.txt && exit 1)
9+
if find *_tv.txt -type f 1>/dev/null 2>/dev/null ; then
10+
for f in *_tv.txt; do if (diff $f notes/$f) then true; else (echo "tv_gen $f failed" && rm -f testok.txt && exit 1); fi; done
11+
fi
12+
fi
13+
if [ -a testok.txt ] && [ -f testok.txt ]; then
14+
exit 0
15+
fi
16+
exit 1
17+
18+
# $Source: /cvs/libtom/libtomcrypt/build.sh,v $
19+
# $Revision: 1.4 $
20+
# $Date: 2005/05/05 14:49:27 $

changes

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,58 @@
1+
June 9th, 2005
2+
v1.03
3+
-- Users may want to note that on a P4/GCC3.4 platform "-fno-regmove" greatly accelerates the ciphers/hashes.
4+
--------------------------------------------------------------------------------------------------------------
5+
-- Made it install the testing library in the icc/static makefiles
6+
-- Found bug in ccm_memory.c which would fail to compile when LTC_CLEAN_STACK was enabled
7+
-- Simon Johnson proposed I do a fully automated test suite. Hence "testme.sh" was born
8+
-- Added LTC_NO_TEST which forces test vectors off (regardless of what tomcrypt_custom.h has)
9+
-- Added LTC_NO_TABLES which disables large tables (where possible, regardless of what tomcrypt_custom.h has)
10+
-- New test script found a bug in twofish.c when TABLES was disabled. Yeah testing!
11+
-- Added a LTC_FAST specific test to the testing software.
12+
-- Updated test driver to actually halt on errors and just print them out (useful for say... automated testing...)
13+
-- Added bounds checking to Pelican MAC
14+
-- Added BIT and OCTET STRING to the ASN.1 side of things.
15+
-- Pekka Riikonen pointed out that my ctr_start() function should accept the counter mode.
16+
-- Cleaned up warnings in testprof
17+
-- Removed redundant mu and point mapping in ecc_verify_hash() so it should be a bit faster now
18+
-- Pekka pointed out that the AES key structure was using 32 bytes more than it ought to.
19+
-- Added quick defines to remove entire classes of algorithms. This makes it easier if you want to build with just
20+
one algorithm (say AES or SHA-256). Defines are LTC_NO_CIPHERS, LTC_NO_MODES, LTC_NO_HASHES, LTC_NO_MACS,
21+
LTC_NO_PRNGS, LTC_NO_PK, LTC_NO_PKCS
22+
-- As part of the move for ECC to X9.62 I've changed the signature algorithm to EC DSA. No API changes.
23+
-- Pekka helped me clean up the PKCS #1 v2.1 [OAEP/PSS] code
24+
-- Wrote new DER SEQUENCE coder/decoder
25+
-- RSA, DSA and ECDSA now use the DER SEQUENCE code (saves a lot of code!)
26+
-- DSA output is now a DER SEQUENCE (so not compatible with previous releases).
27+
-- Added Technote #5 which shows how to build LTC on an AMD64 to have a variety of algorithms in only ~80KB of code.
28+
-- Changed temp variable in LOAD/STORE macros to "ulong32" for 32-bit ops. Makes it safer on Big endian platforms
29+
-- Added INSTALL_GROUP and INSTALL_USER which you can specify on the build to override the default USER/GROUP the library
30+
is to be installed as
31+
-- Removed "testprof" from the default build.
32+
-- Added IA5, NULL and Object Identifier to the list of ASN.1 DER supported types
33+
-- The "no_oops" target (part of zipup) now scans for non-cvs files. This helps prevent temp/scratch files from appearing in releases ;-)
34+
-- Added DERs for missing hashes, but just the OID not the PKCS #1 v1.5 additions.
35+
-- Removed PKCS #1 v1.5 from the tree since it's taking up space and you ought to use v2.1 anyways
36+
-- Kevin Kenny pointed out a few stray // comments
37+
-- INTEGER code properly supports negatives and zero padding [Pekka!]
38+
-- Sorted asn1/der/ directory ... less of a mess now ;-)
39+
-- Added PRINTABLE STRING type
40+
-- Removed ECC-160 as it wasn't a standard curve
41+
-- Made ecc_shared_secret() ANSI X9.63 compliant
42+
-- Changed "printf" to "fprintf(stderr, " in the testbench... ;-)
43+
-- Optimized the GCM table creation. On 1KB packets [with key switching] the new GCM is 12.7x faster than before.
44+
-- Changed OID representation for hashes to be just a list of unsigned longs (so you can compare against them nicely after decoding a sequence)
45+
-- ECC code now uses Montgomery reduction ... it's even faster [ECC-256 make key down from 37.4M to 4.6M cycles on an Athlon64]
46+
-- Added SHORT_INTEGER so users can easily store DER encoded INTEGER types without using the bignum math library
47+
-- Fixed OMAC code so that with LTC_FAST it doesn't require that LTC_FAST_TYPE divides 16 [it has to divide the block size instead]
48+
-- ECC key export is now a simple [and documented] SEQUENCE, the "encrypt_key" also uses a new SEQUENCE format.
49+
-- Thanks goes to the following testers
50+
Michael Brown - Solaris 10/uSPARCII
51+
Richard Outerbridge - MacOS
52+
Martin Carpenter - Solaris 8/uSPARCII [Thanks for cleaning up the scripts]
53+
Greg Rose - ... SunOS 5.8/SPARC [... what's with the SPARCS?]
54+
Matt Johnston - MacOS X [Thanks for pointing out GCC 4 problems with -Os]
55+
156
April 19th, 2005
257
v1.02
358
-- Added LTC_TEST support to gcm_test()
@@ -1243,3 +1298,8 @@ v0.02 -- Changed RC5 to only allow 12 to 24 rounds
12431298
-- Added more to the manual.
12441299

12451300
v0.01 -- We will call this the first version.
1301+
1302+
/* $Source: /cvs/libtom/libtomcrypt/changes,v $ */
1303+
/* $Revision: 1.92 $ */
1304+
/* $Date: 2005/06/09 01:06:59 $ */
1305+

0 commit comments

Comments
 (0)