提交 19b14e7e 编写于 作者: L LABBE Corentin 提交者: Herbert Xu

crypto: s390/sha - replace raw value by their coresponding define

SHA_MAX_STATE_SIZE is just the number of u32 word for SHA512.
So replace the raw value "16" by their meaning (SHA512_DIGEST_SIZE / 4)
Signed-off-by: NLABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 35351988
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <crypto/sha.h> #include <crypto/sha.h>
/* must be big enough for the largest SHA variant */ /* must be big enough for the largest SHA variant */
#define SHA_MAX_STATE_SIZE 16 #define SHA_MAX_STATE_SIZE (SHA512_DIGEST_SIZE / 4)
#define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE
struct s390_sha_ctx { struct s390_sha_ctx {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册