X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.h;h=85623fbae9a561a4809c26bf7e5e85ca5bbad6d4;hp=6f3befdb0c637cdfa706346e5e1adff59f2bcb9f;hb=8f69a1302a52163c61142531c4a6944510c3ec12;hpb=3b3b41a8819bcb9c10772057de03878188ae6f8f diff --git a/crypt.h b/crypt.h index 6f3befdb..85623fba 100644 --- a/crypt.h +++ b/crypt.h @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file crypt.h Public crypto interface. */ @@ -118,16 +114,14 @@ struct stream_cipher_context { }; /** - * Allocate and initialize a stream cipher structure. + * Allocate and initialize an aes_ctr128 stream cipher structure. * * \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, - bool use_aes); +struct stream_cipher *sc_new(const unsigned char *data, int len); /** * Encrypt or decrypt a buffer using a stream cipher.