# p256: update to the last fiat-crypto code & share PC tables · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7674a8b43d42434a2ed424ca0778bb348e1e3d70)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7674a8b43d42434a2ed424ca0778bb348e1e3d70

Requested commit: 7674a8b43d42434a2ed424ca0778bb348e1e3d70

Commit: 7674a8b43d42434a2ed424ca0778bb348e1e3d70

Tree: 24eeca98b8cd5d8dcbc476690a7f030420311f37

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
p256: update to the last fiat-crypto code & share PC tables

fiat-crypto now generates proper types, so take advantage of that.

Add mixed subtraction and double base multiplication.

We will eventually leverage mixed addition/subtraction for fixed
base multiplication. The reason we don't right now is that
precomputing the tables at comptime would take forever.
We don't use combs for the same reason. Stage2 + less function
calls in the fiat-crypto generated code will eventually address
that.

Also make the edwards25519 code consistent with these changes.

No functional changes.

```

## Parents

- [d8d92dafe8763ac18d964bb1a6e88de0b13da152](https://git.cafe/gitcafe/zig/commit/d8d92dafe8763ac18d964bb1a6e88de0b13da152?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7674a8b43d42434a2ed424ca0778bb348e1e3d70?format=markdown)
