.. | .. |
---|
13 | 13 | */ |
---|
14 | 14 | |
---|
15 | 15 | #include <linux/clk.h> |
---|
16 | | -#include <linux/cryptohash.h> |
---|
17 | 16 | #include <linux/delay.h> |
---|
18 | 17 | #include <linux/err.h> |
---|
19 | 18 | #include <linux/hdmi.h> |
---|
.. | .. |
---|
25 | 24 | #include <linux/of_device.h> |
---|
26 | 25 | #include <linux/spinlock.h> |
---|
27 | 26 | #include <linux/soc/rockchip/rk_vendor_storage.h> |
---|
| 27 | +#include <crypto/sha.h> |
---|
28 | 28 | #include <drm/bridge/dw_hdmi.h> |
---|
29 | 29 | |
---|
30 | 30 | #include "dw-hdmi.h" |
---|
.. | .. |
---|
149 | 149 | for (i = 0; i < sizeof(sha->mlength); i++) |
---|
150 | 150 | sha->mlength[i] = 0; |
---|
151 | 151 | |
---|
152 | | - sha_init(sha->mdigest); |
---|
| 152 | + sha1_init(sha->mdigest); |
---|
153 | 153 | } |
---|
154 | 154 | |
---|
155 | 155 | static void sha_processblock(struct sha_t *sha) |
---|
156 | 156 | { |
---|
157 | | - u32 array[SHA_WORKSPACE_WORDS]; |
---|
| 157 | + u32 array[SHA1_WORKSPACE_WORDS]; |
---|
158 | 158 | |
---|
159 | | - sha_transform(sha->mdigest, sha->mblock, array); |
---|
| 159 | + sha1_transform(sha->mdigest, sha->mblock, array); |
---|
160 | 160 | sha->mindex = 0; |
---|
161 | 161 | } |
---|
162 | 162 | |
---|