Home
last modified time | relevance | path

Searched refs:curve_id (Results 1 – 14 of 14) sorted by relevance

/trusted-firmware-m-3.7.0/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/
Dcc3xx_psa_asymmetric_signature.c47 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 …]
Dcc3xx_psa_key_generation.c54 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()
Dcc3xx_psa_key_agreement.c61 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/
Dcc3xx_ecdsa.h36 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,
Dcc3xx_ecdsa.c20 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()
Dcc3xx_ecdh.c18 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()
Dcc3xx_ecdh.h39 cc3xx_err_t cc3xx_lowlevel_ecdh(cc3xx_ec_curve_id_t curve_id,
Dcc3xx_ec.h238 size_t cc3xx_lowlevel_ec_get_modulus_size_from_curve(cc3xx_ec_curve_id_t curve_id);
Dcc3xx_ec.c194 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/
Dcc3xx_misc.h40 #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/
Dcrypto.h118 E_ECC_CURVE curve_id; member
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/
Dcrypto.h177 E_ECC_CURVE curve_id; member
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dcrypto.c2581 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/
Dcrypto.c3467 if(ecc_curve == _Curve[i].curve_id) in get_curve()