Re: [PATCH v4 2/4] crypto: support rsa-pss encoding

2021-04-08 Thread kernel test robot
Hi Hongbo, Thank you for the patch! Yet something to improve: [auto build test ERROR on cryptodev/master] [also build test ERROR on crypto/master security/next-testing linus/master v5.12-rc6 next-20210407] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submittin

[PATCH v4 2/4] crypto: support rsa-pss encoding

2021-04-07 Thread Hongbo Li
This patch add the support of rsa-pss encoding which is described in RFC8017 section 8.1 and section 9.1. Similar to rsa-pkcs1, we create a pss template. Parse pss related params mgfhash and saltlen in set_pub_key. Implement a mgf function according to RFC8017 section B.2. Implement the verificat