From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f03ffdf470e3c559 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Date: Tue, 28 Oct 2008 21:39:23 -0400 From: "Peter C. Chapin" User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Interesting performance quirk. References: <4903c066$0$28676$4d3efbfe@news.sover.net> <49045079$0$28711$4d3efbfe@news.sover.net> <4906f908$0$5781$4d3efbfe@news.sover.net> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4907bec9$0$5739$4d3efbfe@news.sover.net> Organization: SoVerNet (sover.net) NNTP-Posting-Host: 88d5e0b2.news.sover.net X-Trace: DXC=:2ng_SYnaL^iWd0f0h0laWK6_LM2JZB_Sb6`a[fP]=LX:WUUlR<856__ndFQa]W\V_Jmba;:96AWU X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:2515 Date: 2008-10-28T21:39:23-04:00 List-Id: Jeffrey R. Carter wrote: > Have you verified that your implementation and the OpenSSL library give > the same encryption results? There's not much point in worrying about > relative speeds if they aren't doing the same thing. Well, I have unit tests for my code that are based on the Blowfish test vectors on Schneier's page. My code passes those cases, so the encryption results are apparently what Schneier thinks they should be. I can only assume that OpenSSL can also pass those test cases (didn't try it). I can see the sense in verifying interoperability between my code and another major crypto library. On the other hand, when there are published test cases it may not be worth it. For instance the Blowfish ECB tests on Schneier's page all use 64 bit keys. Considering that the algorithm can handle key lengths from 32 bits to 448 bits, those test cases aren't as broad as ideal. Checking interoperability with OpenSSL (say) for a range of key sizes might be worth doing. But... this is getting off the topic of Ada a bit. I apologize for rambling. Peter