crypto: inside-secure/eip93 - acquire lock on eip93_put_descriptor hashIn the EIP93 HASH functions, the eip93_put_descriptor is called withoutacquiring lock. This is problematic when multiple thre
crypto: inside-secure/eip93 - acquire lock on eip93_put_descriptor hashIn the EIP93 HASH functions, the eip93_put_descriptor is called withoutacquiring lock. This is problematic when multiple thread execute hashoperations.Correctly acquire ring write lock on calling eip93_put_descriptor toprevent concurrent access and mess with the ring pointers.Fixes: 9739f5f93b78 ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")Reported-by: Herbert Xu <[email protected]>Signed-off-by: Christian Marangi <[email protected]>Signed-off-by: Herbert Xu <[email protected]>
show more ...
crypto: inside-secure/eip93 - Correctly handle return of for sg_nents_for_lenFix smatch warning for sg_nents_for_len return value in Inside SecureEIP93 driver.The return value of sg_nents_for_le
crypto: inside-secure/eip93 - Correctly handle return of for sg_nents_for_lenFix smatch warning for sg_nents_for_len return value in Inside SecureEIP93 driver.The return value of sg_nents_for_len was assigned to an u32 and theerror was ignored and converted to a positive integer.Rework the code to correctly handle the error from sg_nents_for_len tomute smatch warning.Fixes: 9739f5f93b78 ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")Reported-by: Dan Carpenter <[email protected]>Signed-off-by: Christian Marangi <[email protected]>Signed-off-by: Herbert Xu <[email protected]>
crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine supportAdd support for the Inside Secure SafeXcel EIP-93 Crypto Engine used onMediatek MT7621 SoC and new Airoha SoC.EIP-93 IP sup
crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine supportAdd support for the Inside Secure SafeXcel EIP-93 Crypto Engine used onMediatek MT7621 SoC and new Airoha SoC.EIP-93 IP supports AES/DES/3DES ciphers in ECB/CBC and CTR modes as well asauthenc(HMAC(x), cipher(y)) using HMAC MD5, SHA1, SHA224 and SHA256.EIP-93 provide regs to signal support for specific chipers and thedriver dynamically register only the supported one by the chip.Signed-off-by: Richard van Schagen <[email protected]>Co-developed-by: Christian Marangi <[email protected]>Signed-off-by: Christian Marangi <[email protected]>Signed-off-by: Herbert Xu <[email protected]>