Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Mark Morgan Lloyd

Chris Crori wrote:

Hi gyus,
  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
  truth is that i didn't have any time to examine and maybe i won't in 
the next few days so if anyone wants to look into it before the official 
version comes out, it would be nice


What platform and what version of FPC? Do you have an example code with 
test values (i.e. both plain and encrypted data)? I'm using Tiger2 from 
DCPcrypt but I think it would be best if we could see your actual problem.


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

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Graeme Geldenhuys
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

Some questions:

 1) Did you use the same FPC versions? FPC Trunk has had some major
changes compared to previous released versions.

 2) What target platform did you test with? 64-bit, 32-bit etc?

 3) Was OS did you test on? Was both tests on Windows, was it the
same version of Windows? Or was it Linux vs Windows etc.


I use DCPCrypt on multiple platforms (Linux, Windows and FreeBSD) and
multiple targets (32bit  64-bit), but all with the same version of FPC
(2.6.2), and I have consistent results on all platforms and targets. I
don't use the Rijndael Cipher though.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Graeme Geldenhuys
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.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Reinier Olislagers
On 27/12/2013 13:01, 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.

Especially if those are FPCUnit... pardon FPTest (I suppose) tests ;)

OT: Graeme, have you read this:
http://forum.lazarus.freepascal.org/index.php/topic,22609.msg133713.html#msg133713
apparently there's somebody willing to improve DCPCrypt...


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Chris Crori
On Fri, 27 Dec 2013 15:35:12 +0200, Mark Morgan Lloyd  
markmll.laza...@telemetry.co.uk wrote:



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.




I think you 're onto something, my key is in UTF-8 so maybe that's the  
problem.

i didn't even look for self test
:( (kind of feeling stupid right now, unable to help)

also, Graeme :

Some questions:

 1) Did you use the same FPC versions? FPC Trunk has had some major
changes compared to previous released versions.


I used only FPC 2.6.2


 2) What target platform did you test with? 64-bit, 32-bit etc?

 3) Was OS did you test on? Was both tests on Windows, was it the
same version of Windows? Or was it Linux vs Windows etc.


I have same results in win7, 32 and 64 bit, and winXP 32 bit

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Graeme Geldenhuys
On 2013-12-27 12:10, Reinier Olislagers wrote:
 
 Especially if those are FPCUnit... pardon FPTest (I suppose) tests ;)

Either of those will be great, but just having a few lines of sample
code with expected results would also suffice.


 OT: Graeme, have you read this:
 http://forum.lazarus.freepascal.org/index.php/topic,22609.msg133713.html#msg133713
 apparently there's somebody willing to improve DCPCrypt...

I'm pretty useless when it comes to web forums. I find them very hard to
follow new messages or new topics. With email clients or NNTP news
clients I have filters on all incoming messages that notify me about
topics mentioning me or topics I am interested in. Web Forums don't have
such functionality sadly.

Thanks for pointing out that topic though. I posted some comments there
and will take a look at it.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Reinier Olislagers
On 27/12/2013 19:10, Graeme Geldenhuys wrote:
 On 2013-12-27 12:10, Reinier Olislagers wrote:

 Especially if those are FPCUnit... pardon FPTest (I suppose) tests ;)
 
 Either of those will be great, but just having a few lines of sample
 code with expected results would also suffice.

Noticed there's a selftest built into Rijndael, so that's something
already also (dis al iets, kannie hierdie sin mooi in Engels kry nie)

 OT: Graeme, have you read this:
 http://forum.lazarus.freepascal.org/index.php/topic,22609.msg133713.html#msg133713
 apparently there's somebody willing to improve DCPCrypt...
 
 I'm pretty useless when it comes to web forums. I find them very hard to
 follow new messages or new topics. With email clients or NNTP news
 clients I have filters on all incoming messages that notify me about
 topics mentioning me or topics I am interested in. Web Forums don't have
 such functionality sadly.
 
 Thanks for pointing out that topic though. I posted some comments there
 and will take a look at it.
Thanks. Did suggest that guy to PM you but obviously he hadn't.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] DCPcrypt on Lazarus 1.2

2013-12-27 Thread Graeme Geldenhuys
On 2013-12-27 18:12, Reinier Olislagers wrote:
 
 Noticed there's a selftest built into Rijndael, so that's something

Ah yes, definitely a start. A set of standard unit tests seems like a
good thing to add too.

I also see I need to update the project's README file. It's way out of
date, and probably adds to the confusion with other DCPCrypt versions
floating around on the Internet.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus