9srv Manual Collection/plan9/blowfish(2) | 9srv Manual Collection/plan9/blowfish(2) |
---|
void setupBFstate(BFstate *s, uchar key[], int keybytes, uchar *ivec)
void bfCBCencrypt(uchar *data, int len, BFstate *s)
void bfCBCdecrypt(uchar *data, int len, BFstate *s)
void bfECBencrypt(uchar *data, int len, BFstate *s)
void bfECBdecrypt(uchar *data, int len, BFstate *s)
setupBFstate takes a BFstate structure, a key of at most 56 bytes, the length of the key in bytes, and an initialization vector of 8 bytes (set to all zeroes if argument is nil). The encryption and decryption functions take a BFstate structure, a data buffer, and a length, which must be a multiple of eight bytes as padding is currently unsupported.
9srv Manual Collection/plan9/blowfish(2) | Rev: Sun Dec 02 23:42:20 GMT 2007 |