RE: PING: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm

2022-03-01 Thread Gonglei (Arei) via Virtualization
er...@vger.kernel.org; helei.si...@bytedance.com; > herb...@gondor.apana.org.au; kernel test robot > Subject: PING: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm > > PING! > > Hi, Lei > I also take a look at other crypto drivers qat/ccp/hisilicon, they separate

PING: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm

2022-03-01 Thread zhenwei pi
PING! Hi, Lei I also take a look at other crypto drivers qat/ccp/hisilicon, they separate akcipher/skcipher algo. If you consider that reusing virtio_crypto_algs_register/unregister seems better, I will try to merge them into a single function. On 2/23/22 6:17 PM, zhenwei pi wrote: On 2/18/22

Re: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm

2022-02-23 Thread zhenwei pi
On 2/18/22 11:12 AM, zhenwei pi wrote: +void virtio_crypto_akcipher_algs_unregister(struct virtio_crypto +*vcrypto) { +    int i = 0; + +    mutex_lock(_lock); + +    for (i = 0; i < ARRAY_SIZE(virtio_crypto_akcipher_algs); i++) { +    uint32_t service =

Re: RE: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm

2022-02-17 Thread zhenwei pi
+void virtio_crypto_akcipher_algs_unregister(struct virtio_crypto +*vcrypto) { + int i = 0; + + mutex_lock(_lock); + + for (i = 0; i < ARRAY_SIZE(virtio_crypto_akcipher_algs); i++) { + uint32_t service = virtio_crypto_akcipher_algs[i].service; +

RE: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm

2022-02-17 Thread Gonglei (Arei) via Virtualization
..@vger.kernel.org; > helei.si...@bytedance.com; herb...@gondor.apana.org.au; zhenwei pi > ; kernel test robot > Subject: [PATCH v2 3/3] virtio-crypto: implement RSA algorithm > > Support rsa & pkcs1pad(rsa,sha1) with priority 150. > > Test with QEMU built-in backend,

[PATCH v2 3/3] virtio-crypto: implement RSA algorithm

2022-02-11 Thread zhenwei pi
Support rsa & pkcs1pad(rsa,sha1) with priority 150. Test with QEMU built-in backend, it works fine. 1, The self-test framework of crypto layer works fine in guest kernel 2, Test with Linux guest(with asym support), the following script test(note that pkey_XXX is supported only in a newer version