Re: [Discussion] HKDF

From: Date: Sat, 04 Feb 2017 06:29:54 +0000
Subject: Re: [Discussion] HKDF
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-98170@lists.php.net to get a copy of this message
On Sat, Feb 4, 2017 at 2:48 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > string hash_hkdf(string algo, string ikm [, int length = 0, string info = > '', string salt = '']) I copied and pasted this proto from the source. It's wrong. Correct one is string hash_hkdf(string algo, string ikm [, int length = 0 [, string info = '' [, string salt = '']]]) so my proposal is string hash_hkdf(string algo, string ikm, string salt [, string info = '' [, int length = 0]]) - Set salt to NULL if salt cannot be used, reject null string as invalid. I will change my mind if there is convincing logical reason(s) not to do this. I suppose there isn't. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#98170) next »