1 /* $OpenBSD: xform.h,v 1.8 2001/08/28 12:20:43 ben Exp $ */
4 * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
6 * This code was written by Angelos D. Keromytis in Athens, Greece, in
7 * February 2000. Network Security Technologies Inc. (NSTI) kindly
8 * supported the development of this code.
10 * Copyright (c) 2000 Angelos D. Keromytis
11 * Copyright (c) 2014 The FreeBSD Foundation
12 * All rights reserved.
14 * Portions of this software were developed by John-Mark Gurney
15 * under sponsorship of the FreeBSD Foundation and
16 * Rubicon Communications, LLC (Netgate).
18 * Permission to use, copy, and modify this software without fee
19 * is hereby granted, provided that this entire notice is included in
20 * all source code copies of any software which is or includes a copy or
21 * modification of this software.
23 * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
24 * IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY
25 * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
26 * MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
30 #ifndef _CRYPTO_XFORM_COMP_H_
31 #define _CRYPTO_XFORM_COMP_H_
33 #include <sys/types.h>
35 #include <opencrypto/deflate.h>
36 #include <opencrypto/cryptodev.h>
43 uint32_t (*compress) (uint8_t *, uint32_t, uint8_t **);
44 uint32_t (*decompress) (uint8_t *, uint32_t, uint8_t **);
47 extern const struct comp_algo comp_algo_deflate;
49 #endif /* _CRYPTO_XFORM_COMP_H_ */