Lines Matching defs:mode
89 * If the mode is encrypt we will use the following pattern if the number
105 unsigned int mode, char *ivec)
108 unsigned int m = mode & (DES_ENCRYPT | DES_DECRYPT);
109 /* Get the remaining flags from mode */
110 unsigned int flags = mode & ~(DES_ENCRYPT | DES_DECRYPT);
123 j = (mode & DES_DECRYPT) ? keynum - 1 - i : i;
125 if (mode & DES_DECRYPT && i == 0)
133 if ((mode & DES_DECRYPT) || i != keynum - 1 || i%2)
142 stat = cbc_crypt(keys[0].c, buf, len, mode, ivec);
145 if (mode & DES_DECRYPT)
163 unsigned mode = (encrypt_flag ? DES_ENCRYPT : DES_DECRYPT) | DES_HW;
181 (char *)buf->value, buf->length, mode, ivec.c);
199 unsigned mode = (encrypt_flag ? DES_ENCRYPT : DES_DECRYPT) | DES_HW;
208 buf->length, mode, ivec.c);