/* $OpenBSD: xform.h,v 1.8 2001/08/28 12:20:43 ben Exp $ */12/*-3* The author of this code is Angelos D. Keromytis ([email protected])4*5* This code was written by Angelos D. Keromytis in Athens, Greece, in6* February 2000. Network Security Technologies Inc. (NSTI) kindly7* supported the development of this code.8*9* Copyright (c) 2000 Angelos D. Keromytis10* Copyright (c) 2014 The FreeBSD Foundation11* All rights reserved.12*13* Portions of this software were developed by John-Mark Gurney14* under sponsorship of the FreeBSD Foundation and15* Rubicon Communications, LLC (Netgate).16*17* Permission to use, copy, and modify this software without fee18* is hereby granted, provided that this entire notice is included in19* all source code copies of any software which is or includes a copy or20* modification of this software.21*22* THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR23* IMPLIED WARRANTY. IN PARTICULAR, NONE OF THE AUTHORS MAKES ANY24* REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE25* MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR26* PURPOSE.27*/2829#ifndef _CRYPTO_XFORM_COMP_H_30#define _CRYPTO_XFORM_COMP_H_3132#include <sys/types.h>3334#include <opencrypto/deflate.h>35#include <opencrypto/cryptodev.h>3637/* Declarations */38struct comp_algo {39int type;40char *name;41size_t minlen;42uint32_t (*compress) (uint8_t *, uint32_t, uint8_t **);43uint32_t (*decompress) (uint8_t *, uint32_t, uint8_t **);44};4546extern const struct comp_algo comp_algo_deflate;4748#endif /* _CRYPTO_XFORM_COMP_H_ */495051