hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi-hdcp.c
....@@ -13,7 +13,6 @@
1313 */
1414
1515 #include <linux/clk.h>
16
-#include <linux/cryptohash.h>
1716 #include <linux/delay.h>
1817 #include <linux/err.h>
1918 #include <linux/hdmi.h>
....@@ -25,6 +24,7 @@
2524 #include <linux/of_device.h>
2625 #include <linux/spinlock.h>
2726 #include <linux/soc/rockchip/rk_vendor_storage.h>
27
+#include <crypto/sha.h>
2828 #include <drm/bridge/dw_hdmi.h>
2929
3030 #include "dw-hdmi.h"
....@@ -149,14 +149,14 @@
149149 for (i = 0; i < sizeof(sha->mlength); i++)
150150 sha->mlength[i] = 0;
151151
152
- sha_init(sha->mdigest);
152
+ sha1_init(sha->mdigest);
153153 }
154154
155155 static void sha_processblock(struct sha_t *sha)
156156 {
157
- u32 array[SHA_WORKSPACE_WORDS];
157
+ u32 array[SHA1_WORKSPACE_WORDS];
158158
159
- sha_transform(sha->mdigest, sha->mblock, array);
159
+ sha1_transform(sha->mdigest, sha->mblock, array);
160160 sha->mindex = 0;
161161 }
162162