xref: /netbsd-src/crypto/external/bsd/netpgp/dist/src/libverify/pgpsum.h (revision 640eb22bcb3eb4227a4cc2648891b207ab6a658c)
1*640eb22bSagc /*-
2*640eb22bSagc  * Copyright (c) 2012 Alistair Crooks <agc@NetBSD.org>
3*640eb22bSagc  * All rights reserved.
4*640eb22bSagc  *
5*640eb22bSagc  * Redistribution and use in source and binary forms, with or without
6*640eb22bSagc  * modification, are permitted provided that the following conditions
7*640eb22bSagc  * are met:
8*640eb22bSagc  * 1. Redistributions of source code must retain the above copyright
9*640eb22bSagc  *    notice, this list of conditions and the following disclaimer.
10*640eb22bSagc  * 2. Redistributions in binary form must reproduce the above copyright
11*640eb22bSagc  *    notice, this list of conditions and the following disclaimer in the
12*640eb22bSagc  *    documentation and/or other materials provided with the distribution.
13*640eb22bSagc  *
14*640eb22bSagc  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15*640eb22bSagc  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16*640eb22bSagc  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17*640eb22bSagc  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18*640eb22bSagc  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19*640eb22bSagc  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20*640eb22bSagc  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21*640eb22bSagc  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22*640eb22bSagc  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23*640eb22bSagc  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24*640eb22bSagc  */
25*640eb22bSagc #ifndef PGPSUM_H_
26*640eb22bSagc #define PGPSUM_H_	20121003
27*640eb22bSagc 
28*640eb22bSagc #include <sys/types.h>
29*640eb22bSagc 
30*640eb22bSagc #include <inttypes.h>
31*640eb22bSagc 
32*640eb22bSagc int pgpv_digest_file(uint8_t */*buf*/, size_t /*size*/, const char */*name*/, const uint8_t */*hashed*/, size_t /*hashsize*/, int /*doarmor*/);
33*640eb22bSagc int pgpv_digest_memory(uint8_t */*buf*/, size_t /*size*/, void */*memory*/, size_t /*cc*/, const uint8_t */*hashed*/, size_t /*hashsize*/, int /*doarmor*/);
34*640eb22bSagc 
35*640eb22bSagc #endif
36