]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Only enable algorithms advertised by the hardware
authorPascal van Leeuwen <pascalvanl@gmail.com>
Fri, 30 Aug 2019 07:40:54 +0000 (09:40 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Sep 2019 04:37:01 +0000 (14:37 +1000)
commit73941a0a7e7367a33e652e91e1152e4de7cf37a8
tree0de1abd004dae25cdab4444ca9557b0b392784f8
parent8570310e4bed6a56b68ff1cc0edd0ecafcc5f2ca
crypto: inside-secure - Only enable algorithms advertised by the hardware

This patch probes the supported algorithms from the hardware and only
registers the ones that the hardware actually supports. This is necessary
because this is a generic driver supposed to run on a wide variety of
engines, which may or may not implement certain algorithms.

Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c