
1 Aug
2014
1 Aug
'14
3:20 a.m.
On 01.08.2014 08:59, Friedrich Wiemer wrote:
A comparision would be interesting though. I'm aware of constant time implementations of cryptographic functions to reduce timing issues, but these are often coded in C or ASM - I have no clue if this would be possible in a functional language, as the compiler has to know not to optimize for short cuts or anything in the code?
Well, how about something like inConstantTime :: timeBudget -> (functionToPerform :: CryptoResult) -> IO (Maybe CryptoResult)