c37b9dcfca
Versions are incompatible due to different address formats and differing message compression!
24 lines
538 B
C
24 lines
538 B
C
/*
|
|
prg.h version 20160210
|
|
Andreas Hülsing
|
|
Joost Rijneveld
|
|
Public domain.
|
|
*/
|
|
|
|
#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, unsigned int key_len);
|
|
|
|
/**
|
|
* Generates n output bytes using n-byte key and hash address addr and places them in r.
|
|
*
|
|
*/
|
|
void prg_with_counter(unsigned char *r, const unsigned char *key, unsigned int n, const unsigned char addr[16]);
|
|
#endif
|