以下是全加器,现在数字电路了
static void test_add(uint8_t acc[4], uint8_t addend[4]) { uint8_t carry = 0; for (int i = 0; i < 4; ++i) { acc[i] = acc[i] + addend[i] + carry; carry = (acc[i] < addend[i]); // RISCV overflow check } }
poly1305 建议别调整数计算库,那只能摸索了(不是)
Why is this step necessary? hello.2heng.xin might not be the server where you are registered, so we need to redirect you to your home server first. Don't have an account? You can sign up here
hello.2heng.xin