|
|
Warp wrote:
> Orchid XP v7 <voi### [at] devnull> wrote:
>> Well, I now have the full algorithm working. :-P
>
>> Or at least, it seems to work for messages shorter than 52 bytes anyway.
>
> Then it's not a full working algorithm, is it?-)
Well, it's damn near. :-P
> Testing that the algorithm works for all possible inputs would be a rather
> laborious job. Just testing that it can produce any MD5 value would be a
> rather impossible job, taking into account how many there are.
>
> I wonder how they make sure that an implementation is correct...
Test all code paths, I assume.
For example, I am pretty damn confident that the compression function in
my implementation is correct. I've tested it with dozens of different
input blocks, and it's always produced the right output. There's no
particular reason why it shouldn't for other input blocks. It processes
them all the same way...
Now, the padding algorithm, *that* changes for every message size. For
some sizes it seems to work, but not for all of them. I need to test it
with a large array of sizes to check it's working. (Or rather, to figure
out why currently it isn't.)
Post a reply to this message
|
|