You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 rivejä
484 B

  1. #ifndef PRG_H
  2. #define PRG_H
  3. #include <stdlib.h>
  4. /**
  5. * Generates rlen output bytes using key_len-byte key and places them in r.
  6. *
  7. */
  8. void prg(unsigned char *r, unsigned long long rlen, const unsigned char *key, uint key_len);
  9. /**
  10. * Generates rlen output bytes using key_len-byte key and hash address addr and places them in r.
  11. *
  12. */
  13. void prg_with_counter(unsigned char *r, unsigned long long rlen, const unsigned char *key, uint key_len, const unsigned char addr[16]);
  14. #endif