Skip to contentSkip to conversation

2.4.7: random.c - potential security problem

DISCUSSION Ulrich Windl 1 participant 1 message Aug 10, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · On 10 Aug 2001, at 7:03, [email protected] wrote:

The test is "if ((t - rekey_time) > REKEY_INTERVAL)", where rekey_time is *unsigned*.

Thus, if t ever drops below rekey_time (large backward time jump), the difference will be a large number and it will be rekeyed.

Thanks,

first at school they try to teach you about negative numbers, then with computers you have to forget about them again. Sorry abou the confusion, I never felt save with type promotion rules in C.

Quoted 4 lines

Setting the time back by a small amount, less than REKEY_INTERVAL, can stretch the time, but it's hard to think if a reasonable application where that will happen often enough in a row to seriously stretch the rekey interval.

Yes!

Ulrich