s4:auth Move struct auth_usersupplied_info to a common location
[samba.git] / lib / crypto / arcfour.h
1 #ifndef ARCFOUR_HEADER_H
2 #define ARCFOUR_HEADER_H
3
4 #include "../lib/util/data_blob.h"
5
6 struct arcfour_state {
7         uint8_t sbox[256];
8         uint8_t index_i;
9         uint8_t index_j;
10 };
11
12 void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key);
13 void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len);
14 void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key);
15 void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len);
16
17 #endif /* ARCFOUR_HEADER_H */