| /rk3399_rockchip-uboot/lib/rsa/ |
| H A D | rsa-verify.c | 97 rsa_key rsa_key; in rsa_mod_exp_hw() local 103 rsa_key.algo = CRYPTO_RSA4096; in rsa_mod_exp_hw() 108 rsa_key.algo = CRYPTO_RSA2048; in rsa_mod_exp_hw() 110 rsa_key.n = malloc(key_len); in rsa_mod_exp_hw() 111 rsa_key.e = malloc(key_len); in rsa_mod_exp_hw() 112 rsa_key.c = malloc(key_len); in rsa_mod_exp_hw() 113 if (!rsa_key.n || !rsa_key.e || !rsa_key.c) in rsa_mod_exp_hw() 116 rsa_convert_big_endian(rsa_key.n, (uint32_t *)prop->modulus, in rsa_mod_exp_hw() 118 rsa_convert_big_endian(rsa_key.e, (uint32_t *)prop->public_exponent_BN, in rsa_mod_exp_hw() 121 rsa_convert_big_endian(rsa_key.c, (uint32_t *)prop->factor_c, in rsa_mod_exp_hw() [all …]
|
| H A D | rsa-sign.c | 735 char *rsa_key; in rsa_set_key_hash() local 740 rsa_key = calloc(key_len * 3, sizeof(char)); in rsa_set_key_hash() 741 if (!rsa_key) in rsa_set_key_hash() 751 n = rsa_key; in rsa_set_key_hash() 752 e = rsa_key + CONFIG_RSA_N_SIZE; in rsa_set_key_hash() 757 c = rsa_key + CONFIG_RSA_N_SIZE + CONFIG_RSA_E_SIZE; in rsa_set_key_hash() 762 ret = calculate_hash(rsa_key, key_len * 3, csum_algo, value, &value_len); in rsa_set_key_hash() 773 np = rsa_key + CONFIG_RSA_N_SIZE + CONFIG_RSA_E_SIZE; in rsa_set_key_hash() 779 ret = calculate_hash(rsa_key, CONFIG_RSA_N_SIZE + CONFIG_RSA_E_SIZE + CONFIG_RSA_C_SIZE, in rsa_set_key_hash() 789 if (rsa_key) in rsa_set_key_hash() [all …]
|
| /rk3399_rockchip-uboot/lib/avb/libavb_atx/ |
| H A D | avb_atx_validate.c | 88 rsa_key rsa_key; in verify_permanent_attributes() local 113 memset(&rsa_key, 0x00, sizeof(rsa_key)); in verify_permanent_attributes() 114 rsa_key.algo = CRYPTO_RSA2048; in verify_permanent_attributes() 115 rsa_key.n = (u32 *)&pub_key.rsa_n; in verify_permanent_attributes() 116 rsa_key.e = (u32 *)&pub_key.rsa_e; in verify_permanent_attributes() 118 rsa_key.c = (u32 *)&pub_key.rsa_c; in verify_permanent_attributes() 120 ret = crypto_rsa_verify(dev, &rsa_key, (u8 *)rsa_hash_revert, (u8 *)rsaResult_temp); in verify_permanent_attributes()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | crypto.c | 600 rsa_key rsa_key; in test_rsa_result() local 633 memset(&rsa_key, 0x00, sizeof(rsa_key)); in test_rsa_result() 634 rsa_key.algo = test_data->algo; in test_rsa_result() 635 rsa_key.n = (u32 *)test_data->n; in test_rsa_result() 636 rsa_key.e = (u32 *)test_data->d; in test_rsa_result() 638 rsa_key.c = (u32 *)test_data->c; in test_rsa_result() 642 ret = crypto_rsa_verify(dev, &rsa_key, in test_rsa_result() 654 memset(&rsa_key, 0x00, sizeof(rsa_key)); in test_rsa_result() 657 rsa_key.algo = test_data->algo; in test_rsa_result() 658 rsa_key.n = (u32 *)test_data->n; in test_rsa_result() [all …]
|
| /rk3399_rockchip-uboot/include/ |
| H A D | crypto.h | 72 } rsa_key; typedef 110 int (*rsa_verify)(struct udevice *dev, rsa_key *ctx, 232 int crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, u8 *sign, u8 *output);
|
| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_v1.c | 211 static int rockchip_crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, in rockchip_crypto_rsa_verify() 269 static int rockchip_crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, in rockchip_crypto_rsa_verify()
|
| H A D | crypto_ce.c | 948 static int rockchip_crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, in rockchip_crypto_rsa_verify()
|
| H A D | crypto_v2.c | 1456 static int rockchip_crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, in rockchip_crypto_rsa_verify()
|
| /rk3399_rockchip-uboot/drivers/crypto/ |
| H A D | crypto-uclass.c | 281 int crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, u8 *sign, u8 *output) in crypto_rsa_verify()
|
| /rk3399_rockchip-uboot/scripts/ |
| H A D | avbtool.py | 3224 rsa_key = RSAPublicKey(key_path) 3226 binary_signature = rsa_key.sign(algorithm_name, data_to_sign, 3874 rsa_key = RSAPublicKey(authority_key_path) 3876 signature = rsa_key.sign(algorithm_name, signed_data, signing_helper, 3981 rsa_key = RSAPublicKey(unlock_key_path) 3983 signature = rsa_key.sign(algorithm_name, challenge, signing_helper,
|