summaryrefslogtreecommitdiffstats
path: root/crypto_buffer.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-12-06 01:39:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-12-06 01:39:33 +0100
commit6533e74370acfa51653608b1dc5e1292c72970c9 (patch)
treedbd3b13cb10df6f341a82a5a449fcf5a4b9d9b66 /crypto_buffer.c
parenta583bb24fb23728c9c4ed6c6c573d526ab654c49 (diff)
downloadcrypto-6533e74370acfa51653608b1dc5e1292c72970c9.zip
crypto-6533e74370acfa51653608b1dc5e1292c72970c9.tar.gz
remove extra spaces
Diffstat (limited to 'crypto_buffer.c')
-rw-r--r--crypto_buffer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto_buffer.c b/crypto_buffer.c
index d17e805..5d7cadb 100644
--- a/crypto_buffer.c
+++ b/crypto_buffer.c
@@ -9,12 +9,12 @@ int crypto_buffer_init(crypto_buffer *s, int fd, operation op, u32 blocks, int t
{
int ret;
int size;
-
+
if(blocks<3) return -1; /* magic + info + data */
-
+
s->fd = fd;
s->op = op;
-
+
if(type & BLOWFISH){
size = BF_BLOCK_SIZE;
ret = blowfish_setkey((struct blowfish_ctx*)&s->ctx, key, key_len, 0);
@@ -49,7 +49,7 @@ int crypto_buffer_init(crypto_buffer *s, int fd, operation op, u32 blocks, int t
if(ret!=0) return -1;
if((U32_MAX / size) < blocks) return -1;
-
+
s->block_size = size;
s->e_len = size * blocks; /* TODO check overflow */
s->data_st.bytes = s->data_st.strlen = 0;
@@ -71,7 +71,7 @@ int crypto_buffer_init(crypto_buffer *s, int fd, operation op, u32 blocks, int t
s->e_ptr = s->e_buffer + (size << 1);
s->e_len -= (size << 1);
}
-/*
+/*
fprintf(stderr,"e_buffer : %x\n",s->e_buffer);
fprintf(stderr,"e_data : %x\n",s->e_data);
fprintf(stderr,"e_ptr : %x\n",s->e_ptr);