summaryrefslogtreecommitdiff
path: root/cipher/arcfour.c
diff options
context:
space:
mode:
authorMoritz Schulte <mo@g10code.com>2003-07-14 22:36:44 +0000
committerMoritz Schulte <mo@g10code.com>2003-07-14 22:36:44 +0000
commita66dbf4c7a0f7c0f6b2fe0378c97605373428154 (patch)
treeb833792b11097a48fbabed172ce981c57460ce9c /cipher/arcfour.c
parent88920837676bf80c371ff950670fb2fa7bf58b24 (diff)
downloadlibgcrypt-a66dbf4c7a0f7c0f6b2fe0378c97605373428154.tar.gz
2003-07-14 Moritz Schulte <moritz@g10code.com>
* cipher.c (gcry_cipher_lookup_func_name): Also check the cipher name aliases, not just the primary name. (gcry_cipher_map_name): Remove kludge for aliasing Rijndael to AES. * arcfour.c, blowfish.c, cast5.c, des.c, twofish.c: Adjust cipher specification structures. * rijndael.c (rijndael_names, rijndael192_names, rijndael256_names): New variables, use them in the cipher specifications. * rmd160test.c: Removed file. * ac.c, arcfour.c, blowfish.c, cast5.c, cipher.c, des.c, dsa.c, elgamal.c, md.c, pubkey.c, random.c, rijndael.c, rsa.c, twofish.c: Used gcry_err* wrappers for libgpg symbols. * primegen.c (gen_prime): Correct the order arguments to extra_check. 2003-07-12 Moritz Schulte <moritz@g10code.com> * ac.c: Replaced all public occurences of gpg_error_t with gcry_error_t. * cipher.c: Likewise. * md.c: Likewise. * pubkey.c: Likewise. * random.c: Likewise. * cipher.c: Added support for TWOFISH128.
Diffstat (limited to 'cipher/arcfour.c')
-rw-r--r--cipher/arcfour.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cipher/arcfour.c b/cipher/arcfour.c
index 2e3bf22a..926d2f61 100644
--- a/cipher/arcfour.c
+++ b/cipher/arcfour.c
@@ -71,7 +71,7 @@ encrypt_stream (void *context,
}
-static gpg_err_code_t
+static gcry_err_code_t
do_arcfour_setkey (void *context, const byte *key, unsigned int keylen)
{
static int initialized;
@@ -109,11 +109,11 @@ do_arcfour_setkey (void *context, const byte *key, unsigned int keylen)
return GPG_ERR_NO_ERROR;
}
-static gpg_err_code_t
+static gcry_err_code_t
arcfour_setkey ( void *context, const byte *key, unsigned int keylen )
{
ARCFOUR_context *ctx = (ARCFOUR_context *) context;
- gpg_err_code_t rc = do_arcfour_setkey (ctx, key, keylen );
+ gcry_err_code_t rc = do_arcfour_setkey (ctx, key, keylen );
_gcry_burn_stack (300);
return rc;
}
@@ -149,6 +149,6 @@ selftest(void)
gcry_cipher_spec_t cipher_spec_arcfour =
{
- "ARCFOUR", 1, 128, sizeof (ARCFOUR_context),
+ "ARCFOUR", NULL, 1, 128, sizeof (ARCFOUR_context),
arcfour_setkey, NULL, NULL, encrypt_stream, encrypt_stream,
};