OSDN Git Service

crypto: inside-secure - Fix build error with CONFIG_CRYPTO_SM3=m
authorPascal van Leeuwen <pascalvanl@gmail.com>
Thu, 17 Oct 2019 15:36:28 +0000 (17:36 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Oct 2019 08:47:01 +0000 (19:47 +1100)
commit756497cb7be2fee4e71b77ae140c1537e963e794
tree430d65f55913779df48f6bbd234d857eb83d2bac
parent5b243b6c4aa2114ab84bb8a4b604c892a6ffd391
crypto: inside-secure - Fix build error with CONFIG_CRYPTO_SM3=m

Always take the zero length hash value for SM3 from the local constant
to avoid a reported build error when SM3 is configured to be a module.

Fixes: 0f2bc13181ce ("crypto: inside-secure - Added support for...")
Signed-off-by: Pascal van Leeuwen <pvanleeuwen@verimatrix.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c