RC2 in libgcrypt

Nikos Mavroyanopoulos nmav@gnutls.org
Tue, 24 Jun 2003 15:38:21 +0300


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jun 24, 2003 at 11:56:00AM +0200, Timo Schulz wrote:

> > Okay.  This is still smells fishy and using the name RC2 might be
> > problematic.
> We could call it "ARCTWO" ;-).
Sounds fine :)

> > Anyway, I have no time to create a new implementation from the
> > description and as you know, we can't simply use some random public
> > domain code.
> What about Nikos libmcrypt? mcrypt --list shows that RC2 is included
> with 128-bit. It should be no problem to cut this down to 40-bit and
> the library is available under the terms of the LGPL.

This uses the same public domain code I was talking before.
I may try to create a fresh implementation based on the attached description
by Peter Gutmann. I attach it in case someone is more inclined to
do it :)

> 
>         Timo
> -- 
> Windows Privacy Tools            "Der Tugendhafte begn?gt sich, von dem zu 
> (http://winpt.sourceforge.net)    tr?umen, was der B?se im Leben verwirklicht."
> OpenPGP Key 0xBF3DF9B4           -- Platon

-- 
Nikos Mavroyanopoulos

--/04w6evG8XlLl3ft
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="rrc2.txt.gz"
Content-Transfer-Encoding: base64

H4sICMFF+D4AA3JyYzIudHh0AM1aa4/bxhX9zl8xcYvGm0gChxRJSUmNrl9tkGZteJ2gaJEC
lDRasUuRKh/WKh/823vPmSEp7a7TpCjQOgAjcWbu3Mc5Zy6pffa6Kndqdbwp2nqyy4pVuZuU
P03S9jP5sizM+b1lWxyz/WS1mrT/7Ka1RZFW2eTNXyeX338mU/eTD+1hkq4mxU+fHdLsNm3K
z9J2dZunxdrdLsyhVt+VhXptlkoHSs8W09lCJ+rV9Xul5/PYu6yabJUbFYSxr1W5UfUqm6yq
475ZeG/TZrv4X7jsPUOyFmp/0za+/sOqnpxPUk/fmsZU6o9ts0uL4sK7kkU3Vdnu68UQgHfd
Lv9hVs1CXe/NKttkq7TJJBebslLv5P/vsg+mbmr1IttvxdhVOQm8l2ljFkprmzBJkPLjxTRa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