X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.h;h=9be7a23e6da4d6d1796d4d98da7d8280152c6c2a;hp=1406197d0c6cd64c14cf1b30d8ef281417903638;hb=3ea5399aeec092dcdb9f039288f1e146aadbb2f7;hpb=650e5374914c1eb725ce7d2a720611bec22112bc diff --git a/crypt.h b/crypt.h index 1406197d..9be7a23e 100644 --- a/crypt.h +++ b/crypt.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2013 Andre Noll + * Copyright (C) 2005 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -123,10 +123,12 @@ struct stream_cipher_context { * * \param data The key. * \param len The size of the key. + * \param use_aes True: Use the aes_ctr128 stream cipher, false: Use RC4. * * \return A new stream cipher structure. */ -struct stream_cipher *sc_new(const unsigned char *data, int len); +struct stream_cipher *sc_new(const unsigned char *data, int len, + bool use_aes); /** * Encrypt or decrypt a buffer using a stream cipher.