17 linhas
484 B
C
17 linhas
484 B
C
|
#ifndef PRG_H
|
||
|
#define PRG_H
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
/**
|
||
|
* Generates rlen output bytes using key_len-byte key and places them in r.
|
||
|
*
|
||
|
*/
|
||
|
void prg(unsigned char *r, unsigned long long rlen, const unsigned char *key, uint key_len);
|
||
|
|
||
|
/**
|
||
|
* Generates rlen output bytes using key_len-byte key and hash address addr and places them in r.
|
||
|
*
|
||
|
*/
|
||
|
void prg_with_counter(unsigned char *r, unsigned long long rlen, const unsigned char *key, uint key_len, const unsigned char addr[16]);
|
||
|
#endif
|