mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
crypto: rockchip: v2: ahash fix hash_algo2name setting error.
HASH_ALGO_SHA224 was misspelled as HASH_ALGO_SHA256. In hMAC-224 algorithm, key digest errors occur when the key length exceeds the blocksize length. Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com> Change-Id: I38c20028b390f32fa7326e4b4e4adeb43902f2e0
This commit is contained in:
@@ -38,7 +38,7 @@ static const u32 hash_algo2bc[] = {
|
||||
const char *hash_algo2name[] = {
|
||||
[HASH_ALGO_MD5] = "md5",
|
||||
[HASH_ALGO_SHA1] = "sha1",
|
||||
[HASH_ALGO_SHA256] = "sha224",
|
||||
[HASH_ALGO_SHA224] = "sha224",
|
||||
[HASH_ALGO_SHA256] = "sha256",
|
||||
[HASH_ALGO_SHA384] = "sha384",
|
||||
[HASH_ALGO_SHA512] = "sha512",
|
||||
|
||||
Reference in New Issue
Block a user