5 // I wasn't sure what to do when the buffer was not
6 // a multiple of 8. I did what lacy's cryptolib did
7 // to be compatible, but it looks dangerous to me
8 // since its encrypting plain text with the key. -- presotto
11 desECBencrypt(uchar *p, int len, DESstate *s)
16 for(; len >= 8; len -= 8){
17 block_cipher(s->expanded, p, 0);
24 block_cipher(s->expanded, tmp, 0);
25 for (i = 0; i < len; i++)
31 desECBdecrypt(uchar *p, int len, DESstate *s)
36 for(; len >= 8; len -= 8){
37 block_cipher(s->expanded, p, 1);
44 block_cipher(s->expanded, tmp, 0);
45 for (i = 0; i < len; i++)