s3: Make smbd aware of permission change of usershare. Since usershare are relatively...
[Samba/bb.git] / lib / crypto / arcfour.h
blob501b3f2fab620b8ec79dde9fc58e2927a3f844b5
1 #ifndef ARCFOUR_HEADER_H
2 #define ARCFOUR_HEADER_H
4 struct arcfour_state {
5 uint8_t sbox[256];
6 uint8_t index_i;
7 uint8_t index_j;
8 };
10 void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key);
11 void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len);
12 void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key);
13 void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len);
15 #endif /* ARCFOUR_HEADER_H */