RE: [PATCH 1/1] crypto: If two strings are exact match, they must have same length.

2017-03-27 Thread Ming Ma (mingma)
Sent: Tuesday, March 21, 2017 8:01 PM To: Ming Ma (mingma) Cc: da...@davemloft.net; linux-cry...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] crypto: If two strings are exact match, they must have same length. On Tue, Mar 21, 2017 at 04:40:40PM -0500, Ming Ma wrote: > W

Re: [PATCH 1/1] crypto: If two strings are exact match, they must have same length.

2017-03-21 Thread Herbert Xu
On Tue, Mar 21, 2017 at 04:40:40PM -0500, Ming Ma wrote: > When both "crct10dif-pclmul" algorithm and "crct10dif-generic" algorithm > exist in crypto_alg_list, "crct10dif-pclmul" should be selected, since it > has higher priority than "crct10dif-generic". However, both algorithms > have the same cr

[PATCH 1/1] crypto: If two strings are exact match, they must have same length.

2017-03-21 Thread Ming Ma
When both "crct10dif-pclmul" algorithm and "crct10dif-generic" algorithm exist in crypto_alg_list, "crct10dif-pclmul" should be selected, since it has higher priority than "crct10dif-generic". However, both algorithms have the same cra_name "crct10dif". If we use "crct10dif" to find a matched algor