X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=crypt.h;h=e9657ff5c0ae2b9c5a8875ea9f37e8e145ff9f64;hb=6eab6671f857009b6d6a2de2c2ec8187f869f705;hp=1406197d0c6cd64c14cf1b30d8ef281417903638;hpb=a29e6451e79365af6dce8d14f3056fc107b059fb;p=paraslash.git diff --git a/crypt.h b/crypt.h index 1406197d..e9657ff5 100644 --- a/crypt.h +++ b/crypt.h @@ -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.