You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(447) |
Nov
(163) |
Dec
(57) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(172) |
Feb
|
Mar
(123) |
Apr
(64) |
May
(1) |
Jun
(278) |
Jul
(89) |
Aug
(97) |
Sep
(62) |
Oct
(53) |
Nov
(119) |
Dec
(60) |
| 2006 |
Jan
(76) |
Feb
(1094) |
Mar
(363) |
Apr
(163) |
May
(57) |
Jun
(43) |
Jul
(39) |
Aug
(15) |
Sep
(33) |
Oct
(62) |
Nov
(8) |
Dec
|
| 2007 |
Jan
(9) |
Feb
(34) |
Mar
(2) |
Apr
(14) |
May
(8) |
Jun
(40) |
Jul
(21) |
Aug
(1) |
Sep
(20) |
Oct
(15) |
Nov
(26) |
Dec
|
| 2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
(1) |
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
|
Jul
|
Aug
(3) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: creecode <icr...@us...> - 2006-03-13 07:44:46
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/suites/fUnit/testSuperStress/data/crypt/testVectors/SHA1LongMsg/21896 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21484 Added Files: Msg Log Message: data for SHA1 test vectors --- NEW FILE: Msg --- FrontierVcsFile:2:TEXT:suites.fUnit.testSuperStress.data.crypt.testVectors.SHA1LongMsg.["21896"].Msg 77846df1574259fa18ad4cc8fd4fb7d42dff264dac04d15e8a7d6eaf5b004a2ee781980f227509115e389d04bfacb888ef24781714804646ff99ab47a6df65b3d540bb86204c0d6c1c97af3bcf5ff8c0646f95be23432334a16dfedf34385300aa8a7d5f3b0f8e90bb932b7515b09e04f4aa264ac39791b0d8c30d7eec523c9dcf2786a15905b307a4f4b9ba78e7d2dc079bd2c4dbc2b8430c61832cb6774713aadf7f546477a5583e820013e34bbed1050c4233530dbf74a51006f17aed9ce9a57a108143ad8b0bf005a9873b25876a57c31e9f13c0cfcc0b983ed620fd64a727bfe02fdeef8ea824445b1f69bd583063880d1102230fd2a7c1d5e291efc7d6977798661d85d6b84108bfe2555b57aa9225b78f0a7ea80edf53701eb30becfd5f6adf2ee8b68ac3af197dd8e747ac604c60c5241218c1081c15ba906f99fca4e6605e9027ccd34fd53f3c0908c880dafa03dfd5033a8349c7d05842aee01e539421bd93c20dd8e61d42a47e9e28fba102d4acacc32c1658464cf53c56297b93d174a340a1c2c20feee95e3e92ad443cce9cd5b03b36a1bd0351378450bc3aeb0523b89dad32b853b0fd1251cda08433c42201e953a04c0164a7c62485e185e498f4a5b5cca7e338cc4767c03649e20f4e30d960f4b141abd3154b24dce08104f3b0128de7676a48a88c0692b4ef8756d38c051c04b2a543b7656e8a3c0058d67c1fa62fe7bb760bad9797cf31db9a93bbff2c256ceba351785dd6608f8a32df9c080aa2b2eb2f08432fc17f9456444b6d51f68415a4605e7ec62caebcc636a9bb34e6ee323fbcc7d31b2cabc5a6ad08534a0d40e62507f13067177aabfc8dbb426ce11c4dff46d0c324815bab13fc51d4b21661c6b5be93f80a40ce44745e9d9776a332ed72f4ac7d12689530e75aaf5850bcf09f9eadcb3d754eb16f75d2d8241ad53bf9e1efe267ad88633b68eea947eda4f45826fe216871ea2c144911f350221f3c59945efaebbc8accb5e0e1c70a517975d996d61ddfc6bc451b3642768254283ff5d36a7c700915d984955a910744e17c0a3660480b3c6b066c858ee9247a994bb5e63bf15e5ad29091d08290a78e840fd34dc129549ba077ef7e1cd59d5a19698114f8e11c7869fbc4d8804b52f60c391c25244923aa029f8d6815c255bd51a041a7cad2142b812205f77d4a71461effcd04af2ede323a862c8da036b46ae8f8dde5d84ead3ac20b3d73a1166a44656bce338a62effbef34b533e6bb222b87793d174bdc4f6fd6c052951336a7b9868407fade6dbccdcab211a30ed807c6d62c49844a05629062492ea5fc328e6c2c5260a0d3d5af70730726254116cb047c18ea76fe4f4e6611acb7eb83938927fddec26f90242eab913bde00a7fbd6ad224506338e447cb988f3d7aed1e0ffb0a12f13ad3ee1a348cc57207e671190896fbc8604236c5251722675380da158d0c14d3da30495750dce61d3e5aae0625f0c845331e54e39f5754b79cf605ffb4f054126990bc70cc33c64e17e97efb2f9a0a55302fb729a6f396ccabcf2a052f51412b8d67affd032c165319157c6e91dd42870bf8e60db8567905247eaefc48a97c8d9a47ac62921036eab6611ed7094501491afc5a16600a7c0f8b771d1b9d5356c734933a27f59aa863744eeedad26bb719e1bc9bca1a7a003a456aed0999f97056d0ecc1e3aa35fb6bd75164c0a9abe487e4bc139f644fb613e6aca73cdb0649baf3b6ebfc2c5ca05253fb095eeba00a01b87d6a1cc9d5fe2af3cec42bbd045372118400f7f87927b57ebe44dc14c2a815c17307a8a7c758fdd143dc6ccc7e2dfabed6b95dab35f203cc0dcfeea19e3f32942f64f9aa7e56fb13ae586685ce29e350116d9390fdbfdba08bd2fd3e9d4ff6a5251a563e6568a13f50b0bf859ee79a79d6a640565ac19ba09b269e384a4ac078d68064d0371e9ec8ed7dbe284ad7ae9098fbda77b7a7c250de03382b1fc03e93c64f9c0c4dd93224d728090a5c8a8e38dac6c8519ee2fe15a7215183a840af6a66c0724f342909f7a04826886e60b7e71e9fa0909af39d8388e970de5e3cb1715a9b6e1564ae9495db467d4eeb0aca0fc6fee9a1266a2f0f15d42ca7bc24e35cf42915fb69ba50a3eabb93ba4cd92327766d09ffbbb7313cc069db5c3c899361d601d07daddccc96411ff0571e6c51d2af629828d55b32810b13137879eb604472be43f8cb9676e180dc2991da34e475d457faa90dd6a17068884b98debad8595ca6d7092d67de0a2c7896170ab349a587e5d7fccfaa0c8f6b020a19e5884a34f664003b5de16094a68dcc432a77ffd62c7486908555e2227548d58828d4544bc26e65ebd763ad05818432a2a3e3857c548cad00e96ab0fe39a51470131f8522533e6eb7248f21d13fe47fb21196692c72b6a1ca464907770aaf6d5e3eca3b4d2b4c8119cfc45d8c4436fa0dfe01195b195b1b59367144017ad0469ef6850520bd21537023a3ceab30e447f2c3a4148cbb02504a2483f5320cb016dee4a061418b554c76da9de3928884d01d0cfff935ca4506f9baf1998d32b7748a93dcee240840d28a5f133ae6bd9128e9248525eae99ba5f4443abf778f6ed62e5e7afa4cd68c8c272bb4331c3281b8f3b4d439107b6e93d67adfc595653ec236df0b14205880efd9caf17ab7a9df16a9385d914b023676fca9514a4b66bfbf30801dca4310d6641ea74b602d6621b8962991ccff109bc5f36a1fcc2e066a23a7dc239b3981e59f625b32820209c2152703014ab11906e73727cbb991c6b696095dacf5584e46e84151376eb9f768c2f85f3ca8e5adf071548cc5913b2a2d9cd18f2a6733b862d53823da74d9d16e287688a4562121f0fac7e3adf17e93479e9ceb1c7f6062d1ecb34d8c32d60a4aec2e29c8d0d82770ca0dd6d548c0b49d11d7ec039c42d01ca55f28dd37231497547bbd1ab79f21088582d0ec05c5e086acff2c604c7f829b8578604dd06582cc180bbd3a68ca9110a3e36c42c6e2b9acb69f06c31e5afce703bb6e4ecd01d7719d4a9478630f1a31bb9bf389faab9277c51415ac70899177b674bd505b8c84f06ab4fd8544c10ee4231921121f852d606f1ad37ce17ff2d60450d8132a6a0de0f6e732c17c74f19070e75f8ba403ccff0affbab4ffa2937a73bc38d7a82ee4cbc83deebd78bf64df2b93195736ac03bc2f5f56050995f5ed9b337a4e634fac1955358be9c7f4db18c988e8f535e2642052a61fbdcdce9ca7d142f6c7ca50c642346a94d6f8b9c6e5c14538f6205b60b40b50827f8ab0ea21bc6748d46bb6c5dedc5983f57972aabea964a3ca945b8bffb00b28aaeee180f3b31ceb04c5f62d57b36ee3c5d8b4091bf84393f2f077385bf7226cc058d4d3866bd047d957a35f4560273ee884f26486247e93ffd34308612732e960670f64623d2e09b29f22ee10592effae0cc24f75b4822e519b237e97f6b9090b77f5a60fbd828b310b195c5104d2a0b6de882c633eeabd98d6bd0d78bc2156122a3c3af7537a56c529db2c7009aebc7388c87de71a04ec261454378c0e185b14fc2775a19571f6ff8a0cc105ce3fcd648a17c679dc8d1489b2ad7f3a52ea82a44c5bf8a6fa05e630aa12cc7ac8f23e1a50da98840cdfd144501d571c21246720b95e367007b29f18e871b157906299058ba566ae1179ace66b28519a0f62631ac182b18534e49c18e3cdf2249afd68a688ecb35080e701e07242f14c64011102d38dfc6f082877a11a7c015a7f4f178dd734f103d1a46aa2f411b89bc5acfb698dc46986080a9c420b00816183c4401c0502c2309a3e61de6f091a10baa28cdf4eca9b72aaf7749c23ffd4f26f0 |
|
From: creecode <icr...@us...> - 2006-03-13 07:17:31
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/crypt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9845 Removed Files: hashWhirlpool Log Message: deleted replaced with whirlpool --- hashWhirlpool DELETED --- |
|
From: Andre R. <and...@us...> - 2006-03-12 21:57:36
|
Update of /cvsroot/frontierkernel/Frontier/build_XCode/Frontier.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3543/build_XCode/Frontier.xcode Modified Files: project.pbxproj Log Message: Added files for SHA1 hashing. Index: project.pbxproj =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_XCode/Frontier.xcode/project.pbxproj,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** project.pbxproj 12 Mar 2006 17:48:09 -0000 1.29 --- project.pbxproj 12 Mar 2006 21:57:32 -0000 1.30 *************** *** 285,288 **** --- 285,290 ---- 6599181C09C4952A00F6F58C, 6599181D09C4952A00F6F58C, + 65F9C22209C4CD9800DCC29E, + 65F9C22309C4CD9800DCC29E, ); isa = PBXHeadersBuildPhase; *************** *** 1833,1836 **** --- 1835,1839 ---- 6599180809C494EA00F6F58C, 6599181509C4950300F6F58C, + 65F9C22809C4CDDE00DCC29E, ); isa = PBXSourcesBuildPhase; *************** *** 3865,3868 **** --- 3868,3873 ---- 6599181A09C4952A00F6F58C, 6599181B09C4952A00F6F58C, + 65F9C22009C4CD9800DCC29E, + 65F9C22109C4CD9800DCC29E, ); isa = PBXHeadersBuildPhase; *************** *** 4123,4126 **** --- 4128,4132 ---- 6599180709C494EA00F6F58C, 6599181409C4950300F6F58C, + 65F9C22709C4CDDE00DCC29E, ); isa = PBXSourcesBuildPhase; *************** *** 5387,5390 **** --- 5393,5397 ---- 65152606072BFC6700411831, 65152607072BFC6700411831, + 65F9C22609C4CDDE00DCC29E, 65152608072BFC6700411831, 65152609072BFC6700411831, *************** *** 12210,12213 **** --- 12217,12222 ---- 651528A2072BFEEF00411831, 65152808072BFE5900411831, + 65F9C21F09C4CD9700DCC29E, + 65F9C21E09C4CD9700DCC29E, 65152806072BFE5700411831, 651527E2072BFE3B00411831, *************** *** 12371,12374 **** --- 12380,12446 ---- }; }; + 65F9C21E09C4CD9700DCC29E = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + name = sha_locl.h; + path = ../Common/headers/sha_locl.h; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 65F9C21F09C4CD9700DCC29E = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + name = sha.h; + path = ../Common/headers/sha.h; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 65F9C22009C4CD9800DCC29E = { + fileRef = 65F9C21E09C4CD9700DCC29E; + isa = PBXBuildFile; + settings = { + }; + }; + 65F9C22109C4CD9800DCC29E = { + fileRef = 65F9C21F09C4CD9700DCC29E; + isa = PBXBuildFile; + settings = { + }; + }; + 65F9C22209C4CD9800DCC29E = { + fileRef = 65F9C21E09C4CD9700DCC29E; + isa = PBXBuildFile; + settings = { + }; + }; + 65F9C22309C4CD9800DCC29E = { + fileRef = 65F9C21F09C4CD9700DCC29E; + isa = PBXBuildFile; + settings = { + }; + }; + 65F9C22609C4CDDE00DCC29E = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.c; + name = sha1dgst.c; + path = ../Common/source/sha1dgst.c; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 65F9C22709C4CDDE00DCC29E = { + fileRef = 65F9C22609C4CDDE00DCC29E; + isa = PBXBuildFile; + settings = { + }; + }; + 65F9C22809C4CDDE00DCC29E = { + fileRef = 65F9C22609C4CDDE00DCC29E; + isa = PBXBuildFile; + settings = { + }; + }; //650 //651 |
|
From: Andre R. <and...@us...> - 2006-03-12 21:55:19
|
Update of /cvsroot/frontierkernel/Frontier/build_CWPro8 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1393/build_CWPro8 Modified Files: Frontier.mcp OPML.mcp Log Message: Added files for SHA1 hashing. Index: Frontier.mcp =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/Frontier.mcp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 Binary files /tmp/cvs3oatJy and /tmp/cvs9siEvQ differ Index: OPML.mcp =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/OPML.mcp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvsUOfSUB and /tmp/cvsQEfdWT differ |
|
From: Andre R. <and...@us...> - 2006-03-12 21:39:19
|
Update of /cvsroot/frontierkernel/Frontier/build_VC2K3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25680/build_VC2K3 Modified Files: Frontier.vcproj Log Message: Added files for SHA1 hashing. Index: Frontier.vcproj =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_VC2K3/Frontier.vcproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Frontier.vcproj 11 Mar 2006 19:07:52 -0000 1.3 --- Frontier.vcproj 12 Mar 2006 21:39:11 -0000 1.4 *************** *** 2179,2182 **** --- 2179,2185 ---- </File> <File + RelativePath="..\Common\source\sha1dgst.c"> + </File> + <File RelativePath="..\Common\source\smallicon.c"> <FileConfiguration *************** *** 7195,7198 **** --- 7198,7207 ---- </File> <File + RelativePath="..\Common\headers\sha.h"> + </File> + <File + RelativePath="..\Common\headers\sha_locl.h"> + </File> + <File RelativePath="..\Common\headers\shell.h"> </File> |
|
From: Andre R. <and...@us...> - 2006-03-12 21:35:34
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23916/Common/headers Modified Files: versions.h Log Message: Bumped version to 10.1a9. Index: versions.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/versions.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** versions.h 10 Mar 2006 21:24:33 -0000 1.17 --- versions.h 12 Mar 2006 21:35:29 -0000 1.18 *************** *** 70,77 **** #define APP_STAGE_CODE 0x40 /* dev = 0x20, alpha = 0x40, beta = 0x60, final = 0x80 */ ! #define APP_REVISION_LEVEL 8 /* for non-final releases only */ ! #define APP_BUILD_NUMBER 8 /* increment by one for every release, final or not */ ! #define APP_VERSION_STRING "10.1a8" #else --- 70,77 ---- #define APP_STAGE_CODE 0x40 /* dev = 0x20, alpha = 0x40, beta = 0x60, final = 0x80 */ ! #define APP_REVISION_LEVEL 9 /* for non-final releases only */ ! #define APP_BUILD_NUMBER 9 /* increment by one for every release, final or not */ ! #define APP_VERSION_STRING "10.1a9" #else *************** *** 96,103 **** #define APP_STAGE_CODE 0x40 /* dev = 0x20, alpha = 0x40, beta = 0x60, final = 0x80 */ ! #define APP_REVISION_LEVEL 8 /* for non-final releases only */ ! #define APP_BUILD_NUMBER 8 /* increment by one for every release, final or not */ ! #define APP_VERSION_STRING "10.1a8" #endif --- 96,103 ---- #define APP_STAGE_CODE 0x40 /* dev = 0x20, alpha = 0x40, beta = 0x60, final = 0x80 */ ! #define APP_REVISION_LEVEL 9 /* for non-final releases only */ ! #define APP_BUILD_NUMBER 9 /* increment by one for every release, final or not */ ! #define APP_VERSION_STRING "10.1a9" #endif *************** *** 122,129 **** #define APP_STAGE_CODE 0x40 /* dev = 0x20, alpha = 0x40, beta = 0x60, final = 0x80 */ ! #define APP_REVISION_LEVEL 8 /* for non-final releases only */ ! #define APP_BUILD_NUMBER 8 /* increment by one for every release, final or not */ ! #define APP_VERSION_STRING "10.1a8" #endif --- 122,129 ---- #define APP_STAGE_CODE 0x40 /* dev = 0x20, alpha = 0x40, beta = 0x60, final = 0x80 */ ! #define APP_REVISION_LEVEL 9 /* for non-final releases only */ ! #define APP_BUILD_NUMBER 9 /* increment by one for every release, final or not */ ! #define APP_VERSION_STRING "10.1a9" #endif |
|
From: creecode <icr...@us...> - 2006-03-12 20:39:38
|
Update of /cvsroot/frontierkernel/Frontier/Common/resources/Win32 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25440 Modified Files: kernelverbs.rc Log Message: changed hashWhirlpool to whirlpool changed hashMd5 to MD5 note: normally we wouldn't be changing names of tokens like this but there was a bit of a foul-up in communication about naming. we decided that hash is redundant in the context of the cyrpt verb category. added SHA1 and hmacSHA1 Index: kernelverbs.rc =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/resources/Win32/kernelverbs.rc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** kernelverbs.rc 10 Mar 2006 21:21:01 -0000 1.6 --- kernelverbs.rc 12 Mar 2006 20:39:34 -0000 1.7 *************** *** 1066,1073 **** "crypt\0", // Function Processor name false, // Window required ! 3, // Count of verbs ! "hashWhirlpool\0", "hmacMD5\0", ! "hashMD5\0" END --- 1066,1075 ---- "crypt\0", // Function Processor name false, // Window required ! 5, // Count of verbs ! "whirlpool\0", "hmacMD5\0", ! "MD5\0", ! "SHA1\0", ! "hmacSHA1\0" END |
|
From: creecode <icr...@us...> - 2006-03-12 20:39:30
|
Update of /cvsroot/frontierkernel/Frontier/Common/resources/Mac In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25348 Modified Files: kernelverbs.r Log Message: changed hashWhirlpool to whirlpool changed hashMd5 to MD5 note: normally we wouldn't be changing names of tokens like this but there was a bit of a foul-up in communication about naming. we decided that hash is redundant in the context of the cyrpt verb category. added SHA1 and hmacSHA1 Index: kernelverbs.r =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/resources/Mac/kernelverbs.r,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** kernelverbs.r 10 Mar 2006 21:20:30 -0000 1.6 --- kernelverbs.r 12 Mar 2006 20:39:24 -0000 1.7 *************** *** 601,607 **** "multipleReplaceAll", "macromantoutf8", // 2006-02-25 creedon ! "utf8tomacroman", // 2006-02-25 creedon ! "hashWhirlpool", // 2006-03-04 creedon ! "hashhmacmd5" // 2006-03-05 creedon } } --- 601,605 ---- "multipleReplaceAll", "macromantoutf8", // 2006-02-25 creedon ! "utf8tomacroman" // 2006-02-25 creedon } } *************** *** 1129,1135 **** "crypt", false, { ! "hashWhirlpool", "hmacMD5", ! "hashMD5" } } --- 1127,1135 ---- "crypt", false, { ! "whirlpool", "hmacMD5", ! "MD5", ! "SHA1", ! "hmacSHA1" } } |
|
From: creecode <icr...@us...> - 2006-03-12 20:39:11
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25114 Modified Files: langcrypt.h Log Message: changed hashWhirlpool to whirlpool changed hashMd5 to MD5 note: normally we wouldn't be changing names of tokens like this but there was a bit of a foul-up in communication about naming. we decided that hash is redundant in the context of the cyrpt verb category. added SHA1 and hmacSHA1 Index: langcrypt.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/langcrypt.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** langcrypt.h 11 Mar 2006 04:52:12 -0000 1.2 --- langcrypt.h 12 Mar 2006 20:39:09 -0000 1.3 *************** *** 1,4 **** --- 1,33 ---- + + /* $Id$ */ + + /****************************************************************************** + + UserLand Frontier(tm) -- High performance Web content management, + object database, system-level and Internet scripting environment, + including source code editing and debugging. + + Copyright (C) 1992-2004 UserLand Software, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + ******************************************************************************/ + /* prototypes */ boolean hmacmd5 (unsigned char *, int, unsigned char *, int, unsigned char *); /* 2006-03-05 creedon */ + boolean hmacsha1 (unsigned char *, int, unsigned char *, int, unsigned char *); /* 2006-03-12 creedon */ + |
|
From: creecode <icr...@us...> - 2006-03-12 20:37:23
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24151 Modified Files: langcrypt.c Log Message: changed hashWhirlpool to whirlpool changed hashMd5 to MD5 note: normally we wouldn't be changing names of tokens like this but there was a bit of a foul-up in communication about naming. we decided that hash is redundant in the context of the cyrpt verb category. added SHA1 and hmacSHA1 Index: langcrypt.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langcrypt.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** langcrypt.c 11 Mar 2006 04:52:12 -0000 1.2 --- langcrypt.c 12 Mar 2006 20:37:18 -0000 1.3 *************** *** 1,2 **** --- 1,29 ---- + + /* $Id$ */ + + /****************************************************************************** + + UserLand Frontier(tm) -- High performance Web content management, + object database, system-level and Internet scripting environment, + including source code editing and debugging. + + Copyright (C) 1992-2004 UserLand Software, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + ******************************************************************************/ + #include "frontier.h" #include "standard.h" *************** *** 14,26 **** #include "md5.h" #include "whirlpool.h" typedef enum tycryptverbtoken { /* verbs that are processed by crypt.c */ ! hashwhirlpoolfunc, hmacmd5func, ! hashmd5func, ctcryptverbs --- 41,59 ---- #include "md5.h" #include "whirlpool.h" + #include "sha.h" + #include "sha_locl.h" typedef enum tycryptverbtoken { /* verbs that are processed by crypt.c */ ! whirlpoolfunc, hmacmd5func, ! md5func, ! ! sha1func, ! ! hmacsha1func, ctcryptverbs *************** *** 41,45 **** switch (token) { ! case hashwhirlpoolfunc: { /* 2006-03-04 creedon: Whirlpool hash */ Handle h; --- 74,78 ---- switch (token) { ! case whirlpoolfunc: { /* 2006-03-04 creedon: Whirlpool hash */ Handle h; *************** *** 79,83 **** } /* for */ ! setstringlength (bs, 128); if (!newtexthandle (bs, &hresult)) --- 112,116 ---- } /* for */ ! setstringlength (bs, DIGESTBYTES * 2); if (!newtexthandle (bs, &hresult)) *************** *** 90,94 **** Handle hresult; ! if (!newfilledhandle (digest, 64, &hresult)) return (false); --- 123,127 ---- Handle hresult; ! if (!newfilledhandle (digest, DIGESTBYTES, &hresult)) return (false); *************** *** 97,101 **** return (true); ! } case hmacmd5func: { /* 2006-03-05 creedon: keyed-hashing for message authentication using md5 */ --- 130,134 ---- return (true); ! } /* whirlpoolfunc */ case hmacmd5func: { /* 2006-03-05 creedon: keyed-hashing for message authentication using md5 */ *************** *** 157,163 **** return (true); ! } ! case hashmd5func: { /* 2006-03-10 creedon: cribbed from stringverbs.c */ Handle x; MD5_CTX hashcontext; /* MD5 context. */ --- 190,196 ---- return (true); ! } /* hmacmd5func */ ! case md5func: { /* 2006-03-10 creedon: cribbed from stringverbs.c */ Handle x; MD5_CTX hashcontext; /* MD5 context. */ *************** *** 216,221 **** return (true); ! } default: getstringlist (langerrorlist, unimplementedverberror, bserror); --- 249,373 ---- return (true); ! } /* md5func */ + case sha1func: { /* 2006-03-11 creedon: SHA1 hash */ + Handle h; + SHA_CTX hashcontext; /* SHA context */ + unsigned char digest [SHA_DIGEST_LENGTH]; + short ctconsumed = 1; + short ctpositional = 1; + tyvaluerecord vtranslate; + + if (!getreadonlytextvalue (hp1, 1, &h)) + return (false); + + setbooleanvalue (true, &vtranslate); + + flnextparamislast = true; + + if (!getoptionalparamvalue (hp1, &ctconsumed, &ctpositional, "\x0b""flTranslate", &vtranslate)) + return (false); + + lockhandle (h); + + SHA1_Init (&hashcontext); + + SHA1_Update (&hashcontext, (unsigned char *)(*h), gethandlesize (h)); + + SHA1_Final (digest, &hashcontext); + + unlockhandle (h); + + if (vtranslate.data.flvalue) { /* return a hex string */ + bigstring bs; + unsigned char enc [] = "0123456789abcdef"; + long ix; + Handle hresult; + + for(ix = 0; ix < SHA_DIGEST_LENGTH; ix++) { + setstringcharacter (bs, 2 * ix, enc [(int)((digest [ix]) / 16)]); + setstringcharacter (bs, 2 * ix + 1, enc [(int)((digest [ix]) % 16)]); + } /* for */ + + setstringlength (bs, SHA_DIGEST_LENGTH * 2); + + if (!newtexthandle (bs, &hresult)) + return (false); + + return (setheapvalue (hresult, stringvaluetype, v)); + } + + else { /* return a binary of unknown type */ + Handle hresult; + + if (!newfilledhandle (digest, SHA_DIGEST_LENGTH, &hresult)) + return (false); + + return (setbinaryvalue (hresult, typeunknown, v)); + } + + return (true); + } /* sha1func */ + + case hmacsha1func: { /* 2006-03-11 creedon: keyed-hashing for message authentication using sha1 */ + + Handle hdata, hkey; + unsigned char digest [SHA_DIGEST_LENGTH]; + short ctconsumed = 2; + short ctpositional = 2; + tyvaluerecord vtranslate; + + setbooleanvalue (true, &vtranslate); + + if (!getreadonlytextvalue (hp1, 1, &hdata)) + return (false); + + if (!getreadonlytextvalue (hp1, 2, &hkey)) + return (false); + + flnextparamislast = true; + + if (!getoptionalparamvalue (hp1, &ctconsumed, &ctpositional, "\x0b""flTranslate", &vtranslate)) + return (false); + + lockhandle (hkey); + lockhandle (hdata); + + hmacsha1 ((unsigned char *)(*hdata), gethandlesize (hdata), (unsigned char *)(*hkey), gethandlesize (hkey), (unsigned char *) digest); + + unlockhandle (hkey); + unlockhandle (hdata); + + if (vtranslate.data.flvalue) { /* return a hex string */ + bigstring bs; + unsigned char enc [] = "0123456789abcdef"; + long ix; + Handle hresult; + + for (ix = 0; ix < SHA_DIGEST_LENGTH; ix++) { + setstringcharacter (bs, 2 * ix, enc [(int) ((digest [ix]) / 16)]); + setstringcharacter (bs, 2 * ix + 1, enc [(int) ((digest [ix]) % 16)]); + } /* for */ + + setstringlength (bs, SHA_DIGEST_LENGTH * 2); + + if (!newtexthandle (bs, &hresult)) + return (false); + + return (setheapvalue (hresult, stringvaluetype, v)); + } + + else { /* return a binary of unknown type */ + Handle hresult; + + if (!newfilledhandle (digest, SHA_DIGEST_LENGTH, &hresult)) + return (false); + + return (setbinaryvalue (hresult, typeunknown, v)); + } + + return (true); + } /* hmacsha1func */ + default: getstringlist (langerrorlist, unimplementedverberror, bserror); *************** *** 283,287 **** memcpy (k_opad, key, key_len); ! for (i=0; i < 64; i++) { /* XOR key with ipad and opad values */ k_ipad [i] ^= 0x36; k_opad [i] ^= 0x5c; --- 435,439 ---- memcpy (k_opad, key, key_len); ! for (i = 0; i < 64; i++) { /* XOR key with ipad and opad values */ k_ipad [i] ^= 0x36; k_opad [i] ^= 0x5c; *************** *** 305,306 **** --- 457,527 ---- } /* hmacmd5 */ + + boolean hmacsha1 (unsigned char * text, int text_len, unsigned char * key, int key_len, unsigned char * digest) { + + /* + 2006-03-10 creedon: created, cribbed from hmacmd5 function + + text; pointer to data stream + text_len; length of data stream + key; pointer to authentication key + key_len; length of authentication key + digest; caller digest to be filled in + */ + + SHA_CTX context; + unsigned char k_ipad [SHA_CBLOCK + 1]; /* inner padding - key XORd with ipad */ + unsigned char k_opad [SHA_CBLOCK + 1]; /* outer padding - key XORd with opad */ + unsigned char tk [SHA_DIGEST_LENGTH]; + int i; + + if (key_len > SHA_CBLOCK) { /* if key is longer than 64 bytes reset it to key=SHA1(key) */ + + SHA_CTX tctx; + + SHA1_Init (&tctx); + SHA1_Update (&tctx, key, key_len); + SHA1_Final (tk, &tctx); + + key = tk; + key_len = SHA_DIGEST_LENGTH; + } + + /* + the HMAC_SHA1 transform looks like: + + SHA1(K XOR opad, SHA1(K XOR ipad, text)) + + where K is an n byte key + ipad is the byte 0x36 repeated 64 times + opad is the byte 0x5c repeated 64 times + and text is the data being protected + */ + + memset (k_ipad, 0, sizeof (k_ipad)); /* start out by storing key in pads */ + memset (k_opad, 0, sizeof (k_opad)); + memcpy (k_ipad, key, key_len); + memcpy (k_opad, key, key_len); + + for (i = 0; i < SHA_CBLOCK; i++) { /* XOR key with ipad and opad values */ + k_ipad [i] ^= 0x36; + k_opad [i] ^= 0x5c; + } + + /* perform inner SHA1 */ + + SHA1_Init (&context); /* init context for 1st pass */ + SHA1_Update (&context, k_ipad, SHA_CBLOCK); /* start with inner pad */ + SHA1_Update (&context, text, text_len); /* then text of datagram */ + SHA1_Final (digest, &context); /* finish up 1st pass */ + + /* perform outer SHA1 */ + + SHA1_Init (&context); /* init context for 2nd pass */ + SHA1_Update (&context, k_opad, SHA_CBLOCK); /* start with outer pad */ + SHA1_Update (&context, digest, SHA_DIGEST_LENGTH); /* then results of 1st hash */ + SHA1_Final (digest, &context); /* finish up 2nd pass */ + + return (true); + } /* hmacsha1 */ + |
|
From: creecode <icr...@us...> - 2006-03-12 20:21:46
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15644 Added Files: sha1dgst.c Log Message: code cribbed from Andre's crypto dll to support SHA1 --- NEW FILE: sha1dgst.c --- /* crypto/sha/sha1dgst.c */ /* Copyright (C) 1995-1998 Eric Young (ea...@cr...) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (ea...@cr...). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tj...@cr...). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (ea...@cr...)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tj...@cr...)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #include <stdio.h> #include <string.h> #undef SHA_0 #define SHA_1 #include "sha.h" #include "sha_locl.h" char *SHA1_version="SHA1 part of OpenSSL 0.9.1c 23-Dec-1998"; /* Implemented from SHA-1 document - The Secure Hash Algorithm */ #define INIT_DATA_h0 (unsigned long)0x67452301L #define INIT_DATA_h1 (unsigned long)0xefcdab89L #define INIT_DATA_h2 (unsigned long)0x98badcfeL #define INIT_DATA_h3 (unsigned long)0x10325476L #define INIT_DATA_h4 (unsigned long)0xc3d2e1f0L #define K_00_19 0x5a827999L #define K_20_39 0x6ed9eba1L #define K_40_59 0x8f1bbcdcL #define K_60_79 0xca62c1d6L #ifndef NOPROTO # ifdef SHA1_ASM void sha1_block_x86(SHA_CTX *c, register unsigned long *p, int num); # define sha1_block sha1_block_x86 # else void sha1_block(SHA_CTX *c, register unsigned long *p, int num); # endif #else # ifdef SHA1_ASM void sha1_block_x86(); # define sha1_block sha1_block_x86 # else void sha1_block(); # endif #endif #if defined(L_ENDIAN) && defined(SHA1_ASM) # define M_c2nl c2l # define M_p_c2nl p_c2l # define M_c2nl_p c2l_p # define M_p_c2nl_p p_c2l_p # define M_nl2c l2c #else # define M_c2nl c2nl # define M_p_c2nl p_c2nl # define M_c2nl_p c2nl_p # define M_p_c2nl_p p_c2nl_p # define M_nl2c nl2c #endif void SHA1_Init(c) SHA_CTX *c; { c->h0=INIT_DATA_h0; c->h1=INIT_DATA_h1; c->h2=INIT_DATA_h2; c->h3=INIT_DATA_h3; c->h4=INIT_DATA_h4; c->Nl=0; c->Nh=0; c->num=0; } void SHA1_Update(c, data, len) SHA_CTX *c; register unsigned char *data; unsigned long len; { register ULONG *p; int ew,ec,sw,sc; ULONG l; if (len == 0) return; l=(c->Nl+(len<<3))&0xffffffffL; if (l < c->Nl) /* overflow */ c->Nh++; c->Nh+=(len>>29); c->Nl=l; if (c->num != 0) { p=c->data; sw=c->num>>2; sc=c->num&0x03; if ((c->num+len) >= SHA_CBLOCK) { l= p[sw]; M_p_c2nl(data,l,sc); p[sw++]=l; for (; sw<SHA_LBLOCK; sw++) { M_c2nl(data,l); p[sw]=l; } len-=(SHA_CBLOCK-c->num); sha1_block(c,p,64); c->num=0; /* drop through and do the rest */ } else { c->num+=(int)len; if ((sc+len) < 4) /* ugly, add char's to a word */ { l= p[sw]; M_p_c2nl_p(data,l,sc,len); p[sw]=l; } else { ew=(c->num>>2); ec=(c->num&0x03); l= p[sw]; M_p_c2nl(data,l,sc); p[sw++]=l; for (; sw < ew; sw++) { M_c2nl(data,l); p[sw]=l; } if (ec) { M_c2nl_p(data,l,ec); p[sw]=l; } } return; } } /* We can only do the following code for assember, the reason * being that the sha1_block 'C' version changes the values * in the 'data' array. The assember code avoids this and * copies it to a local array. I should be able to do this for * the C version as well.... */ #if 1 #if defined(B_ENDIAN) || defined(SHA1_ASM) if ((((unsigned long)data)%sizeof(ULONG)) == 0) { sw=len/SHA_CBLOCK; if (sw) { sw*=SHA_CBLOCK; sha1_block(c,(ULONG *)data,sw); data+=sw; len-=sw; } } #endif #endif /* we now can process the input data in blocks of SHA_CBLOCK * chars and save the leftovers to c->data. */ p=c->data; while (len >= SHA_CBLOCK) { #if defined(B_ENDIAN) || defined(L_ENDIAN) if (p != (unsigned long *)data) memcpy(p,data,SHA_CBLOCK); data+=SHA_CBLOCK; # ifdef L_ENDIAN # ifndef SHA1_ASM /* Will not happen */ for (sw=(SHA_LBLOCK/4); sw; sw--) { Endian_Reverse32(p[0]); Endian_Reverse32(p[1]); Endian_Reverse32(p[2]); Endian_Reverse32(p[3]); p+=4; } p=c->data; # endif # endif #else for (sw=(SHA_BLOCK/4); sw; sw--) { M_c2nl(data,l); *(p++)=l; M_c2nl(data,l); *(p++)=l; M_c2nl(data,l); *(p++)=l; M_c2nl(data,l); *(p++)=l; } p=c->data; #endif sha1_block(c,p,64); len-=SHA_CBLOCK; } ec=(int)len; c->num=ec; ew=(ec>>2); ec&=0x03; for (sw=0; sw < ew; sw++) { M_c2nl(data,l); p[sw]=l; } M_c2nl_p(data,l,ec); p[sw]=l; } void SHA1_Transform(c,b) SHA_CTX *c; unsigned char *b; { ULONG p[16]; #ifndef B_ENDIAN ULONG *q; int i; #endif #if defined(B_ENDIAN) || defined(L_ENDIAN) memcpy(p,b,64); #ifdef L_ENDIAN q=p; for (i=(SHA_LBLOCK/4); i; i--) { Endian_Reverse32(q[0]); Endian_Reverse32(q[1]); Endian_Reverse32(q[2]); Endian_Reverse32(q[3]); q+=4; } #endif #else q=p; for (i=(SHA_LBLOCK/4); i; i--) { ULONG l; c2nl(b,l); *(q++)=l; c2nl(b,l); *(q++)=l; c2nl(b,l); *(q++)=l; c2nl(b,l); *(q++)=l; } #endif sha1_block(c,p,64); } #ifndef SHA1_ASM void sha1_block(c, W, num) SHA_CTX *c; register unsigned long *W; int num; { register ULONG A,B,C,D,E,T; ULONG X[16]; A=c->h0; B=c->h1; C=c->h2; D=c->h3; E=c->h4; for (;;) { BODY_00_15( 0,A,B,C,D,E,T,W); BODY_00_15( 1,T,A,B,C,D,E,W); BODY_00_15( 2,E,T,A,B,C,D,W); BODY_00_15( 3,D,E,T,A,B,C,W); BODY_00_15( 4,C,D,E,T,A,B,W); BODY_00_15( 5,B,C,D,E,T,A,W); BODY_00_15( 6,A,B,C,D,E,T,W); BODY_00_15( 7,T,A,B,C,D,E,W); BODY_00_15( 8,E,T,A,B,C,D,W); BODY_00_15( 9,D,E,T,A,B,C,W); BODY_00_15(10,C,D,E,T,A,B,W); BODY_00_15(11,B,C,D,E,T,A,W); BODY_00_15(12,A,B,C,D,E,T,W); BODY_00_15(13,T,A,B,C,D,E,W); BODY_00_15(14,E,T,A,B,C,D,W); BODY_00_15(15,D,E,T,A,B,C,W); BODY_16_19(16,C,D,E,T,A,B,W,W,W,W); BODY_16_19(17,B,C,D,E,T,A,W,W,W,W); BODY_16_19(18,A,B,C,D,E,T,W,W,W,W); BODY_16_19(19,T,A,B,C,D,E,W,W,W,X); BODY_20_31(20,E,T,A,B,C,D,W,W,W,X); BODY_20_31(21,D,E,T,A,B,C,W,W,W,X); BODY_20_31(22,C,D,E,T,A,B,W,W,W,X); BODY_20_31(23,B,C,D,E,T,A,W,W,W,X); BODY_20_31(24,A,B,C,D,E,T,W,W,X,X); BODY_20_31(25,T,A,B,C,D,E,W,W,X,X); BODY_20_31(26,E,T,A,B,C,D,W,W,X,X); BODY_20_31(27,D,E,T,A,B,C,W,W,X,X); BODY_20_31(28,C,D,E,T,A,B,W,W,X,X); BODY_20_31(29,B,C,D,E,T,A,W,W,X,X); BODY_20_31(30,A,B,C,D,E,T,W,X,X,X); BODY_20_31(31,T,A,B,C,D,E,W,X,X,X); BODY_32_39(32,E,T,A,B,C,D,X); BODY_32_39(33,D,E,T,A,B,C,X); BODY_32_39(34,C,D,E,T,A,B,X); BODY_32_39(35,B,C,D,E,T,A,X); BODY_32_39(36,A,B,C,D,E,T,X); BODY_32_39(37,T,A,B,C,D,E,X); BODY_32_39(38,E,T,A,B,C,D,X); BODY_32_39(39,D,E,T,A,B,C,X); BODY_40_59(40,C,D,E,T,A,B,X); BODY_40_59(41,B,C,D,E,T,A,X); BODY_40_59(42,A,B,C,D,E,T,X); BODY_40_59(43,T,A,B,C,D,E,X); BODY_40_59(44,E,T,A,B,C,D,X); BODY_40_59(45,D,E,T,A,B,C,X); BODY_40_59(46,C,D,E,T,A,B,X); BODY_40_59(47,B,C,D,E,T,A,X); BODY_40_59(48,A,B,C,D,E,T,X); BODY_40_59(49,T,A,B,C,D,E,X); BODY_40_59(50,E,T,A,B,C,D,X); BODY_40_59(51,D,E,T,A,B,C,X); BODY_40_59(52,C,D,E,T,A,B,X); BODY_40_59(53,B,C,D,E,T,A,X); BODY_40_59(54,A,B,C,D,E,T,X); BODY_40_59(55,T,A,B,C,D,E,X); BODY_40_59(56,E,T,A,B,C,D,X); BODY_40_59(57,D,E,T,A,B,C,X); BODY_40_59(58,C,D,E,T,A,B,X); BODY_40_59(59,B,C,D,E,T,A,X); BODY_60_79(60,A,B,C,D,E,T,X); BODY_60_79(61,T,A,B,C,D,E,X); BODY_60_79(62,E,T,A,B,C,D,X); BODY_60_79(63,D,E,T,A,B,C,X); BODY_60_79(64,C,D,E,T,A,B,X); BODY_60_79(65,B,C,D,E,T,A,X); BODY_60_79(66,A,B,C,D,E,T,X); BODY_60_79(67,T,A,B,C,D,E,X); BODY_60_79(68,E,T,A,B,C,D,X); BODY_60_79(69,D,E,T,A,B,C,X); BODY_60_79(70,C,D,E,T,A,B,X); BODY_60_79(71,B,C,D,E,T,A,X); BODY_60_79(72,A,B,C,D,E,T,X); BODY_60_79(73,T,A,B,C,D,E,X); BODY_60_79(74,E,T,A,B,C,D,X); BODY_60_79(75,D,E,T,A,B,C,X); BODY_60_79(76,C,D,E,T,A,B,X); BODY_60_79(77,B,C,D,E,T,A,X); BODY_60_79(78,A,B,C,D,E,T,X); BODY_60_79(79,T,A,B,C,D,E,X); c->h0=(c->h0+E)&0xffffffffL; c->h1=(c->h1+T)&0xffffffffL; c->h2=(c->h2+A)&0xffffffffL; c->h3=(c->h3+B)&0xffffffffL; c->h4=(c->h4+C)&0xffffffffL; num-=64; if (num <= 0) break; A=c->h0; B=c->h1; C=c->h2; D=c->h3; E=c->h4; W+=16; } } #endif void SHA1_Final(md, c) unsigned char *md; SHA_CTX *c; { register int i,j; register ULONG l; register ULONG *p; static unsigned char end[4]={0x80,0x00,0x00,0x00}; unsigned char *cp=end; /* c->num should definitly have room for at least one more byte. */ p=c->data; j=c->num; i=j>>2; #ifdef PURIFY if ((j&0x03) == 0) p[i]=0; #endif l=p[i]; M_p_c2nl(cp,l,j&0x03); p[i]=l; i++; /* i is the next 'undefined word' */ if (c->num >= SHA_LAST_BLOCK) { for (; i<SHA_LBLOCK; i++) p[i]=0; sha1_block(c,p,64); i=0; } for (; i<(SHA_LBLOCK-2); i++) p[i]=0; p[SHA_LBLOCK-2]=c->Nh; p[SHA_LBLOCK-1]=c->Nl; #if defined(L_ENDIAN) && defined(SHA1_ASM) Endian_Reverse32(p[SHA_LBLOCK-2]); Endian_Reverse32(p[SHA_LBLOCK-1]); #endif sha1_block(c,p,64); cp=md; l=c->h0; nl2c(l,cp); l=c->h1; nl2c(l,cp); l=c->h2; nl2c(l,cp); l=c->h3; nl2c(l,cp); l=c->h4; nl2c(l,cp); /* clear stuff, sha1_block may be leaving some stuff on the stack * but I'm not worried :-) */ c->num=0; /* memset((char *)&c,0,sizeof(c));*/ } |
|
From: creecode <icr...@us...> - 2006-03-12 20:21:26
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15385 Added Files: sha.h sha_locl.h Log Message: code cribbed from Andre's crypto dll to support SHA1 --- NEW FILE: sha.h --- /* crypto/sha/sha.h */ /* Copyright (C) 1995-1998 Eric Young (ea...@cr...) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (ea...@cr...). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tj...@cr...). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (ea...@cr...)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tj...@cr...)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #ifndef HEADER_SHA_H #define HEADER_SHA_H #ifdef __cplusplus extern "C" { #endif #define SHA_CBLOCK 64 #define SHA_LBLOCK 16 #define SHA_BLOCK 16 #define SHA_LAST_BLOCK 56 #define SHA_LENGTH_BLOCK 8 #define SHA_DIGEST_LENGTH 20 typedef struct SHAstate_st { unsigned long h0,h1,h2,h3,h4; unsigned long Nl,Nh; unsigned long data[SHA_LBLOCK]; int num; } SHA_CTX; #ifndef NOPROTO void SHA_Init(SHA_CTX *c); void SHA_Update(SHA_CTX *c, unsigned char *data, unsigned long len); void SHA_Final(unsigned char *md, SHA_CTX *c); unsigned char *SHA(unsigned char *d, unsigned long n,unsigned char *md); void SHA_Transform(SHA_CTX *c, unsigned char *data); void SHA1_Init(SHA_CTX *c); void SHA1_Update(SHA_CTX *c, unsigned char *data, unsigned long len); void SHA1_Final(unsigned char *md, SHA_CTX *c); unsigned char *SHA1(unsigned char *d, unsigned long n,unsigned char *md); void SHA1_Transform(SHA_CTX *c, unsigned char *data); #else void SHA_Init(); void SHA_Update(); void SHA_Final(); unsigned char *SHA(); void SHA_Transform(); void SHA1_Init(); void SHA1_Update(); void SHA1_Final(); unsigned char *SHA1(); void SHA1_Transform(); #endif #ifdef __cplusplus } #endif #endif --- NEW FILE: sha_locl.h --- /* crypto/sha/sha_locl.h */ /* Copyright (C) 1995-1998 Eric Young (ea...@cr...) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (ea...@cr...). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tj...@cr...). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (ea...@cr...)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tj...@cr...)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #include <stdlib.h> #include <string.h> #ifdef undef /* one or the other needs to be defined */ #ifndef SHA_1 /* FIPE 180-1 */ #define SHA_0 /* FIPS 180 */ #endif #endif #define ULONG unsigned long #define UCHAR unsigned char #define UINT unsigned int #ifdef NOCONST #define const #endif #undef c2nl #define c2nl(c,l) (l =(((unsigned long)(*((c)++)))<<24), \ l|=(((unsigned long)(*((c)++)))<<16), \ l|=(((unsigned long)(*((c)++)))<< 8), \ l|=(((unsigned long)(*((c)++))) )) #undef p_c2nl #define p_c2nl(c,l,n) { \ switch (n) { \ case 0: l =((unsigned long)(*((c)++)))<<24; \ case 1: l|=((unsigned long)(*((c)++)))<<16; \ case 2: l|=((unsigned long)(*((c)++)))<< 8; \ case 3: l|=((unsigned long)(*((c)++))); \ } \ } #undef c2nl_p /* NOTE the pointer is not incremented at the end of this */ #define c2nl_p(c,l,n) { \ l=0; \ (c)+=n; \ switch (n) { \ case 3: l =((unsigned long)(*(--(c))))<< 8; \ case 2: l|=((unsigned long)(*(--(c))))<<16; \ case 1: l|=((unsigned long)(*(--(c))))<<24; \ } \ } #undef p_c2nl_p #define p_c2nl_p(c,l,sc,len) { \ switch (sc) \ { \ case 0: l =((unsigned long)(*((c)++)))<<24; \ if (--len == 0) break; \ case 1: l|=((unsigned long)(*((c)++)))<<16; \ if (--len == 0) break; \ case 2: l|=((unsigned long)(*((c)++)))<< 8; \ } \ } #undef nl2c #define nl2c(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \ *((c)++)=(unsigned char)(((l)>>16)&0xff), \ *((c)++)=(unsigned char)(((l)>> 8)&0xff), \ *((c)++)=(unsigned char)(((l) )&0xff)) #undef c2l #define c2l(c,l) (l =(((unsigned long)(*((c)++))) ), \ l|=(((unsigned long)(*((c)++)))<< 8), \ l|=(((unsigned long)(*((c)++)))<<16), \ l|=(((unsigned long)(*((c)++)))<<24)) #undef p_c2l #define p_c2l(c,l,n) { \ switch (n) { \ case 0: l =((unsigned long)(*((c)++))); \ case 1: l|=((unsigned long)(*((c)++)))<< 8; \ case 2: l|=((unsigned long)(*((c)++)))<<16; \ case 3: l|=((unsigned long)(*((c)++)))<<24; \ } \ } #undef c2l_p /* NOTE the pointer is not incremented at the end of this */ #define c2l_p(c,l,n) { \ l=0; \ (c)+=n; \ switch (n) { \ case 3: l =((unsigned long)(*(--(c))))<<16; \ case 2: l|=((unsigned long)(*(--(c))))<< 8; \ case 1: l|=((unsigned long)(*(--(c)))); \ } \ } #undef p_c2l_p #define p_c2l_p(c,l,sc,len) { \ switch (sc) \ { \ case 0: l =((unsigned long)(*((c)++))); \ if (--len == 0) break; \ case 1: l|=((unsigned long)(*((c)++)))<< 8; \ if (--len == 0) break; \ case 2: l|=((unsigned long)(*((c)++)))<<16; \ } \ } #undef l2c #define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \ *((c)++)=(unsigned char)(((l)>> 8)&0xff), \ *((c)++)=(unsigned char)(((l)>>16)&0xff), \ *((c)++)=(unsigned char)(((l)>>24)&0xff)) /* (AR 02/17/1999 #undef ROTATE #if defined(WIN32) #define ROTATE(a,n) _lrotl(a,n) #else #define ROTATE(a,n) (((a)<<(n))|(((a)&0xffffffff)>>(32-(n)))) #endif */ #define ROTATE(a,n) (((a)<<(n))|(((a)&0xffffffff)>>(32-(n)))) /* A nice byte order reversal from Wei Dai <we...@es...> */ #if defined(WIN32) /* 5 instructions with rotate instruction, else 9 */ #define Endian_Reverse32(a) \ { \ unsigned long l=(a); \ (a)=((ROTATE(l,8)&0x00FF00FF)|(ROTATE(l,24)&0xFF00FF00)); \ } #else /* 6 instructions with rotate instruction, else 8 */ #define Endian_Reverse32(a) \ { \ unsigned long l=(a); \ l=(((l&0xFF00FF00)>>8L)|((l&0x00FF00FF)<<8L)); \ (a)=ROTATE(l,16L); \ } #endif /* As pointed out by Wei Dai <we...@es...>, F() below can be * simplified to the code in F_00_19. Wei attributes these optimisations * to Peter Gutmann's SHS code, and he attributes it to Rich Schroeppel. * #define F(x,y,z) (((x) & (y)) | ((~(x)) & (z))) * I've just become aware of another tweak to be made, again from Wei Dai, * in F_40_59, (x&a)|(y&a) -> (x|y)&a */ #define F_00_19(b,c,d) ((((c) ^ (d)) & (b)) ^ (d)) #define F_20_39(b,c,d) ((b) ^ (c) ^ (d)) #define F_40_59(b,c,d) (((b) & (c)) | (((b)|(c)) & (d))) #define F_60_79(b,c,d) F_20_39(b,c,d) #ifdef SHA_0 #undef Xupdate #define Xupdate(a,i,ia,ib,ic,id) X[(i)&0x0f]=(a)=\ (ia[(i)&0x0f]^ib[((i)+2)&0x0f]^ic[((i)+8)&0x0f]^id[((i)+13)&0x0f]); #endif #ifdef SHA_1 #undef Xupdate #define Xupdate(a,i,ia,ib,ic,id) (a)=\ (ia[(i)&0x0f]^ib[((i)+2)&0x0f]^ic[((i)+8)&0x0f]^id[((i)+13)&0x0f]);\ X[(i)&0x0f]=(a)=ROTATE((a),1); #endif #define BODY_00_15(i,a,b,c,d,e,f,xa) \ (f)=xa[i]+(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \ (b)=ROTATE((b),30); #define BODY_16_19(i,a,b,c,d,e,f,xa,xb,xc,xd) \ Xupdate(f,i,xa,xb,xc,xd); \ (f)+=(e)+K_00_19+ROTATE((a),5)+F_00_19((b),(c),(d)); \ (b)=ROTATE((b),30); #define BODY_20_31(i,a,b,c,d,e,f,xa,xb,xc,xd) \ Xupdate(f,i,xa,xb,xc,xd); \ (f)+=(e)+K_20_39+ROTATE((a),5)+F_20_39((b),(c),(d)); \ (b)=ROTATE((b),30); #define BODY_32_39(i,a,b,c,d,e,f,xa) \ Xupdate(f,i,xa,xa,xa,xa); \ (f)+=(e)+K_20_39+ROTATE((a),5)+F_20_39((b),(c),(d)); \ (b)=ROTATE((b),30); #define BODY_40_59(i,a,b,c,d,e,f,xa) \ Xupdate(f,i,xa,xa,xa,xa); \ (f)+=(e)+K_40_59+ROTATE((a),5)+F_40_59((b),(c),(d)); \ (b)=ROTATE((b),30); #define BODY_60_79(i,a,b,c,d,e,f,xa) \ Xupdate(f,i,xa,xa,xa,xa); \ (f)=X[(i)&0x0f]+(e)+K_60_79+ROTATE((a),5)+F_60_79((b),(c),(d)); \ (b)=ROTATE((b),30); |
|
From: creecode <icr...@us...> - 2006-03-12 20:18:20
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13801 Modified Files: whirlpool.h Log Message: added cvs keyword Id Index: whirlpool.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/whirlpool.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** whirlpool.h 12 Mar 2006 18:42:20 -0000 1.2 --- whirlpool.h 12 Mar 2006 20:18:16 -0000 1.3 *************** *** 1,3 **** --- 1,5 ---- + /* $Id$ */ + #ifndef PORTABLE_C__ #define PORTABLE_C__ |
|
From: Andre R. <and...@us...> - 2006-03-12 18:42:24
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25002/Common/headers Modified Files: whirlpool.h Log Message: Fix compiler warnings. Index: whirlpool.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/whirlpool.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** whirlpool.h 10 Mar 2006 21:20:41 -0000 1.1 --- whirlpool.h 12 Mar 2006 18:42:20 -0000 1.2 *************** *** 131,137 **** /* prototypes */ /* 2006-03-06 creedon */ ! void NESSIEinit (NESSIEstruct *); ! void NESSIEadd (const unsigned char * const, unsigned long, NESSIEstruct *); ! void NESSIEfinalize (NESSIEstruct *, unsigned char *); void makeNESSIETestVectors (); void testAPI (void); --- 131,137 ---- /* prototypes */ /* 2006-03-06 creedon */ ! void NESSIEinit (NESSIEstruct * const); ! void NESSIEadd (const unsigned char * const, unsigned long, NESSIEstruct * const); ! void NESSIEfinalize (NESSIEstruct * const, unsigned char * const); void makeNESSIETestVectors (); void testAPI (void); |
|
From: Andre R. <and...@us...> - 2006-03-12 18:19:45
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9953/Common/headers Modified Files: osincludes.h Log Message: Rely on standard C library to handle assert(). In standard.h, just take care of defining verify() properly. Index: osincludes.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/osincludes.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** osincludes.h 11 Jan 2005 22:48:02 -0000 1.4 --- osincludes.h 12 Mar 2006 18:19:40 -0000 1.5 *************** *** 306,310 **** #include <stdio.h> #include <string.h> ! #endif /* __osincludes_h__ */ --- 306,310 ---- #include <stdio.h> #include <string.h> ! #include <assert.h> #endif /* __osincludes_h__ */ |
|
From: Andre R. <and...@us...> - 2006-03-12 18:19:44
|
Update of /cvsroot/frontierkernel/Frontier/Common/SystemHeaders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9953/Common/SystemHeaders Modified Files: standard.h Log Message: Rely on standard C library to handle assert(). In standard.h, just take care of defining verify() properly. Index: standard.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/SystemHeaders/standard.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** standard.h 15 Jan 2005 00:35:51 -0000 1.10 --- standard.h 12 Mar 2006 18:19:39 -0000 1.11 *************** *** 283,299 **** /*macros*/ ! #if MACVERSION && TARGET_API_MAC_CARBON ! #if TARGET_RT_MAC_CFM /* 2004-10-23 aradke: rely on Debugging.h */ ! #define assert(x) check(x) ! #endif #else ! #ifdef fldebug ! short __assert(char *, char *, short); ! #define assert(x) ((void) ((x) ? 0 : __assert(#x, __FILE__, __LINE__))) ! #define verify(x) assert(x) ! #else ! #define assert(x) ((void) 0) ! #define verify(x) ((void) x) ! #endif #endif --- 283,292 ---- /*macros*/ ! #undef verify ! ! #ifdef NDEBUG ! #define verify(x) ((void) x) #else ! #define verify(x) assert(x) #endif |
|
From: Andre R. <and...@us...> - 2006-03-12 18:19:44
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9953/Common/source Modified Files: assert.c Log Message: Rely on standard C library to handle assert(). In standard.h, just take care of defining verify() properly. Index: assert.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/assert.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** assert.c 11 Jan 2005 22:48:04 -0000 1.7 --- assert.c 12 Mar 2006 18:19:37 -0000 1.8 *************** *** 29,32 **** --- 29,34 ---- #include "standard.h" + #if 0 /* 2006-03-12 aradke: completely disabled, rely on C lib to handle assert() */ + #ifdef fldebug *************** *** 280,281 **** --- 282,284 ---- #endif /*fldebug*/ + #endif |
|
From: Andre R. <and...@us...> - 2006-03-12 18:13:56
|
Update of /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6141/build_CWPro8/prefix_headers Modified Files: frontier.osxcfm.release.pch frontier.ppc.release.pch opml.osxcfm.release.pch opml.ppc.release.pch radio.osxcfm.release.pch radio.ppc.release.pch Log Message: Define NDEBUG for release builds in preparation for letting the C library deal with assert() Index: frontier.ppc.release.pch =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers/frontier.ppc.release.pch,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** frontier.ppc.release.pch 11 Jan 2005 22:48:53 -0000 1.2 --- frontier.ppc.release.pch 12 Mar 2006 18:13:53 -0000 1.3 *************** *** 32,34 **** --- 32,36 ---- #pragma precompile_target "frontier.ppc.release.mch" + #define NDEBUG + #include "frontier.ppc.h" Index: opml.osxcfm.release.pch =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers/opml.osxcfm.release.pch,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** opml.osxcfm.release.pch 4 Feb 2006 16:08:42 -0000 1.2 --- opml.osxcfm.release.pch 12 Mar 2006 18:13:53 -0000 1.3 *************** *** 32,35 **** --- 32,37 ---- #pragma precompile_target "opml.osxcfm.release.mch" + #define NDEBUG + #define DEBUG 1 #define PRODUCTION 1 Index: radio.osxcfm.release.pch =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers/radio.osxcfm.release.pch,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radio.osxcfm.release.pch 11 Jan 2005 22:48:53 -0000 1.2 --- radio.osxcfm.release.pch 12 Mar 2006 18:13:53 -0000 1.3 *************** *** 32,35 **** --- 32,37 ---- #pragma precompile_target "radio.osxcfm.release.mch" + #define NDEBUG + #define DEBUG 1 #define PRODUCTION 1 Index: opml.ppc.release.pch =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers/opml.ppc.release.pch,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** opml.ppc.release.pch 4 Feb 2006 16:08:42 -0000 1.2 --- opml.ppc.release.pch 12 Mar 2006 18:13:53 -0000 1.3 *************** *** 32,34 **** --- 32,36 ---- #pragma precompile_target "opml.ppc.release.mch" + #define NDEBUG + #include "opml.ppc.h" Index: radio.ppc.release.pch =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers/radio.ppc.release.pch,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radio.ppc.release.pch 11 Jan 2005 22:48:53 -0000 1.2 --- radio.ppc.release.pch 12 Mar 2006 18:13:53 -0000 1.3 *************** *** 32,34 **** --- 32,36 ---- #pragma precompile_target "radio.ppc.release.mch" + #define NDEBUG + #include "radio.ppc.h" Index: frontier.osxcfm.release.pch =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_CWPro8/prefix_headers/frontier.osxcfm.release.pch,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** frontier.osxcfm.release.pch 11 Jan 2005 22:48:53 -0000 1.2 --- frontier.osxcfm.release.pch 12 Mar 2006 18:13:53 -0000 1.3 *************** *** 32,35 **** --- 32,37 ---- #pragma precompile_target "frontier.osxcfm.release.mch" + #define NDEBUG + #define DEBUG 1 #define PRODUCTION 1 |
|
From: Andre R. <and...@us...> - 2006-03-12 18:06:32
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1356/Common/source Modified Files: menuverbs.c Log Message: Fixed compiler warning. Index: menuverbs.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/menuverbs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** menuverbs.c 1 Oct 2005 17:45:45 -0000 1.5 --- menuverbs.c 12 Mar 2006 18:06:28 -0000 1.6 *************** *** 2120,2127 **** */ - register hdlmenurecord hm = menudata; boolean fl; ! assert (w == (**hm).scriptwindow); shellpushglobals (w); --- 2120,2126 ---- */ boolean fl; ! assert (w == (**menudata).scriptwindow); shellpushglobals (w); |
|
From: Andre R. <and...@us...> - 2006-03-12 18:06:31
|
Update of /cvsroot/frontierkernel/Frontier/Common/IOAToolkit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1356/Common/IOAToolkit Modified Files: ioascrollbar.c Log Message: Fixed compiler warning. Index: ioascrollbar.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/IOAToolkit/ioascrollbar.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ioascrollbar.c 11 Jan 2005 22:47:38 -0000 1.4 --- ioascrollbar.c 12 Mar 2006 18:06:28 -0000 1.5 *************** *** 177,181 **** static boolean clickscrollbar (hdlobject listhead, hdlobject h, Point pt, boolean flshiftkey, boolean fl2click) { - hdlscrollbardata hdata = (hdlscrollbardata) (**h).objectdata; hdlcard hc = (**h).owningcard; --- 177,180 ---- *************** *** 195,199 **** scrollbarpart = FindControl (pt, (**hc).drawwindow, &sb); ! assert (sb == (**hdata).hcontrol); if (scrollbarpart == kControlIndicatorPart) --- 194,198 ---- scrollbarpart = FindControl (pt, (**hc).drawwindow, &sb); ! assert (sb == (**((hdlscrollbardata) (**h).objectdata)).hcontrol); if (scrollbarpart == kControlIndicatorPart) |
|
From: Andre R. <and...@us...> - 2006-03-12 17:48:16
|
Update of /cvsroot/frontierkernel/Frontier/build_XCode/Frontier.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23459/Frontier.xcode Modified Files: project.pbxproj Log Message: Define NDEBUG for Deployment build style. Index: project.pbxproj =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_XCode/Frontier.xcode/project.pbxproj,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** project.pbxproj 12 Mar 2006 17:45:16 -0000 1.28 --- project.pbxproj 12 Mar 2006 17:48:09 -0000 1.29 *************** *** 3621,3624 **** --- 3621,3625 ---- GCC_ENABLE_FIX_AND_CONTINUE = NO; GCC_OPTIMIZATION_LEVEL = 2; + GCC_PREPROCESSOR_DEFINITIONS = NDEBUG; ZERO_LINK = NO; }; |
|
From: Andre R. <and...@us...> - 2006-03-12 17:45:29
|
Update of /cvsroot/frontierkernel/Frontier/build_XCode/Frontier.xcode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21813/Frontier.xcode Modified Files: project.pbxproj Log Message: Added langcrypt.h/.c and whirlpool.h/.c Index: project.pbxproj =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/build_XCode/Frontier.xcode/project.pbxproj,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** project.pbxproj 10 Mar 2006 18:07:07 -0000 1.27 --- project.pbxproj 12 Mar 2006 17:45:16 -0000 1.28 *************** *** 283,286 **** --- 283,288 ---- 65059A3A09968C1400410571, 65AA438709C03C6D00A4B237, + 6599181C09C4952A00F6F58C, + 6599181D09C4952A00F6F58C, ); isa = PBXHeadersBuildPhase; *************** *** 1829,1832 **** --- 1831,1836 ---- 65059B3309968C1400410571, 65AA438C09C03C8900A4B237, + 6599180809C494EA00F6F58C, + 6599181509C4950300F6F58C, ); isa = PBXSourcesBuildPhase; *************** *** 3858,3861 **** --- 3862,3867 ---- 65B70CEA0797CF78008C2F1A, 65AA438609C03C6D00A4B237, + 6599181A09C4952A00F6F58C, + 6599181B09C4952A00F6F58C, ); isa = PBXHeadersBuildPhase; *************** *** 4114,4117 **** --- 4120,4125 ---- 65B70CE60797CF2D008C2F1A, 65AA438B09C03C8900A4B237, + 6599180709C494EA00F6F58C, + 6599181409C4950300F6F58C, ); isa = PBXSourcesBuildPhase; *************** *** 5384,5387 **** --- 5392,5396 ---- 6515260B072BFC6700411831, 6515260C072BFC6700411831, + 6599180609C494EA00F6F58C, ); isa = PBXGroup; *************** *** 5965,5968 **** --- 5974,5978 ---- 6515262A072BFC6700411831, 6515262B072BFC6700411831, + 6599181309C4950200F6F58C, 6515262C072BFC6700411831, 6515262D072BFC6700411831, *************** *** 11879,11882 **** --- 11889,11976 ---- }; }; + 6599180609C494EA00F6F58C = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.c; + name = whirlpool.c; + path = ../Common/source/whirlpool.c; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 6599180709C494EA00F6F58C = { + fileRef = 6599180609C494EA00F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599180809C494EA00F6F58C = { + fileRef = 6599180609C494EA00F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599181309C4950200F6F58C = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.c; + name = langcrypt.c; + path = ../Common/source/langcrypt.c; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 6599181409C4950300F6F58C = { + fileRef = 6599181309C4950200F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599181509C4950300F6F58C = { + fileRef = 6599181309C4950200F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599181809C4952A00F6F58C = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + name = langcrypt.h; + path = ../Common/headers/langcrypt.h; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 6599181909C4952A00F6F58C = { + fileEncoding = 30; + isa = PBXFileReference; + lastKnownFileType = sourcecode.c.h; + name = whirlpool.h; + path = ../Common/headers/whirlpool.h; + refType = 2; + sourceTree = SOURCE_ROOT; + }; + 6599181A09C4952A00F6F58C = { + fileRef = 6599181809C4952A00F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599181B09C4952A00F6F58C = { + fileRef = 6599181909C4952A00F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599181C09C4952A00F6F58C = { + fileRef = 6599181809C4952A00F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; + 6599181D09C4952A00F6F58C = { + fileRef = 6599181909C4952A00F6F58C; + isa = PBXBuildFile; + settings = { + }; + }; 65AA438509C03C6D00A4B237 = { fileEncoding = 30; *************** *** 12041,12044 **** --- 12135,12139 ---- 65152840072BFE8D00411831, 651527E6072BFE3D00411831, + 6599181809C4952A00F6F58C, 651528DA072BFF2C00411831, 651527EC072BFE4200411831, *************** *** 12143,12146 **** --- 12238,12242 ---- 65152830072BFE7F00411831, 6515286C072BFEC000411831, + 6599181909C4952A00F6F58C, 65152874072BFEC600411831, 6515287E072BFECE00411831, |
|
From: creecode <icr...@us...> - 2006-03-12 04:32:08
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/tcp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16808 Modified Files: sendMail Log Message: when adding AUTH= xtext the sender Index: sendMail =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/tcp/sendMail,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sendMail 12 Mar 2006 03:01:18 -0000 1.4 --- sendMail 12 Mar 2006 04:32:06 -0000 1.5 *************** *** 3,6 **** --- 3,8 ---- on sendMail (recipient = "", subject = "", message = "", sender = user.prefs.mailAddress, cc = "", bcc = "", host = user.prefs.mailHost, mimeType = "text/plain", adrHdrTable = nil, timeOutTicks = 60 * 60, flMessages = true, port = user.prefs.mailHostPort, smtpAuth = user.prefs.mailSmtpAuth, senderPassword = user.prefs.mailPassword) { «Changes + «3/11/06; 8:25:21 PM by TAC + «when adding AUTH= xtext the sender «3/11/06; 6:53:41 PM by TAC «changed bad reference to string.hashHmacMd5 to crypt.hmacMD5 *************** *** 283,287 **** if flAuthenticated { ! s = s + " AUTH=" + sender}; executeCommand (s, "250"); --- 285,289 ---- if flAuthenticated { ! s = s + " AUTH=" + string.xtextEncode (sender)}; executeCommand (s, "250"); |
|
From: creecode <icr...@us...> - 2006-03-12 04:23:30
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/string In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12298 Added Files: xtextEncode Log Message: xtext encoding, needed for SMTP-AUTH --- NEW FILE: xtextEncode --- (This appears to be a binary file; contents omitted.) |
|
From: creecode <icr...@us...> - 2006-03-12 03:01:24
|
Update of /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/tcp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2127 Modified Files: sendMail Log Message: changed bad reference to string.hashHmacMd5 to crypt.hmacMD5 Index: sendMail =================================================================== RCS file: /cvsroot/frontierkernel/odbs/frontierRoot/system/verbs/builtins/tcp/sendMail,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sendMail 10 Mar 2006 21:46:41 -0000 1.3 --- sendMail 12 Mar 2006 03:01:18 -0000 1.4 *************** *** 3,6 **** --- 3,8 ---- on sendMail (recipient = "", subject = "", message = "", sender = user.prefs.mailAddress, cc = "", bcc = "", host = user.prefs.mailHost, mimeType = "text/plain", adrHdrTable = nil, timeOutTicks = 60 * 60, flMessages = true, port = user.prefs.mailHostPort, smtpAuth = user.prefs.mailSmtpAuth, senderPassword = user.prefs.mailPassword) { «Changes + «3/11/06; 6:53:41 PM by TAC + «changed bad reference to string.hashHmacMd5 to crypt.hmacMD5 «3/6/06; 11:11:09 AM by TAC «added support for STMP AUTH using CRAM-MD5, LOGIN, and PLAIN *************** *** 229,233 **** s = base64.decode (s); ! s = string.hashCramMd5 (string.nthField (sender, '@', 1), string (senderPassword), s); s = base64.encode (s, 0); --- 231,235 ---- s = base64.decode (s); ! s = crypt.cramMD5 (string.nthField (sender, '@', 1), string (senderPassword), s); s = base64.encode (s, 0); |