Lines Matching refs:mode
79 int EncryptType(char *type, char *mode);
80 int EncryptStart(char *mode);
81 int EncryptStop(char *mode);
229 EncryptEnable(char *type, char *mode)
236 if (EncryptType(type, mode))
237 return(EncryptStart(mode));
242 EncryptDisable(char *type, char *mode)
256 if ((mode == 0) || (isprefix(mode, "input") ? 1 : 0)) {
262 if ((mode == 0) || (isprefix(mode, "output"))) {
269 printf("%s: invalid encryption mode\n", mode);
275 EncryptType(char *type, char *mode)
289 if ((mode == 0) || isprefix(mode, "input")) {
294 if ((mode == 0) || isprefix(mode, "output")) {
300 printf("%s: invalid encryption mode\n", mode);
306 EncryptStart(char *mode)
309 if (mode) {
310 if (isprefix(mode, "input"))
312 if (isprefix(mode, "output"))
314 if (isprefix(mode, "help") || isprefix(mode, "?")) {
318 printf("%s: invalid encryption mode 'encrypt start ?' for help\n", mode);
333 printf("No previous decryption mode, decryption not enabled\r\n");
344 printf("No previous encryption mode, encryption not enabled\r\n");
349 EncryptStop(char *mode)
352 if (mode) {
353 if (isprefix(mode, "input"))
355 if (isprefix(mode, "output"))
357 if (isprefix(mode, "help") || isprefix(mode, "?")) {
361 printf("%s: invalid encryption mode 'encrypt stop ?' for help\n", mode);
402 printf("Last encryption mode was %s\r\n",
410 printf("Last decryption mode was %s\r\n",
839 * If we are already encrypting in some mode, then
841 * the old mode, mark it all as "clear text" and then
842 * switch to the new mode.