aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/blowfish.h
diff options
context:
space:
mode:
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*/