Lines Matching refs:mode
226 EncryptEnable(char *type, char *mode)
233 if (EncryptType(type, mode))
234 return(EncryptStart(mode));
239 EncryptDisable(char *type, char *mode)
253 if ((mode == 0) || (isprefix(mode, "input") ? 1 : 0)) {
259 if ((mode == 0) || (isprefix(mode, "output"))) {
266 printf("%s: invalid encryption mode\n", mode);
272 EncryptType(char *type, char *mode)
286 if ((mode == 0) || isprefix(mode, "input")) {
291 if ((mode == 0) || isprefix(mode, "output")) {
297 printf("%s: invalid encryption mode\n", mode);
303 EncryptStart(char *mode)
306 if (mode) {
307 if (isprefix(mode, "input"))
309 if (isprefix(mode, "output"))
311 if (isprefix(mode, "help") || isprefix(mode, "?")) {
315 printf("%s: invalid encryption mode 'encrypt start ?' for help\n", mode);
330 printf("No previous decryption mode, decryption not enabled\r\n");
341 printf("No previous encryption mode, encryption not enabled\r\n");
346 EncryptStop(char *mode)
349 if (mode) {
350 if (isprefix(mode, "input"))
352 if (isprefix(mode, "output"))
354 if (isprefix(mode, "help") || isprefix(mode, "?")) {
358 printf("%s: invalid encryption mode 'encrypt stop ?' for help\n", mode);
410 printf("Last encryption mode was %s\r\n",
420 printf("Last decryption mode was %s\r\n",
867 * If we are already encrypting in some mode, then
869 * the old mode, mark it all as "clear text" and then
870 * switch to the new mode.
966 encrypt_debug(int mode)
968 encrypt_debug_mode = mode;