crypto: akcipher - default implementations for request callbacks
authorVitaly Chikunov <vt@altlinux.org>
Thu, 11 Apr 2019 15:51:13 +0000 (18:51 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:15:01 +0000 (22:15 +0800)
commit78a0324f4a5328088fea9426cfe1d1851276c475
treede5222d19c10023d866d9e59fec731267df9ae2d
parent3c2bc636219fc0c2ea82c8f0d3fb0c9936cf5146
crypto: akcipher - default implementations for request callbacks

Because with the introduction of EC-RDSA and change in workings of RSA
in regard to sign/verify, akcipher could have not all callbacks defined,
check the presence of callbacks in crypto_register_akcipher() and
provide default implementation if the callback is not implemented.

This is suggested by Herbert Xu instead of checking the presence of the
callback on every request.

Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/akcipher.c