root/lib/crypto/arcfour.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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 */

/* [<][>][^][v][top][bottom][index][help] */