Lines Matching refs:msgfile
385 createsig(const char *seckeyfile, const char *msgfile, uint8_t *msg, in createsig() argument
414 kdf(enckey.salt, sizeof(enckey.salt), rounds, strcmp(msgfile, "-") != 0, in createsig()
437 sign(const char *seckeyfile, const char *msgfile, const char *sigfile, in sign() argument
445 msg = readmsg(msgfile, &msglen); in sign()
447 sighdr = createsig(seckeyfile, msgfile, msg, msglen); in sign()
528 verifysimple(const char *pubkeyfile, const char *msgfile, const char *sigfile, in verifysimple() argument
537 msg = readmsg(msgfile, &msglen); in verifysimple()
573 verify(const char *pubkeyfile, const char *msgfile, const char *sigfile, in verify() argument
583 fd = xopen(msgfile, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0666); in verify()
584 writeall(fd, msg, msglen, msgfile); in verify()
588 verifysimple(pubkeyfile, msgfile, sigfile, quiet, keytype); in verify()
754 const char *pubkeyfile = NULL, *msgfile = NULL, *sigfile = NULL; in main() local
816 msgfile = optarg; in main()
858 if (!sigfile && msgfile) { in main()
860 if (strcmp(msgfile, "-") == 0) in main()
863 "%s.sig", msgfile); in main()
881 if (!msgfile || !seckeyfile || !sigfile) in main()
883 zsign(seckeyfile, msgfile, sigfile, none); in main()
885 if (!msgfile || !seckeyfile) in main()
887 sign(seckeyfile, msgfile, sigfile, embedded); in main()
893 (msgfile && strcmp(msgfile, "-") != 0)) { in main()
902 zverify(pubkeyfile, msgfile, sigfile, keytype); in main()
904 if (!msgfile) in main()
906 verify(pubkeyfile, msgfile, sigfile, embedded, in main()