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