Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_deflate.c
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
#include <opencrypto/deflate.h> | #include <opencrypto/deflate.h> | ||||
#include <opencrypto/xform_comp.h> | #include <opencrypto/xform_comp.h> | ||||
static uint32_t deflate_compress(uint8_t *, uint32_t, uint8_t **); | static uint32_t deflate_compress(uint8_t *, uint32_t, uint8_t **); | ||||
static uint32_t deflate_decompress(uint8_t *, uint32_t, uint8_t **); | static uint32_t deflate_decompress(uint8_t *, uint32_t, uint8_t **); | ||||
/* Compression instance */ | /* Compression instance */ | ||||
struct comp_algo comp_algo_deflate = { | const struct comp_algo comp_algo_deflate = { | ||||
CRYPTO_DEFLATE_COMP, "Deflate", | CRYPTO_DEFLATE_COMP, "Deflate", | ||||
90, deflate_compress, | 90, deflate_compress, | ||||
deflate_decompress | deflate_decompress | ||||
}; | }; | ||||
/* | /* | ||||
* And compression | * And compression | ||||
*/ | */ | ||||
Show All 12 Lines |