#1 2016-11-10 10:40:53

Eric
Member
Registered: 2012-11-26
Posts: 129
Website

SynEcc getRandomNumber + TAESPRNG alternative ?

Would it be possible to add a standard mechanism to provide a custom getRandomNumber ?

Or more generically, a way so that TAESPRNG would not directly be referenced everywhere in SynCrypto, but only through an indirection, so that a custom PRNG can be used instead?

Currently it can be hacked in by modifying the source, but that is a little bit "dirty".

Uses cases would be to map it straight to OS provided CSPRNG (in cases where that is a requirement), and to xor with other source(s) of randomness in other cases.

Thanks!

Offline

#2 2016-11-23 18:46:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,667
Website

Re: SynEcc getRandomNumber + TAESPRNG alternative ?

I've added a MainAESPRNG global variable.
See http://synopse.info/fossil/info/7a2266e193

And introduced a new TAESPRNGSystem class.
See http://synopse.info/fossil/info/6345cec3bc

Offline

Board footer

Powered by FluxBB