# DES source code for unix # brought from: # http://www.plan9.cs.su.oz.au/~boyd # DES sources in this direcory are coded by Boyd Roberts # # On unix # sh des # make # ranlib -ac libdes.a # su # cp libdes.a /usr/lib # # Read README by Boyd. # And read also his html message bellow. # -Kenar- 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 netkey(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.