[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: slncrypto-1.1 & lua-5.2
- From: Petite Abeille <petite.abeille@...>
- Date: Sun, 10 Jan 2010 20:17:36 +0100
Hello,
slncrypto's sha1 seems to have lost it under 5.2. Or perhaps it's the interaction with Snow Leopard's 64 bit architecture.
One way or another, sha1 fails now. blowfish seems to be fine.
% uname -a
Darwin 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
% lua -v
Lua 5.2.0 (work1) Copyright (C) 1994-2008 Lua.org, PUC-Rio
% cd slncrypto-1.1
% lua cryptest
NOK sha1('abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') = 84983E441C3BD26EBAAE4AA1F95129E5E54670F1 GOT '0CEDED69C533F3131292BDF8C481F6C5469353BB'
NOK sha1('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...') = 34AA973CD4C4DAA4F61EEB2BDBAD27316534016F GOT 'E7AADCB848DCD416808292844235CC0FDB8DAA7E'
NOK sha1('abc') = A9993E364706816ABA3E25717850C26C9CD0D89D GOT '933D08BF12EF055C8775E39ABF1D4946CAB0DB7B'
ok sha1('a'*62) = 27D00970F253339A628D793DCC7DEFE13B69F441
ok sha1('a'*63) = DE01126692249043563B9EA64650E931B496C85A
NOK sha1('a'*64) = A4D7E257FC4105A15B5AC5C3E754AA32F038FCDF GOT 'FFFB7B55166C56E95B0300629737CCE4D50C62AF'
NOK sha1('a'*65) = 2FA028E9B6799A9D1C92B6BC0141AD910DFEFEAA GOT '50F19AA74E25FDA20537153F89344A9A286CFDA6'
NOK sha1('a'*100) = 1E8469B9CECC0C31C0BA4D7DC21C6C1330EE6B54 GOT '05913699B942171D32D097F4A8F91D900CA38ACF'
NOK sha1('a'*127) = 1198F7B669563459392210DA930B36CDAA107F31 GOT '62E922E55C12C7CAD0FA463F3CFD783C63B2ADA6'
NOK sha1('a'*128) = 381B5E5A98674480AE53554E0FB2B71380ECDE0C GOT '1F4170044C372F5B8B3AE49330B1354CD6F5B26A'
NOK sha1('a'*129) = 9ADD9E0CE57143002B8974AF3EFA6D23582054CA GOT 'C6EEFC365028FB3C60E8FA9683485E0A7591C3DF'
NOK sha1('a'*1000) = BE0EDC262AE220CFD653E41BF52E5F3083F42E55 GOT '8E830B4A23DFE5BB50A5829C40602610EB86A11A'
NOK sha1('a'*1000000) = E7AADCB848DCD416808292844235CC0FDB8DAA7E GOT '56C9F87FDAE04B132CFA1896907BD4F20E719CEB'
Thoughts?
Cheers,
PA.