Lines Matching refs:len
83 #define DESCOPY(src, dst, len) { \
87 for (i = (int)len; i > 0; i -= 8) { \
98 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec)
106 err = common_crypt(key, buf, len, mode, &dp);
122 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode)
128 return (common_crypt(key, buf, len, mode, &dp));
144 common_crypt(char *key, char *buf, unsigned len, unsigned mode,
150 if ((len % 8) != 0 || len > DES_MAXDATA)
168 desp->des_len = len;
169 if (len <= DES_QUICKLEN) {
170 DESCOPY(buf, desp->des_data, len);
172 DESCOPY(desp->des_data, buf, len);
184 if (!__des_crypt(buf, len, desp))
192 desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len,
206 stat = cbc_crypt(keys[j].c, buf, len, m | flags, ivec);
219 stat = cbc_crypt(keys[0].c, buf, len, mode, ivec);
231 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len,
235 return (desN_crypt(keys, 3, buf, len, mode, ivec));