File: crypton_rc4.h

package info (click to toggle)
haskell-crypton 1.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,548 kB
  • sloc: haskell: 26,764; ansic: 22,294; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef CRYPTON_RC4_H
# define CRYPTON_RC4_H

struct rc4_ctx
{
	uint8_t state[256];
	uint32_t i;
	uint32_t j;
};

void crypton_rc4_init(uint8_t * key, uint32_t keylen, struct rc4_ctx *ctx);
void crypton_rc4_combine(struct rc4_ctx *ctx, uint8_t *input, uint32_t len, uint8_t *output);

#endif