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.

23 regels
546 B

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