commit | f3ccc681001b8bc3a74e060597203a682072d6f6 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Mar 18 21:21:02 2010 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Mar 18 21:21:02 2010 +0000 |
tree | bd4d553792b8f9b5e4ab4794404b8ccd6ca494a1 | |
parent | 4fc45522f12793bbce33c1fbb37e15b2818ff72c [diff] [blame] |
- Fixed cipher interface for encrypt/decrypt functions
diff --git a/library/arc4.c b/library/arc4.c index fb4542f..5e70311 100644 --- a/library/arc4.c +++ b/library/arc4.c
@@ -63,7 +63,7 @@ /* * ARC4 cipher function */ -void arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen ) +int arc4_crypt( arc4_context *ctx, unsigned char *buf, int buflen ) { int i, x, y, a, b; unsigned char *m; @@ -86,6 +86,8 @@ ctx->x = x; ctx->y = y; + + return( 0 ); } #if defined(POLARSSL_SELF_TEST)