X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.h;h=324a87b349a5b9f69443e47c44e242ffb0be04df;hp=1406197d0c6cd64c14cf1b30d8ef281417903638;hb=d1e6b28f66e243516d01916f9125baee75dd98d6;hpb=5cb5db1fbf8f9b96c3b5a1e0cc7de9e710757540 diff --git a/crypt.h b/crypt.h index 1406197d..324a87b3 100644 --- a/crypt.h +++ b/crypt.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2013 Andre Noll + * Copyright (C) 2005-2014 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.