]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit76b080d99c00adde9843878174cf171f7fe0b658
treede5222d19c10023d866d9e59fec731267df9ae2d
parente559281042126d47afaedba96b524031ec8b763c
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