Re: [RFC PATCH] crypto: ecdh: fix concurrency on ecdh_ctx

2017-06-28 Thread Tudor Ambarus
Hi, On 22.06.2017 14:03, Tudor Ambarus wrote: ecdh_ctx contained static allocated data for the shared secret, for the public and private key. When talking about shared secret and public key, they were doomed to concurrency issues because they could be shared by multiple crypto requests. The

[RFC PATCH] crypto: ecdh: fix concurrency on ecdh_ctx

2017-06-22 Thread Tudor Ambarus
ecdh_ctx contained static allocated data for the shared secret, for the public and private key. When talking about shared secret and public key, they were doomed to concurrency issues because they could be shared by multiple crypto requests. The requests were generating specific data to the same