Changeset View
Changeset View
Standalone View
Standalone View
head/sys/opencrypto/xform_deflate.c
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | struct comp_algo comp_algo_deflate = { | ||||
deflate_decompress | deflate_decompress | ||||
}; | }; | ||||
/* | /* | ||||
* And compression | * And compression | ||||
*/ | */ | ||||
static uint32_t | static uint32_t | ||||
deflate_compress(data, size, out) | deflate_compress(uint8_t *data, uint32_t size, uint8_t **out) | ||||
uint8_t *data; | |||||
uint32_t size; | |||||
uint8_t **out; | |||||
{ | { | ||||
return deflate_global(data, size, 0, out); | return deflate_global(data, size, 0, out); | ||||
} | } | ||||
static uint32_t | static uint32_t | ||||
deflate_decompress(data, size, out) | deflate_decompress(uint8_t *data, uint32_t size, uint8_t **out) | ||||
uint8_t *data; | |||||
uint32_t size; | |||||
uint8_t **out; | |||||
{ | { | ||||
return deflate_global(data, size, 1, out); | return deflate_global(data, size, 1, out); | ||||
} | } |