aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/blowfish.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-04-07 18:16:10 +0000
committerWerner Koch <[email protected]>1998-04-07 18:16:10 +0000
commit86f261dbc50544d73e4b9ae71fcbc2c6df5b9612 (patch)
treed3ba75484a73e1fe891f7ff862ab1f3722cb126c /cipher/blowfish.h
parentcast5 does now work (diff)
downloadgnupg-86f261dbc50544d73e4b9ae71fcbc2c6df5b9612.tar.gz
gnupg-86f261dbc50544d73e4b9ae71fcbc2c6df5b9612.zip
cipher reorganisiert
Diffstat (limited to 'cipher/blowfish.h')
-rw-r--r--cipher/blowfish.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/cipher/blowfish.h b/cipher/blowfish.h
index 998bc0c09..db96d3720 100644
--- a/cipher/blowfish.h
+++ b/cipher/blowfish.h
@@ -31,21 +31,10 @@ typedef struct {
u32 s2[256];
u32 s3[256];
u32 p[BLOWFISH_ROUNDS+2];
- byte iv[BLOWFISH_BLOCKSIZE];
- byte eniv[BLOWFISH_BLOCKSIZE];
- int count;
} BLOWFISH_context;
void blowfish_setkey( BLOWFISH_context *c, byte *key, unsigned keylen );
-void blowfish_setiv( BLOWFISH_context *c, byte *iv );
-void blowfish_encode( BLOWFISH_context *c, byte *outbuf, byte *inbuf,
- unsigned nblocks );
-void blowfish_decode( BLOWFISH_context *c, byte *outbuf, byte *inbuf,
- unsigned nblocks );
-void blowfish_encode_cfb( BLOWFISH_context *c, byte *outbuf,
- byte *inbuf, unsigned nbytes);
-void blowfish_decode_cfb( BLOWFISH_context *c, byte *outbuf,
- byte *inbuf, unsigned nbytes);
-
+void blowfish_encrypt_block( BLOWFISH_context *bc, byte *outbuf, byte *inbuf );
+void blowfish_decrypt_block( BLOWFISH_context *bc, byte *outbuf, byte *inbuf );
#endif /*G10_BLOWFISH_H*/