/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/ |
D | cc3xx_psa_asymmetric_signature.c | 47 static psa_status_t ecdsa_sign(cc3xx_ec_curve_id_t curve_id, in ecdsa_sign() argument 60 const size_t modulus_sz = cc3xx_lowlevel_ec_get_modulus_size_from_curve(curve_id); in ecdsa_sign() 84 err = cc3xx_lowlevel_ecdsa_sign(curve_id, in ecdsa_sign() 122 …tic psa_status_t ecdsa_verify(const psa_key_attributes_t *attributes, cc3xx_ec_curve_id_t curve_id, in ecdsa_verify() argument 135 const size_t modulus_sz = cc3xx_lowlevel_ec_get_modulus_size_from_curve(curve_id); in ecdsa_verify() 185 err = cc3xx_lowlevel_ecdsa_verify(curve_id, in ecdsa_verify() 245 const cc3xx_ec_curve_id_t curve_id = in cc3xx_sign_hash() local 248 if (CC3XX_IS_CURVE_ID_INVALID(curve_id)) { in cc3xx_sign_hash() 252 return ecdsa_sign(curve_id, key, key_length, in cc3xx_sign_hash() 301 const cc3xx_ec_curve_id_t curve_id = in cc3xx_verify_hash() local [all …]
|
D | cc3xx_psa_key_generation.c | 54 const cc3xx_ec_curve_id_t curve_id = in cc3xx_generate_key() local 57 if (CC3XX_IS_CURVE_ID_INVALID(curve_id)) { in cc3xx_generate_key() 67 curve_id, key_buffer_local, sizeof(key_buffer_local), &gen_key_sz); in cc3xx_generate_key() 127 const cc3xx_ec_curve_id_t curve_id = in cc3xx_export_public_key() local 130 if (CC3XX_IS_CURVE_ID_INVALID(curve_id)) { in cc3xx_export_public_key() 134 const size_t modulus_sz = cc3xx_lowlevel_ec_get_modulus_size_from_curve(curve_id); in cc3xx_export_public_key() 149 curve_id, key_buffer_local, key_buffer_size, in cc3xx_export_public_key()
|
D | cc3xx_psa_key_agreement.c | 61 const cc3xx_ec_curve_id_t curve_id = in cc3xx_key_agreement() local 64 if (CC3XX_IS_CURVE_ID_INVALID(curve_id)) { in cc3xx_key_agreement() 68 const size_t modulus_sz = cc3xx_lowlevel_ec_get_modulus_size_from_curve(curve_id); in cc3xx_key_agreement() 89 err = cc3xx_lowlevel_ecdh(curve_id, priv_key_local, priv_key_size, in cc3xx_key_agreement()
|
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/ |
D | cc3xx_ecdsa.h | 36 cc3xx_err_t cc3xx_lowlevel_ecdsa_genkey(cc3xx_ec_curve_id_t curve_id, 60 cc3xx_err_t cc3xx_lowlevel_ecdsa_getpub(cc3xx_ec_curve_id_t curve_id, 88 cc3xx_err_t cc3xx_lowlevel_ecdsa_sign(cc3xx_ec_curve_id_t curve_id, 112 cc3xx_err_t cc3xx_lowlevel_ecdsa_verify(cc3xx_ec_curve_id_t curve_id,
|
D | cc3xx_ecdsa.c | 20 cc3xx_err_t cc3xx_lowlevel_ecdsa_genkey(cc3xx_ec_curve_id_t curve_id, in cc3xx_lowlevel_ecdsa_genkey() argument 30 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdsa_genkey() 61 cc3xx_err_t cc3xx_lowlevel_ecdsa_getpub(cc3xx_ec_curve_id_t curve_id, in cc3xx_lowlevel_ecdsa_getpub() argument 74 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdsa_getpub() 118 cc3xx_err_t cc3xx_lowlevel_ecdsa_verify(cc3xx_ec_curve_id_t curve_id, in cc3xx_lowlevel_ecdsa_verify() argument 139 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdsa_verify() 273 cc3xx_err_t cc3xx_lowlevel_ecdsa_sign(cc3xx_ec_curve_id_t curve_id, in cc3xx_lowlevel_ecdsa_sign() argument 290 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdsa_sign()
|
D | cc3xx_ecdh.c | 18 cc3xx_err_t cc3xx_lowlevel_ecdh(cc3xx_ec_curve_id_t curve_id, in cc3xx_lowlevel_ecdh() argument 31 err = cc3xx_lowlevel_ec_init(curve_id, &curve); in cc3xx_lowlevel_ecdh()
|
D | cc3xx_ecdh.h | 39 cc3xx_err_t cc3xx_lowlevel_ecdh(cc3xx_ec_curve_id_t curve_id,
|
D | cc3xx_ec.h | 238 size_t cc3xx_lowlevel_ec_get_modulus_size_from_curve(cc3xx_ec_curve_id_t curve_id);
|
D | cc3xx_ec.c | 194 size_t cc3xx_lowlevel_ec_get_modulus_size_from_curve(cc3xx_ec_curve_id_t curve_id) { in cc3xx_lowlevel_ec_get_modulus_size_from_curve() argument 195 return (curve_data_map[curve_id])->modulus_size; in cc3xx_lowlevel_ec_get_modulus_size_from_curve()
|
/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/include/ |
D | cc3xx_misc.h | 40 #define CC3XX_IS_CURVE_ID_INVALID(curve_id) (curve_id == _CURVE_ID_MAX) argument
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | crypto.h | 118 E_ECC_CURVE curve_id; member
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | crypto.h | 177 E_ECC_CURVE curve_id; member
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | crypto.c | 2581 if(ecc_curve == _Curve[i].curve_id) in get_curve()
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | crypto.c | 3467 if(ecc_curve == _Curve[i].curve_id) in get_curve()
|