Lines Matching refs:verification_key
54 static int raw_verify(const char *fn, const char *verification_key) {
58 r = journal_file_open(fn, O_RDONLY, 0666, true, !!verification_key, NULL, NULL, NULL, &f);
62 r = journal_file_verify(f, verification_key, NULL, NULL, NULL, false);
72 const char *verification_key = argv[1];
91 assert_se(journal_file_open("test.journal", O_RDWR|O_CREAT, 0666, true, !!verification_key, NULL, NULL, NULL, &f) == 0);
114 assert_se(journal_file_open("test.journal", O_RDONLY, 0666, true, !!verification_key, NULL, NULL, NULL, &f) == 0);
118 assert_se(journal_file_verify(f, verification_key, &from, &to, &total, true) >= 0);
120 if (verification_key && JOURNAL_HEADER_SEALED(f->header))
128 if (verification_key) {
138 if (raw_verify("test.journal", verification_key) >= 0)