NAME
|
encrypt, decrypt, netcrypt – DES encryption |
SYNOPSIS
|
#include <u.h> #include <libc.h> |
DESCRIPTION
|
Encrypt and decrypt perform DES encryption and decryption. Key
is an array of DESKEYLEN (defined as 7 in <auth.h>) bytes containing
the encryption key. Data is an array of len bytes; it must be
at least 8 bytes long. The bytes are encrypted or decrypted in
place.
|
SOURCE
|
/sys/src/libc/port |
DIAGNOSTICS
|
These routines return 1 if the data was encrypted, and 0 if the
encryption fails. Encrypt and decrypt fail if the data passed
is less than 8 bytes long. Netcrypt can fail if it is passed invalid
data. |
SEE ALSO
|
securenet(8) |
BUGS
|
The implementation is broken in a way that makes it unsuitable
for anything but authentication. |