/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/ |
D | cc3xx_ec.c | 30 static void set_modulus_to_curve_modulus(cc3xx_ec_curve_t *curve) in set_modulus_to_curve_modulus() argument 32 cc3xx_lowlevel_pka_set_modulus(curve->field_modulus, false, CC3XX_PKA_REG_NP); in set_modulus_to_curve_modulus() 36 static void set_modulus_to_curve_order(cc3xx_ec_curve_t *curve) in set_modulus_to_curve_order() argument 38 cc3xx_lowlevel_pka_set_modulus(curve->order, false, CC3XX_PKA_REG_NP); in set_modulus_to_curve_order() 42 static bool validate_point(cc3xx_ec_curve_t *curve, in validate_point() argument 61 switch (curve->type) { in validate_point() 63 return cc3xx_lowlevel_ec_weierstrass_validate_point(curve, p); in validate_point() 69 static cc3xx_err_t allocate_point_from_data(cc3xx_ec_curve_t *curve, in allocate_point_from_data() argument 81 return validate_point(curve, res) ? CC3XX_ERR_SUCCESS in allocate_point_from_data() 85 cc3xx_err_t cc3xx_lowlevel_ec_allocate_point_from_data(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_allocate_point_from_data() argument [all …]
|
D | cc3xx_ecdsa.c | 25 cc3xx_ec_curve_t curve; in cc3xx_lowlevel_ecdsa_genkey() local 30 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdsa_genkey() 35 if (private_key_len < curve.modulus_size) { in cc3xx_lowlevel_ecdsa_genkey() 49 cc3xx_lowlevel_pka_read_reg_swap_endian(private_key_reg, private_key, curve.modulus_size); in cc3xx_lowlevel_ecdsa_genkey() 52 cc3xx_lowlevel_pka_set_to_random(private_key_reg, curve.modulus_size * 8); in cc3xx_lowlevel_ecdsa_genkey() 54 *private_key_size = curve.modulus_size; in cc3xx_lowlevel_ecdsa_genkey() 68 cc3xx_ec_curve_t curve; in cc3xx_lowlevel_ecdsa_getpub() local 74 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdsa_getpub() 79 if (private_key_len > curve.modulus_size) { in cc3xx_lowlevel_ecdsa_getpub() 84 if (public_key_x_len < curve.modulus_size) { in cc3xx_lowlevel_ecdsa_getpub() [all …]
|
D | cc3xx_ecdh.c | 25 cc3xx_ec_curve_t curve; in cc3xx_lowlevel_ecdh() local 31 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdh() 36 if (private_key_len > curve.modulus_size) { in cc3xx_lowlevel_ecdh() 41 if (public_key_x_len > curve.modulus_size) { in cc3xx_lowlevel_ecdh() 46 if (public_key_y_len > curve.modulus_size) { in cc3xx_lowlevel_ecdh() 51 if (shared_secret_len < curve.modulus_size) { in cc3xx_lowlevel_ecdh() 61 cc3xx_lowlevel_pka_write_reg_swap_endian(public_key_point.x, public_key_x, curve.modulus_size); in cc3xx_lowlevel_ecdh() 62 cc3xx_lowlevel_pka_write_reg_swap_endian(public_key_point.y, public_key_y, curve.modulus_size); in cc3xx_lowlevel_ecdh() 64 err = cc3xx_lowlevel_ec_multipy_point_by_scalar(&curve, &public_key_point, private_key_reg, in cc3xx_lowlevel_ecdh() 68 cc3xx_lowlevel_pka_read_reg_swap_endian(shared_key_point.x, shared_secret, curve.modulus_size); in cc3xx_lowlevel_ecdh() [all …]
|
D | cc3xx_ec_weierstrass.c | 18 bool cc3xx_lowlevel_ec_weierstrass_validate_point(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_weierstrass_validate_point() argument 33 cc3xx_lowlevel_pka_mod_mul(p->x, curve->param_a, temp); in cc3xx_lowlevel_ec_weierstrass_validate_point() 35 cc3xx_lowlevel_pka_mod_add(equation_right_side, curve->param_b, in cc3xx_lowlevel_ec_weierstrass_validate_point() 41 if (curve->cofactor != 1) { in cc3xx_lowlevel_ec_weierstrass_validate_point() 46 err = cc3xx_lowlevel_ec_weierstrass_multipy_point_by_scalar(curve, p, in cc3xx_lowlevel_ec_weierstrass_validate_point() 47 curve->order, in cc3xx_lowlevel_ec_weierstrass_validate_point() 86 static void double_point(cc3xx_ec_curve_t *curve, cc3xx_ec_point_projective *p, in double_point() argument 103 cc3xx_lowlevel_pka_mod_mul(tmp_m, curve->param_a, tmp_m); in double_point() 134 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_double_point(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_weierstrass_double_point() argument 143 cc3xx_lowlevel_ec_affine_to_jacobian(curve, p, &proj_p); in cc3xx_lowlevel_ec_weierstrass_double_point() [all …]
|
D | cc3xx_ec_weierstrass.h | 31 bool cc3xx_lowlevel_ec_weierstrass_validate_point(cc3xx_ec_curve_t *curve, 49 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_add_points(cc3xx_ec_curve_t *curve, 66 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_double_point(cc3xx_ec_curve_t *curve, 100 cc3xx_ec_curve_t *curve, 132 cc3xx_ec_curve_t *curve,
|
D | cc3xx_ec.h | 100 cc3xx_ec_curve_t *curve); 124 cc3xx_err_t cc3xx_lowlevel_ec_allocate_point_from_data(cc3xx_ec_curve_t *curve, 152 cc3xx_err_t cc3xx_lowlevel_ec_add_points(cc3xx_ec_curve_t *curve, 168 cc3xx_err_t cc3xx_lowlevel_ec_double_point(cc3xx_ec_curve_t *curve, 190 cc3xx_err_t cc3xx_lowlevel_ec_multipy_point_by_scalar(cc3xx_ec_curve_t *curve, 221 cc3xx_ec_curve_t *curve,
|
D | cc3xx_ec_projective_point.h | 69 void cc3xx_lowlevel_ec_affine_to_jacobian(cc3xx_ec_curve_t *curve, 86 void cc3xx_lowlevel_ec_affine_to_jacobian_with_random_z(cc3xx_ec_curve_t *curve, 99 cc3xx_err_t cc3xx_lowlevel_ec_jacobian_to_affine(cc3xx_ec_curve_t *curve,
|
D | cc3xx_ec_projective_point.c | 48 void cc3xx_lowlevel_ec_affine_to_jacobian_with_random_z(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_affine_to_jacobian_with_random_z() argument 53 return cc3xx_lowlevel_ec_affine_to_jacobian(curve, p, res); in cc3xx_lowlevel_ec_affine_to_jacobian_with_random_z() 80 void cc3xx_lowlevel_ec_affine_to_jacobian(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_affine_to_jacobian() argument 90 cc3xx_err_t cc3xx_lowlevel_ec_jacobian_to_affine(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_jacobian_to_affine() argument
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/src/ |
D | cc3xx_psa_key_agreement.c | 37 psa_ecc_family_t curve = PSA_KEY_TYPE_ECC_GET_FAMILY(key_type); in cc3xx_key_agreement() local 45 if (curve == PSA_ECC_FAMILY_MONTGOMERY && key_bits == 256) { in cc3xx_key_agreement() 59 curve, in cc3xx_key_agreement()
|
D | cc3xx_psa_key_generation.c | 72 psa_ecc_family_t curve = PSA_KEY_TYPE_ECC_GET_FAMILY(key_type); in cc3xx_internal_gen_ecc_wstr_keypair() local 92 err = cc3xx_ecc_psa_domain_to_cc_domain(curve, key_bits, &domainId); in cc3xx_internal_gen_ecc_wstr_keypair() 375 psa_ecc_family_t curve = PSA_KEY_TYPE_ECC_GET_FAMILY(key_type); in cc3xx_export_public_key() local 394 err = cc3xx_ecc_psa_domain_to_cc_domain(curve, key_bits, &domainId); in cc3xx_export_public_key()
|
D | cc3xx_psa_asymmetric_signature.c | 74 psa_ecc_family_t curve = PSA_KEY_TYPE_ECC_GET_FAMILY(key_type); in cc3xx_internal_ecdsa_verify() local 86 err = cc3xx_ecc_psa_domain_to_cc_domain(curve, key_bits, &domainId); in cc3xx_internal_ecdsa_verify() 146 psa_ecc_family_t curve; in cc3xx_internal_ecdsa_sign() local 172 curve = PSA_KEY_TYPE_ECC_GET_FAMILY(key_type); in cc3xx_internal_ecdsa_sign() 177 err = cc3xx_ecc_psa_domain_to_cc_domain(curve, key_bits, &domainId); in cc3xx_internal_ecdsa_sign()
|
D | cc3xx_internal_ecc_util.c | 257 psa_status_t cc3xx_ecc_psa_domain_to_cc_domain(psa_ecc_family_t curve, in cc3xx_ecc_psa_domain_to_cc_domain() argument 261 switch (curve) { in cc3xx_ecc_psa_domain_to_cc_domain()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/rse/common/cpak_generator/ |
D | bin_to_pem.py | 20 key = ecdsa.VerifyingKey.from_string(input_key[1:], curve=ecdsa.NIST384p)
|
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/codesafe/src/psa_driver_api/include/ |
D | cc3xx_internal_ecc_util.h | 75 psa_status_t cc3xx_ecc_psa_domain_to_cc_domain(psa_ecc_family_t curve,
|
/trusted-firmware-m-3.7.0/interface/include/mbedtls/ |
D | ecjpake.h | 114 mbedtls_ecp_group_id curve,
|
/trusted-firmware-m-3.7.0/interface/include/psa/ |
D | crypto_values.h | 559 #define PSA_KEY_TYPE_ECC_KEY_PAIR(curve) \ argument 560 (PSA_KEY_TYPE_ECC_KEY_PAIR_BASE | (curve)) 570 #define PSA_KEY_TYPE_ECC_PUBLIC_KEY(curve) \ argument 571 (PSA_KEY_TYPE_ECC_PUBLIC_KEY_BASE | (curve))
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | crypto.h | 546 int32_t ECC_GetCurve(CRPT_T *crpt, E_ECC_CURVE ecc_curve, ECC_CURVE *curve);
|
/trusted-firmware-m-3.7.0/docs/configuration/profiles/ |
D | tfm_profile_medium.rst | 128 As requested in [RFC7251]_, ECC curve ``secp256r1`` should be supported. More 347 - Select ECC curve ``secp256r1``
|
D | tfm_profile_large.rst | 260 - Select ECC curve ``secp256r1`` and ``secp384r1``
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | crypto.c | 2619 int32_t ECC_GetCurve(CRPT_T *crpt, E_ECC_CURVE ecc_curve, ECC_CURVE *curve) in ECC_GetCurve() argument 2628 memcpy(curve, pCurve, sizeof(ECC_CURVE)); in ECC_GetCurve()
|