]> 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)
commit0b8e6d8f36025513b9bd3671576fe5453baab5d4
treede5222d19c10023d866d9e59fec731267df9ae2d
parent2cd58def178bf2782d7d8dbeb80c0d1e654f6208
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