lib: avb: the rsa_key.c is used when enable CONFIG_ROCKCHIP_CRYPTO_V1

Change-Id: If266df70d0969d5a3556e505f39b853cf818a338
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
Jason Zhu 2019-07-02 21:47:56 +08:00 committed by Jianhong Chen
parent 9f879ce995
commit 63a580aed3
1 changed files with 2 additions and 0 deletions

View File

@ -109,7 +109,9 @@ static bool verify_permanent_attributes(
rsa_key.algo = CRYPTO_RSA2048;
rsa_key.n = (u32 *)&pub_key.rsa_n;
rsa_key.e = (u32 *)&pub_key.rsa_e;
#ifdef CONFIG_ROCKCHIP_CRYPTO_V1
rsa_key.c = (u32 *)&pub_key.rsa_c;
#endif
ret = crypto_rsa_verify(dev, &rsa_key, (u8 *)rsa_hash_revert, (u8 *)rsaResult_temp);
if (ret) {
avb_error("Hardware verify error!\n");