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 des3ECBencrypt(uchar *p, int len, DES3state *s)
16 for(; len >= 8; len -= 8){
17 triple_block_cipher(s->expanded, p, DES3EDE);
24 triple_block_cipher(s->expanded, tmp, DES3EDE);
25 for (i = 0; i < len; i++)
31 des3ECBdecrypt(uchar *p, int len, DES3state *s)
36 for(; len >= 8; len -= 8){
37 triple_block_cipher(s->expanded, p, DES3DED);
44 triple_block_cipher(s->expanded, tmp, DES3EDE);
45 for (i = 0; i < len; i++)