source: vendor/current/lib/crypto/arcfour.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 490 bytes
Line 
1#ifndef ARCFOUR_HEADER_H
2#define ARCFOUR_HEADER_H
3
4#include "../lib/util/data_blob.h"
5
6struct arcfour_state {
7 uint8_t sbox[256];
8 uint8_t index_i;
9 uint8_t index_j;
10};
11
12void arcfour_init(struct arcfour_state *state, const DATA_BLOB *key);
13void arcfour_crypt_sbox(struct arcfour_state *state, uint8_t *data, int len);
14void arcfour_crypt_blob(uint8_t *data, int len, const DATA_BLOB *key);
15void arcfour_crypt(uint8_t *data, const uint8_t keystr[16], int len);
16
17#endif /* ARCFOUR_HEADER_H */
Note: See TracBrowser for help on using the repository browser.