classpathx-crypto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-crypto] on testing (long) [plus patch]


From: Raif S. Naffah
Subject: Re: [Classpathx-crypto] on testing (long) [plus patch]
Date: Fri, 28 Jun 2002 22:23:42 +1000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530


Casey Marshall wrote:
Patch for the test classes is attached. It consists of a base test class
and the five TestOf* classes modified to make use of it.

On Tue, 25 Jun 2002, Raif S. Naffah wrote:


Casey Marshall wrote:

I think for the KA tests the number of tests should depend on the length of
the key/text, by (say) using the word 0x80000000 at all the possible word
(dynner, 32 bit) aligned offsets, e.g.

  8000000000000000000000000000000000000000
  0000000080000000000000000000000000000000
  ...etc.

just because it is seems less arbitrary and spans the space of keys/texts.

i'm not sure.  if the cipher is not correctly implemented, it's highly
unlikely to pass some KATs and fails others.

even if this is the case, a cipher implementation should be deemed
correct iff it passes *all* the tests!



Absolutely. I decided to just use sequential texts (shift one bit to the
right each time) instead of random/arbitrary ones. It is simpler to program
and to produce tests, and the monte carlo tests exercise the algorithms
enough that errors are unlikely to sneak by.

i havent had a chance to look at your code yet --was busy getting my cvs client working again-- but i'll checkin this stuff along with mine during the weekend.

the log entries will be shorter than usual since i wont be using wincvs for some time; unless someone can point out how to get vim configured to be the editor for use with the cvs cmd-line client tool.


Cheers + goodnight,


goodnight + have a nice weekend;
rsn






reply via email to

[Prev in Thread] Current Thread [Next in Thread]