lib: rsa: verify: rename hw_crypto_rsa() => rsa_mod_exp_hw()
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7164a2001f386b18a0e502be4735be45ed9907f1
This commit is contained in:
parent
6503e80f11
commit
0fb9327257
|
|
@ -69,7 +69,7 @@ static void rsa_convert_big_endian(uint32_t *dst, const uint32_t *src, int len)
|
||||||
dst[i] = fdt32_to_cpu(src[len - 1 - i]);
|
dst[i] = fdt32_to_cpu(src[len - 1 - i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hw_crypto_rsa(struct key_prop *prop, const uint8_t *sig,
|
static int rsa_mod_exp_hw(struct key_prop *prop, const uint8_t *sig,
|
||||||
const uint32_t sig_len, const uint32_t key_len,
|
const uint32_t sig_len, const uint32_t key_len,
|
||||||
uint8_t *output)
|
uint8_t *output)
|
||||||
{
|
{
|
||||||
|
|
@ -169,7 +169,7 @@ static int rsa_verify_key(struct key_prop *prop, const uint8_t *sig,
|
||||||
|
|
||||||
#if !defined(USE_HOSTCC)
|
#if !defined(USE_HOSTCC)
|
||||||
#if CONFIG_IS_ENABLED(FIT_HW_CRYPTO)
|
#if CONFIG_IS_ENABLED(FIT_HW_CRYPTO)
|
||||||
ret = hw_crypto_rsa(prop, sig, sig_len, key_len, buf);
|
ret = rsa_mod_exp_hw(prop, sig, sig_len, key_len, buf);
|
||||||
#else
|
#else
|
||||||
struct udevice *mod_exp_dev;
|
struct udevice *mod_exp_dev;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue