Re: [RFC] Timing attack safe string comparison function

From: Date: Sun, 22 Dec 2013 23:55:02 +0000
Subject: Re: [RFC] Timing attack safe string comparison function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-70841@lists.php.net to get a copy of this message
Hi Rouven,

On Mon, Dec 23, 2013 at 2:08 AM, Rouven Weßling <me@rouvenwessling.de>wrote:

> I'd like to propose this RFC to introduce a time-constant string
> comparison function: https://wiki.php.net/rfc/timing_attack
>
> I will not open the voting before January 7 to account for ho
>

As you mentioned in code, users should not use when known or user supplied
string
is null.

How about add E_NOTICE error for that case?
If user shouldn't then we are better to warn them.

Comparison is good since it always does the same operation based on user
supplied
string. (Unless compiler does optimizations that I don't expect)

Regards,

--
Yasuo Ohgaki
yohgaki@ohgaki.net


Thread (40 messages)

« previous php.internals (#70841) next »