diff options
| author | Werner Koch <[email protected]> | 1997-11-23 15:38:27 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1997-11-23 15:38:27 +0000 |
| commit | db19a275188b4b3226ac4bbfc121f85ff373d331 (patch) | |
| tree | 936dfd3ee12828d5392c19f50024ff70c7171371 /g10/filter.h | |
| parent | Armor works now (diff) | |
| download | gnupg-db19a275188b4b3226ac4bbfc121f85ff373d331.tar.gz gnupg-db19a275188b4b3226ac4bbfc121f85ff373d331.zip | |
compress stuff implemented
Diffstat (limited to 'g10/filter.h')
| -rw-r--r-- | g10/filter.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/g10/filter.h b/g10/filter.h index cb6802ff3..3ca222186 100644 --- a/g10/filter.h +++ b/g10/filter.h @@ -40,6 +40,25 @@ typedef struct { } armor_filter_context_t; +typedef struct { + int status; + void *opaque; /* (used for z_stream) */ + byte *inbuf; + unsigned inbufsize; + byte *outbuf; + unsigned outbufsize; +} compress_filter_context_t; + + +typedef struct { + DEK *dek; + u32 datalen; + BLOWFISH_context *bf_ctx; + int header; +} cipher_filter_context_t; + + + /*-- mdfilter.c --*/ int md_filter( void *opaque, int control, IOBUF a, byte *buf, size_t *ret_len); @@ -47,4 +66,14 @@ int md_filter( void *opaque, int control, IOBUF a, byte *buf, size_t *ret_len); int armor_filter( void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len); +/*-- compress.c --*/ +int compress_filter( void *opaque, int control, + IOBUF chain, byte *buf, size_t *ret_len); + +/*-- cipher.c --*/ +int cipher_filter( void *opaque, int control, + IOBUF chain, byte *buf, size_t *ret_len); + + + #endif /*G10_FILTER_H*/ |
