1 /* $OpenBSD: signify.h,v 1.2 2019/03/23 07:10:06 tedu Exp $ */ 2 /* 3 * Copyright (c) 2016 Marc Espie <espie@openbsd.org> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 /* common interface to signify.c/zsig.c */ 19 #ifndef signify_h 20 #define signify_h 21 extern void zverify(const char *, const char *, const char *, const char *); 22 extern void zsign(const char *, const char *, const char *, int); 23 24 extern void *xmalloc(size_t); 25 extern void writeall(int, const void *, size_t, const char *); 26 extern int xopen(const char *, int, mode_t); 27 extern void *verifyzdata(uint8_t *, unsigned long long, 28 const char *, const char *, const char *); 29 extern uint8_t *createsig(const char *, const char *, uint8_t *, 30 unsigned long long); 31 32 33 #endif 34