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 calculation
pull/10997/head
Sachin Parekh 2023-03-06 18:52:54 +05:30
rodzic 413fa38a45
commit bbc99e5532
1 zmienionych plików z 0 dodań i 3 usunięć

Wyświetl plik

@ -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;