kopia lustrzana https://github.com/espressif/esp-idf
esp32c2/ecc: Remove support for inverse multiplication
On C2, inverse multiplication (division) mode uses the modular base P instead of N making it impractical for ECC crypto calculationpull/10997/head
rodzic
413fa38a45
commit
bbc99e5532
|
@ -41,9 +41,6 @@ static inline void ecc_ll_set_mode(ecc_mode_t mode)
|
|||
case ECC_MODE_POINT_MUL:
|
||||
REG_SET_FIELD(ECC_MULT_CONF_REG, ECC_MULT_WORK_MODE, 0);
|
||||
break;
|
||||
case ECC_MODE_INVERSE_MUL:
|
||||
REG_SET_FIELD(ECC_MULT_CONF_REG, ECC_MULT_WORK_MODE, 1);
|
||||
break;
|
||||
case ECC_MODE_VERIFY:
|
||||
REG_SET_FIELD(ECC_MULT_CONF_REG, ECC_MULT_WORK_MODE, 2);
|
||||
break;
|
||||
|
|
Ładowanie…
Reference in New Issue