added libtomcrypt-1.03

This commit is contained in:
Tom St Denis
2005-06-09 00:08:13 +00:00
committed by Steffen Jaeckel
parent 65c1317eee
commit 3964a6523a
285 changed files with 5920 additions and 2287 deletions
+4
View File
@@ -291,3 +291,7 @@ int chc_test(void)
}
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+4
View File
@@ -51,3 +51,7 @@ int hash_file(int hash, const char *fname, unsigned char *out, unsigned long *ou
#endif
}
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+4
View File
@@ -64,3 +64,7 @@ int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outle
#endif
}
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+4
View File
@@ -62,3 +62,7 @@ LBL_ERR:
return err;
}
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+4
View File
@@ -80,3 +80,7 @@ LBL_ERR:
va_end(args);
return err;
}
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -5
View File
@@ -24,11 +24,9 @@ const struct ltc_hash_descriptor md2_desc =
16,
16,
/* DER encoding */
{ 0x30, 0x20, 0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86,
0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02, 0x05, 0x00,
0x04, 0x10 },
18,
/* OID */
{ 1, 2, 840, 113549, 2, 2, },
6,
&md2_init,
&md2_process,
@@ -246,3 +244,7 @@ int md2_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -3
View File
@@ -24,9 +24,9 @@ const struct ltc_hash_descriptor md4_desc =
16,
64,
/* DER encoding (not yet supported) */
{ 0x00 },
0,
/* OID */
{ 1, 2, 840, 113549, 2, 4, },
6,
&md4_init,
&md4_process,
@@ -300,3 +300,7 @@ int md4_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -5
View File
@@ -25,11 +25,9 @@ const struct ltc_hash_descriptor md5_desc =
16,
64,
/* DER identifier */
{ 0x30, 0x20, 0x30, 0x0C, 0x06, 0x08, 0x2A, 0x86,
0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05, 0x05, 0x00,
0x04, 0x10 },
18,
/* OID */
{ 1, 2, 840, 113549, 2, 5, },
6,
&md5_init,
&md5_process,
@@ -363,3 +361,7 @@ int md5_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -3
View File
@@ -30,9 +30,9 @@ const struct ltc_hash_descriptor rmd128_desc =
16,
64,
/* DER identifier (not supported) */
{ 0x00 },
0,
/* OID */
{ 1, 0, 10118, 3, 0, 50 },
6,
&rmd128_init,
&rmd128_process,
@@ -403,3 +403,7 @@ int rmd128_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -4
View File
@@ -30,10 +30,9 @@ const struct ltc_hash_descriptor rmd160_desc =
20,
64,
/* DER identifier */
{ 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x24,
0x03, 0x02, 0x01, 0x05, 0x00, 0x04, 0x14 },
15,
/* OID */
{ 1, 3, 36, 3, 2, 1, },
6,
&rmd160_init,
&rmd160_process,
@@ -463,3 +462,7 @@ int rmd160_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -4
View File
@@ -25,10 +25,9 @@ const struct ltc_hash_descriptor sha1_desc =
20,
64,
/* DER identifier */
{ 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x0E,
0x03, 0x02, 0x1A, 0x05, 0x00, 0x04, 0x14 },
15,
/* OID */
{ 1, 3, 14, 3, 2, 26, },
6,
&sha1_init,
&sha1_process,
@@ -282,3 +281,7 @@ int sha1_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -3
View File
@@ -20,9 +20,9 @@ const struct ltc_hash_descriptor sha224_desc =
28,
64,
/* DER identifier (not supported) */
{ 0x00 },
0,
/* OID */
{ 2, 16, 840, 1, 101, 3, 4, 2, 4, },
9,
&sha224_init,
&sha256_process,
@@ -118,3 +118,7 @@ int sha224_test(void)
#endif
}
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -5
View File
@@ -24,11 +24,9 @@ const struct ltc_hash_descriptor sha256_desc =
32,
64,
/* DER identifier */
{ 0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86,
0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05,
0x00, 0x04, 0x20 },
19,
/* OID */
{ 2, 16, 840, 1, 101, 3, 4, 2, 1, },
9,
&sha256_init,
&sha256_process,
@@ -335,3 +333,7 @@ int sha256_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -5
View File
@@ -20,11 +20,9 @@ const struct ltc_hash_descriptor sha384_desc =
48,
128,
/* DER identifier */
{ 0x30, 0x41, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86,
0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02, 0x05,
0x00, 0x04, 0x30 },
19,
/* OID */
{ 2, 16, 840, 1, 101, 3, 4, 2, 2, },
9,
&sha384_init,
&sha512_process,
@@ -130,3 +128,7 @@ int sha384_test(void)
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -5
View File
@@ -24,11 +24,9 @@ const struct ltc_hash_descriptor sha512_desc =
64,
128,
/* DER identifier */
{ 0x30, 0x51, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86,
0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03, 0x05,
0x00, 0x04, 0x40 },
19,
/* OID */
{ 2, 16, 840, 1, 101, 3, 4, 2, 3, },
9,
&sha512_init,
&sha512_process,
@@ -314,3 +312,7 @@ int sha512_test(void)
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -5
View File
@@ -25,11 +25,9 @@ const struct ltc_hash_descriptor tiger_desc =
24,
64,
/* DER identifier */
{ 0x30, 0x29, 0x30, 0x0D, 0x06, 0x09, 0x2B, 0x06,
0x01, 0x04, 0x01, 0xDA, 0x47, 0x0C, 0x02, 0x05,
0x00, 0x04, 0x18 },
19,
/* OID */
{ 1, 3, 6, 1, 4, 1, 11591, 12, 2, },
9,
&tiger_init,
&tiger_process,
@@ -809,3 +807,7 @@ Hash of "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-ABCDEFG
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+7 -3
View File
@@ -25,9 +25,9 @@ const struct ltc_hash_descriptor whirlpool_desc =
64,
64,
/* DER encoding (not yet supported) */
{ 0x00 },
0,
/* OID */
{ 1, 0, 10118, 3, 0, 55 },
6,
&whirlpool_init,
&whirlpool_process,
@@ -307,3 +307,7 @@ int whirlpool_test(void)
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
+4
View File
@@ -577,3 +577,7 @@ CONST64(0xca2dbf07ad5a8333),
CONST64(0x6302aa71c81949d9),
};
/* $Source$ */
/* $Revision$ */
/* $Date$ */