~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to lib/crypto/arcfour.h

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 */