您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

24 行
538 B

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