|
Last change
on this file since 707 was 414, checked in by Herwig Bauernfeind, 16 years ago |
|
Samba 3.5.0: Initial import
|
|
File size:
454 bytes
|
| Line | |
|---|
| 1 | #ifndef ARCFOUR_HEADER_H
|
|---|
| 2 | #define ARCFOUR_HEADER_H
|
|---|
| 3 |
|
|---|
| 4 | struct arcfour_state {
|
|---|
| 5 | uint8_t sbox[256];
|
|---|
| 6 | uint8_t index_i;
|
|---|
| 7 | uint8_t index_j;
|
|---|
| 8 | };
|
|---|
| 9 |
|
|---|
| 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);
|
|---|
| 14 |
|
|---|
| 15 | #endif /* ARCFOUR_HEADER_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.