]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: api - Introduce notifier for new crypto algorithms
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 30 Aug 2018 15:00:14 +0000 (11:00 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Sep 2018 03:37:04 +0000 (11:37 +0800)
commitcccc1c9e4d02e494d46ea1089c2bf6b59ba31105
treeb51a09a36977e0b3c96a290c1bcb053963b6d5f5
parent8b07459fed6c3e17464ffd05f20b7bd3d15b63d1
crypto: api - Introduce notifier for new crypto algorithms

Introduce a facility that can be used to receive a notification
callback when a new algorithm becomes available. This can be used by
existing crypto registrations to trigger a switch from a software-only
algorithm to a hardware-accelerated version.

A new CRYPTO_MSG_ALG_LOADED state is introduced to the existing crypto
notification chain, and the register/unregister functions are exported
so they can be called by subsystems outside of crypto.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Suggested-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
crypto/algboss.c
crypto/internal.h
include/crypto/algapi.h