diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-24 18:49:58 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-24 18:49:58 +0200 |
commit | f10d8b84159b5708c1dcf854758cdbd18b2bc033 (patch) | |
tree | c62dad9739b010703af94247deed2033fc3a0d74 /lib/crypto/crypto.h | |
parent | d2062ab74f7684f8b6975a7415fac23389851278 (diff) | |
download | samba-f10d8b84159b5708c1dcf854758cdbd18b2bc033.tar.gz samba-f10d8b84159b5708c1dcf854758cdbd18b2bc033.tar.bz2 samba-f10d8b84159b5708c1dcf854758cdbd18b2bc033.zip |
Add separate header file for arcfour.
Diffstat (limited to 'lib/crypto/crypto.h')
-rw-r--r-- | lib/crypto/crypto.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/crypto/crypto.h b/lib/crypto/crypto.h index 9cb16ad344..0a43cbe7d4 100644 --- a/lib/crypto/crypto.h +++ b/lib/crypto/crypto.h @@ -23,15 +23,6 @@ #include "../lib/crypto/hmacmd5.h" #include "../lib/crypto/sha256.h" #include "../lib/crypto/hmacsha256.h" +#include "../lib/crypto/arcfour.h" -struct arcfour_state { - uint8_t sbox[256]; - uint8_t index_i; - uint8_t index_j; -}; - -void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key); -void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len); -void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key); -void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len); |