| /trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/ |
| D | cc3xx_ec.h | 99 cc3xx_err_t cc3xx_lowlevel_ec_init(cc3xx_ec_curve_id_t id, 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, 220 cc3xx_err_t cc3xx_lowlevel_ec_shamir_multiply_points_by_scalars_and_add(
|
| D | cc3xx_ec_weierstrass.h | 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, 99 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_multipy_point_by_scalar( 131 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_shamir_multiply_points_by_scalars_and_add(
|
| D | cc3xx_drbg_hash.h | 48 cc3xx_err_t cc3xx_lowlevel_drbg_hash_init( 64 cc3xx_err_t cc3xx_lowlevel_drbg_hash_generate( 79 cc3xx_err_t cc3xx_lowlevel_drbg_hash_reseed( 90 cc3xx_err_t cc3xx_lowlevel_drbg_hash_uninit(struct cc3xx_drbg_hash_state_t *state);
|
| D | cc3xx_drbg_hmac.h | 50 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_instantiate( 66 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_generate( 81 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_reseed( 92 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_uninit(struct cc3xx_drbg_hmac_state_t *state);
|
| D | cc3xx_drbg.h | 67 cc3xx_err_t cc3xx_lowlevel_drbg_init( 84 cc3xx_err_t cc3xx_lowlevel_drbg_generate( 99 cc3xx_err_t cc3xx_lowlevel_drbg_reseed( 110 cc3xx_err_t cc3xx_lowlevel_drbg_uninit(struct cc3xx_drbg_state_t *state);
|
| D | cc3xx_hmac.h | 45 cc3xx_err_t cc3xx_lowlevel_hmac_set_key( 71 cc3xx_err_t cc3xx_lowlevel_hmac_update( 85 cc3xx_err_t cc3xx_lowlevel_hmac_finish( 109 cc3xx_err_t cc3xx_lowlevel_hmac_compute(
|
| D | cc3xx_drbg_ctr.h | 78 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_init( 95 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_generate( 111 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_reseed( 123 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_uninit(
|
| D | cc3xx_init.c | 66 static cc3xx_err_t setup_dfa_countermeasures(void) in setup_dfa_countermeasures() 98 static cc3xx_err_t setup_dpa_countermeasures(void) in setup_dpa_countermeasures() 100 cc3xx_err_t err; in setup_dpa_countermeasures() 120 cc3xx_err_t cc3xx_lowlevel_init(void) in cc3xx_lowlevel_init() 122 cc3xx_err_t err; in cc3xx_lowlevel_init() 153 cc3xx_err_t cc3xx_lowlevel_uninit(void) in cc3xx_lowlevel_uninit()
|
| D | cc3xx_rng.c | 73 static cc3xx_err_t fill_entropy_buf(uint32_t *buf) { in fill_entropy_buf() 122 cc3xx_err_t cc3xx_lowlevel_rng_get_random(uint8_t *buf, size_t length) in cc3xx_lowlevel_rng_get_random() 127 cc3xx_err_t err; in cc3xx_lowlevel_rng_get_random() 161 cc3xx_err_t cc3xx_lowlevel_rng_get_random_uint(uint32_t bound, uint32_t *uint) in cc3xx_lowlevel_rng_get_random_uint() 165 cc3xx_err_t err; in cc3xx_lowlevel_rng_get_random_uint() 207 cc3xx_err_t cc3xx_lowlevel_rng_get_random(uint8_t *buf, size_t length) in cc3xx_lowlevel_rng_get_random()
|
| 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_chacha.h | 72 cc3xx_err_t cc3xx_lowlevel_chacha20_init( 101 cc3xx_err_t cc3xx_lowlevel_chacha20_set_state(const struct cc3xx_chacha_state_t *state); 135 cc3xx_err_t cc3xx_lowlevel_chacha20_update(const uint8_t* in, size_t in_len); 167 cc3xx_err_t cc3xx_lowlevel_chacha20_finish(uint32_t *tag, size_t *size);
|
| D | cc3xx_ec.c | 69 static cc3xx_err_t allocate_point_from_data(cc3xx_ec_curve_t *curve, 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() 92 cc3xx_err_t err; in cc3xx_lowlevel_ec_allocate_point_from_data() 235 cc3xx_err_t cc3xx_lowlevel_ec_init(cc3xx_ec_curve_id_t id, in cc3xx_lowlevel_ec_init() 309 cc3xx_err_t cc3xx_lowlevel_ec_add_points(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_add_points() 314 cc3xx_err_t err; in cc3xx_lowlevel_ec_add_points() 334 cc3xx_err_t cc3xx_lowlevel_ec_double_point(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_double_point() 338 cc3xx_err_t err; in cc3xx_lowlevel_ec_double_point() 359 static cc3xx_err_t blind_scalar(cc3xx_ec_curve_t *curve, cc3xx_pka_reg_id_t scalar, in blind_scalar() 362 cc3xx_err_t err; in blind_scalar() [all …]
|
| D | cc3xx_drbg_hash.c | 71 static cc3xx_err_t hash_df( in hash_df() 82 cc3xx_err_t err; in hash_df() 123 cc3xx_err_t cc3xx_lowlevel_drbg_hash_init( in cc3xx_lowlevel_drbg_hash_init() 129 cc3xx_err_t err; in cc3xx_lowlevel_drbg_hash_init() 162 static cc3xx_err_t hash_gen_process(uint8_t *block_v, size_t out_len_bits, uint8_t *returned_bits) in hash_gen_process() 164 cc3xx_err_t err; in hash_gen_process() 219 cc3xx_err_t cc3xx_lowlevel_drbg_hash_generate( in cc3xx_lowlevel_drbg_hash_generate() 224 cc3xx_err_t err; in cc3xx_lowlevel_drbg_hash_generate() 304 cc3xx_err_t cc3xx_lowlevel_drbg_hash_reseed( in cc3xx_lowlevel_drbg_hash_reseed() 309 cc3xx_err_t err; in cc3xx_lowlevel_drbg_hash_reseed() [all …]
|
| D | cc3xx_hmac.c | 14 cc3xx_err_t cc3xx_lowlevel_hmac_compute( in cc3xx_lowlevel_hmac_compute() 26 cc3xx_err_t err; in cc3xx_lowlevel_hmac_compute() 117 cc3xx_err_t cc3xx_lowlevel_hmac_set_key( in cc3xx_lowlevel_hmac_set_key() 124 cc3xx_err_t err; in cc3xx_lowlevel_hmac_set_key() 180 cc3xx_err_t cc3xx_lowlevel_hmac_update( in cc3xx_lowlevel_hmac_update() 185 cc3xx_err_t err; in cc3xx_lowlevel_hmac_update() 199 cc3xx_err_t cc3xx_lowlevel_hmac_finish( in cc3xx_lowlevel_hmac_finish() 207 cc3xx_err_t err; in cc3xx_lowlevel_hmac_finish()
|
| D | cc3xx_drbg_ctr.c | 62 static cc3xx_err_t cc3xx_drbg_ctr_update( in cc3xx_drbg_ctr_update() 66 cc3xx_err_t err; in cc3xx_drbg_ctr_update() 106 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_init( in cc3xx_lowlevel_drbg_ctr_init() 112 cc3xx_err_t err; in cc3xx_lowlevel_drbg_ctr_init() 166 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_generate( in cc3xx_lowlevel_drbg_ctr_generate() 171 cc3xx_err_t err; in cc3xx_lowlevel_drbg_ctr_generate() 262 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_reseed( in cc3xx_lowlevel_drbg_ctr_reseed() 267 cc3xx_err_t err; in cc3xx_lowlevel_drbg_ctr_reseed() 305 cc3xx_err_t cc3xx_lowlevel_drbg_ctr_uninit(struct cc3xx_drbg_ctr_state_t *state) in cc3xx_lowlevel_drbg_ctr_uninit()
|
| D | cc3xx_drbg_hmac.c | 26 static cc3xx_err_t hmac_update( in hmac_update() 32 cc3xx_err_t err; in hmac_update() 121 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_instantiate( in cc3xx_lowlevel_drbg_hmac_instantiate() 127 cc3xx_err_t err; in cc3xx_lowlevel_drbg_hmac_instantiate() 144 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_generate( in cc3xx_lowlevel_drbg_hmac_generate() 149 cc3xx_err_t err; in cc3xx_lowlevel_drbg_hmac_generate() 225 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_reseed( in cc3xx_lowlevel_drbg_hmac_reseed() 230 cc3xx_err_t err; in cc3xx_lowlevel_drbg_hmac_reseed() 246 cc3xx_err_t cc3xx_lowlevel_drbg_hmac_uninit(struct cc3xx_drbg_hmac_state_t *state) in cc3xx_lowlevel_drbg_hmac_uninit()
|
| D | cc3xx_init.h | 26 cc3xx_err_t cc3xx_lowlevel_init(void); 34 cc3xx_err_t cc3xx_lowlevel_uninit(void);
|
| D | cc3xx_drbg.c | 11 cc3xx_err_t cc3xx_lowlevel_drbg_init( in cc3xx_lowlevel_drbg_init() 52 cc3xx_err_t cc3xx_lowlevel_drbg_generate( in cc3xx_lowlevel_drbg_generate() 78 cc3xx_err_t cc3xx_lowlevel_drbg_reseed( in cc3xx_lowlevel_drbg_reseed() 104 cc3xx_err_t cc3xx_lowlevel_drbg_uninit(struct cc3xx_drbg_state_t *state) in cc3xx_lowlevel_drbg_uninit()
|
| D | cc3xx_aes.h | 130 cc3xx_err_t cc3xx_lowlevel_aes_init( 155 cc3xx_err_t cc3xx_lowlevel_aes_set_state(const struct cc3xx_aes_state_t *state); 207 cc3xx_err_t cc3xx_lowlevel_aes_update(const uint8_t* in, size_t in_len); 241 cc3xx_err_t cc3xx_lowlevel_aes_finish(uint32_t *tag, size_t *size);
|
| D | cc3xx_rng.h | 35 cc3xx_err_t cc3xx_lowlevel_rng_get_random(uint8_t* buf, size_t length); 51 cc3xx_err_t cc3xx_lowlevel_rng_get_random_uint(uint32_t bound, uint32_t *uint);
|
| D | cc3xx_otp.h | 29 cc3xx_err_t cc3xx_otp_write(uint8_t *otp_addr, size_t size, const uint8_t *buf); 40 cc3xx_err_t cc3xx_otp_read(const uint8_t *otp_addr, size_t size, uint8_t *buf);
|
| D | cc3xx_ec_weierstrass.c | 21 cc3xx_err_t err; in cc3xx_lowlevel_ec_weierstrass_validate_point() 134 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_double_point(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_weierstrass_double_point() 138 cc3xx_err_t err; in cc3xx_lowlevel_ec_weierstrass_double_point() 240 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_add_points(cc3xx_ec_curve_t *curve, in cc3xx_lowlevel_ec_weierstrass_add_points() 245 cc3xx_err_t err; in cc3xx_lowlevel_ec_weierstrass_add_points() 265 static cc3xx_err_t multipy_point_by_scalar_side_channel_protected( in multipy_point_by_scalar_side_channel_protected() 275 cc3xx_err_t err = CC3XX_ERR_SUCCESS; in multipy_point_by_scalar_side_channel_protected() 394 static cc3xx_err_t shamir_multiply_points_by_scalars_and_add( in shamir_multiply_points_by_scalars_and_add() 408 cc3xx_err_t err = CC3XX_ERR_SUCCESS; in shamir_multiply_points_by_scalars_and_add() 476 cc3xx_err_t cc3xx_lowlevel_ec_weierstrass_multipy_point_by_scalar( in cc3xx_lowlevel_ec_weierstrass_multipy_point_by_scalar() [all …]
|
| D | cc3xx_ecdsa.c | 20 cc3xx_err_t cc3xx_lowlevel_ecdsa_genkey(cc3xx_ec_curve_id_t curve_id, in cc3xx_lowlevel_ecdsa_genkey() 27 cc3xx_err_t err; 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() 71 cc3xx_err_t err; 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() 135 cc3xx_err_t err; 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() 287 cc3xx_err_t err; in cc3xx_lowlevel_ecdsa_sign()
|
| D | cc3xx_aes.c | 41 static cc3xx_err_t check_key_lock(cc3xx_aes_key_id_t key_id) in check_key_lock() 43 cc3xx_err_t err = CC3XX_ERR_SUCCESS; in check_key_lock() 93 static cc3xx_err_t set_key(cc3xx_aes_key_id_t key_id, const uint32_t *key, in set_key() 96 cc3xx_err_t err = CC3XX_ERR_SUCCESS; in set_key() 339 static cc3xx_err_t init_from_state(void) in init_from_state() 341 cc3xx_err_t err; in init_from_state() 436 cc3xx_err_t cc3xx_lowlevel_aes_init( in cc3xx_lowlevel_aes_init() 442 cc3xx_err_t err; in cc3xx_lowlevel_aes_init() 560 cc3xx_err_t cc3xx_lowlevel_aes_set_state(const struct cc3xx_aes_state_t *state) in cc3xx_lowlevel_aes_set_state() 562 cc3xx_err_t err; in cc3xx_lowlevel_aes_set_state() [all …]
|
| /trusted-firmware-m-latest/platform/ext/accelerator/cc312/cc312-rom/psa_driver_api/src/ |
| D | cc3xx_psa_init.c | 31 cc3xx_err_t err; in cc3xx_init() 40 cc3xx_err_t err; in cc3xx_free()
|