diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-08-20 07:59:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:33:37 -0500 |
commit | 684c824e9ac51ee2d6b748973757697a8ead2634 (patch) | |
tree | 5db08a22f4d5ae8707a44ce06e910ed7742dca1b /source4/lib/crypto/crypto.h | |
parent | 6baa6e0aa8dfd539a4fa3185a055eb8b1f4896c0 (diff) | |
download | samba-684c824e9ac51ee2d6b748973757697a8ead2634.tar.gz samba-684c824e9ac51ee2d6b748973757697a8ead2634.tar.bz2 samba-684c824e9ac51ee2d6b748973757697a8ead2634.zip |
r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
(This used to be commit ca6cf462708810637544d4b4bef0f404fb89a002)
Diffstat (limited to 'source4/lib/crypto/crypto.h')
-rw-r--r-- | source4/lib/crypto/crypto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/crypto/crypto.h b/source4/lib/crypto/crypto.h index 8cf4b21aae..19457f60dc 100644 --- a/source4/lib/crypto/crypto.h +++ b/source4/lib/crypto/crypto.h @@ -28,3 +28,9 @@ struct arcfour_state { 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); + |