[Lazarus] DCPcrypt on Lazarus 1.2

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Dec 27 14:35:12 CET 2013


Graeme Geldenhuys wrote:
> On 2013-12-27 09:45, Chris Crori wrote:
>>    i use DCPcrypt in my project and found out that the rijndael cipher  
>> gives different results in Lazarus 1.2 than the results i got in Lazarus  
>> 1.0
> 
> Also as Mark mentioned... Some test code with expected results would be
> very valuable in debugging this issue.

I notice a health warning at http://wiki.freepascal.org/DCPcrypt 
relating to non-standard key sizes. Graeme, I see you're down as the 
maintainer: does Rijndael have a self-test and (Chris) are you using it?

I see that I've extended the Tiger2 self-test to make sure UpdateStr() 
concatenates properly, but I've not recorded why I thought that was 
advisable. That procedure does look sensitive to whether its parameter 
is ASCII or Unicode, and something like a £ character in the input could 
mess things up.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list