Re: [openssl-users] EC_KEY_check_key

2018-11-05 Thread Jakob Bohm via openssl-users
On 05/11/2018 07:20, Thulasi Goriparthi wrote: For such tests, it's always better safe than sorry. Not sure, if repeating the same test (or the test of the same value) would add any safety. The safety is in avoiding creating some situation where its tested zero times because each test

Re: [openssl-users] EC_KEY_check_key

2018-11-04 Thread Thulasi Goriparthi
>> For such tests, it's always better safe than sorry. Not sure, if repeating the same test (or the test of the same value) would add any safety. Thanks, Thulasi. On Fri, 2 Nov 2018 at 16:53, Jakob Bohm via openssl-users wrote: > > On 02/11/2018 08:50, Thulasi Goriparthi wrote: > > Hi, > > > >

Re: [openssl-users] EC_KEY_check_key

2018-11-02 Thread Jakob Bohm via openssl-users
On 02/11/2018 08:50, Thulasi Goriparthi wrote: Hi, I am going through the checks done by EC_KEY_check_key method. I see the following checks in order. 1. Is point at infinity? - reject. 2. Is point not on curve? reject. 3. Is point not in the primary subgroup? reject. 4. If priv key(scalar)

[openssl-users] EC_KEY_check_key

2018-11-02 Thread Thulasi Goriparthi
Hi, I am going through the checks done by EC_KEY_check_key method. I see the following checks in order. 1. Is point at infinity? - reject. 2. Is point not on curve? reject. 3. Is point not in the primary subgroup? reject. 4. If priv key(scalar) available, then check if scalar * G != point. If