crypto: msm: Add support for HW key
OEM specific HW key (primary hardware key) is XPU protected by trustzone and is not accessible by HLOS. Only the Qualcomm specific HW key (secondary key) is made available to HLOS. This patch removes access to OEM specific HW key and replaces with the QC HW KEY. Change-Id: I7a22218c4673c57d385eaaa8d445a93e7bc300f6 Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
This commit is contained in:
parent
78770fa848
commit
3cc48333a5
|
@ -250,7 +250,7 @@ static int _ce_setup_hash(struct qce_device *pce_dev,
|
|||
|
||||
pce = cmdlistinfo->go_proc;
|
||||
if (i == authk_size_in_word) {
|
||||
pce->addr = (uint32_t)(CRYPTO_GOPROC_OEM_KEY_REG +
|
||||
pce->addr = (uint32_t)(CRYPTO_GOPROC_QC_KEY_REG +
|
||||
pce_dev->phy_iobase);
|
||||
} else {
|
||||
pce->addr = (uint32_t)(CRYPTO_GOPROC_REG +
|
||||
|
@ -434,7 +434,7 @@ static int _ce_setup_cipher(struct qce_device *pce_dev, struct qce_req *creq,
|
|||
pce = cmdlistinfo->go_proc;
|
||||
if (i == enck_size_in_word) {
|
||||
use_hw_key = true;
|
||||
pce->addr = (uint32_t)(CRYPTO_GOPROC_OEM_KEY_REG +
|
||||
pce->addr = (uint32_t)(CRYPTO_GOPROC_QC_KEY_REG +
|
||||
pce_dev->phy_iobase);
|
||||
} else {
|
||||
pce->addr = (uint32_t)(CRYPTO_GOPROC_REG +
|
||||
|
|
Loading…
Reference in New Issue