From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Date: Fri, 30 Jun 2000 15:40:42 +0000 From: Boyd Roberts Message-ID: <8jiepd$ckp$1@nnrp1.deja.com> References: <200006291340.JAA06630@pali.cps.cmich.edu>, <20000629204158.249.qmail@nx.aichi-u.ac.jp> Subject: Re: [9fans] netkey for Plan9 Topicbox-Message-UUID: d032e65e-eac8-11e9-9e20-41e7f4b1d025 In article <20000629204158.249.qmail@nx.aichi-u.ac.jp>, Kenji Arisawa wrote: > Hello. > > >Does anybody has source/binary for netkey to run under > FreeBSD/Linux? > > Look at ftp://plan9.aichi-u.ac.jp/ Look at: http://www.planete.net/~boyd/code/des.msg It has some plan 9 support. Can't be too hard to write netkey from that. From the comment: There are two parts to this; a UNIX DES implementation and some Plan 9 support for UNIX which uses the DES implementaton. The Plan 9 support gives you encrypt(2) and netcrypt(2). The only significant difference between my DES and the Plan 9 DES is that Plan 9 packs a DES key into 7 bytes, while I use 8. In the Plan 9 support there's a function (des9key) which does the key conversion (Plan 9 -> 8 bytes). The versions of encrypt and decrypt should call des9key() before invoking deskey(), so it's transparent. The DES implementation has a Makefile, manual entry and test program. The Plan 9 support comes with no Makefile support, that's up to you. [the DES is not fast, but it is correct: correctness, then speed] -- Boyd Roberts boyd@psycho-basket-case.org ``I come over here to kill them cocksuckers, not work for 'em'' -- Moon Dog, _Pettibone's Law_, John Keene Sent via Deja.com http://www.deja.com/ Before you buy.