--- pgp/src/random.h 2018/04/24 16:41:19 1.1.1.5 +++ pgp/src/random.h 2018/04/24 16:44:48 1.1.1.7 @@ -1,16 +1,17 @@ -#include "usuals.h" - -int cryptRandOpen(void); -void cryptRandWash(byte const key[16]); -byte cryptRandByte(void); -void cryptRandSave(byte const key[16], byte const iv[8]); -void cryptRandCreate(void); - -unsigned trueRandEvent(int event); -void trueRandFlush(void); -void trueRandConsume(unsigned count); -void trueRandAccumLater(unsigned bitcount); -void trueRandAccum(unsigned count); -int trueRandByte(void); - -int getstring(char *strbuf, unsigned maxlen, int echo); +#include "usuals.h" + +struct IdeaCfbContext; +int cryptRandOpen(struct IdeaCfbContext *); +byte cryptRandByte(void); +void cryptRandInit(struct IdeaCfbContext *); +int cryptRandWriteFile(char const *, struct IdeaCfbContext *, unsigned); +void cryptRandSave(struct IdeaCfbContext *); + +unsigned trueRandEvent(int event); +void trueRandFlush(void); +void trueRandConsume(unsigned count); +void trueRandAccumLater(unsigned bitcount); +void trueRandAccum(unsigned count); +int trueRandByte(void); + +int getstring(char *strbuf, unsigned maxlen, int echo);