OSDN Git Service

crypto: rsa-pkcs1pad: Allow hash to be optional [ver #2]
authorDenis Kenzior <denkenz@gmail.com>
Tue, 9 Oct 2018 16:47:53 +0000 (17:47 +0100)
committerJames Morris <james.morris@microsoft.com>
Fri, 26 Oct 2018 08:30:46 +0000 (09:30 +0100)
commitb3a8c8a5ebb5b4c3eb7b104364e63c453cc85f14
tree2504542402fb696882faa4ef09cc56a9f81be9dc
parent3c58b2362ba828ee2970c66c6a6fd7b04fde4413
crypto: rsa-pkcs1pad: Allow hash to be optional [ver #2]

The original pkcs1pad implementation allowed to pad/unpad raw RSA
output.  However, this has been taken out in commit:
commit c0d20d22e0ad ("crypto: rsa-pkcs1pad - Require hash to be present")

This patch restored this ability as it is needed by the asymmetric key
implementation.

Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
crypto/rsa-pkcs1pad.c