Lines Matching refs:mode
83 int EncryptType(char *type, char *mode);
84 int EncryptStart(char *mode);
85 int EncryptStop(char *mode);
233 EncryptEnable(char *type, char *mode)
240 if (EncryptType(type, mode))
241 return(EncryptStart(mode));
246 EncryptDisable(char *type, char *mode)
260 if ((mode == 0) || (isprefix(mode, "input") ? 1 : 0)) {
266 if ((mode == 0) || (isprefix(mode, "output"))) {
273 printf("%s: invalid encryption mode\n", mode);
279 EncryptType(char *type, char *mode)
293 if ((mode == 0) || isprefix(mode, "input")) {
298 if ((mode == 0) || isprefix(mode, "output")) {
304 printf("%s: invalid encryption mode\n", mode);
310 EncryptStart(char *mode)
313 if (mode) {
314 if (isprefix(mode, "input"))
316 if (isprefix(mode, "output"))
318 if (isprefix(mode, "help") || isprefix(mode, "?")) {
322 printf("%s: invalid encryption mode 'encrypt start ?' for help\n", mode);
337 printf("No previous decryption mode, decryption not enabled\r\n");
348 printf("No previous encryption mode, encryption not enabled\r\n");
353 EncryptStop(char *mode)
356 if (mode) {
357 if (isprefix(mode, "input"))
359 if (isprefix(mode, "output"))
361 if (isprefix(mode, "help") || isprefix(mode, "?")) {
365 printf("%s: invalid encryption mode 'encrypt stop ?' for help\n", mode);
406 printf("Last encryption mode was %s\r\n",
414 printf("Last decryption mode was %s\r\n",
840 * If we are already encrypting in some mode, then
842 * the old mode, mark it all as "clear text" and then
843 * switch to the new mode.