projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move base64 implementation to own file.
[paraslash.git]
/
crypt.h
diff --git
a/crypt.h
b/crypt.h
index 1406197d0c6cd64c14cf1b30d8ef281417903638..9be7a23e6da4d6d1796d4d98da7d8280152c6c2a 100644
(file)
--- a/
crypt.h
+++ b/
crypt.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2005
-2013 Andre Noll <maan@systemlinux.org
>
+ * Copyright (C) 2005
Andre Noll <maan@tuebingen.mpg.de
>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
*
* 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 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.
*/
*
* \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.
/**
* Encrypt or decrypt a buffer using a stream cipher.