Lines Matching defs:len
78 #define DESCOPY(src, dst, len) { \
82 for (i = (int)len; i > 0; i -= 8) { \
92 cbc_crypt(char *key, char *buf, size_t len, unsigned int mode, char *ivec)
99 err = common_crypt(key, buf, len, mode, &dp);
109 ecb_crypt(char *key, char *buf, size_t len, unsigned int mode)
114 return (common_crypt(key, buf, len, mode, &dp));
123 common_crypt(char *key, char *buf, unsigned len, unsigned mode,
129 if ((len % 8) != 0 || len > DES_MAXDATA)
147 desp->des_len = len;
148 if (len <= DES_QUICKLEN) {
149 DESCOPY(buf, desp->des_data, len);
151 DESCOPY(desp->des_data, buf, len);
163 if (!__des_crypt(buf, len, desp))
169 desN_crypt(des_block keys[], int keynum, char *buf, unsigned int len,
183 stat = cbc_crypt(keys[j].c, buf, len, m | flags, ivec);
196 stat = cbc_crypt(keys[0].c, buf, len, mode, ivec);
207 __cbc_triple_crypt(des_block keys[], char *buf, uint_t len,
210 return (desN_crypt(keys, 3, buf, len, mode, ivec));