Files
zig/lib/std/crypto
Frank Denis 8709f53d44 crypto.ff: allow seamless chaining regardless of representation (#30913)
Finite field elements can be in regular or Montgomery form, and
chaining different operations use to require manual and error-prone
conversions.

Now:

- `add`, `sub` and `mul` convert the second operand to match the
first operand's form
- `sq` and `pow` preserve the input's Montgomery form
- `toPrimitive` and `toBytes` return `UnexpectedRepresentation` if
the element is in Montgomery form, preventing incorrect serialization

This is fully backwards compatible and allows seamless chaining of
operations regardless of their representation.
2026-01-25 17:42:01 +01:00
..
2026-01-07 23:02:46 +01:00
2025-08-28 18:30:57 -07:00
2025-09-16 23:13:58 +02:00
2025-08-28 18:30:57 -07:00
2025-12-29 22:47:34 -08:00
2025-04-29 22:07:30 +00:00
2024-10-28 14:54:02 +00:00
2025-07-22 09:41:44 -07:00
2025-11-22 22:42:38 +00:00
2026-01-07 23:14:37 +01:00
2025-07-14 00:14:21 -07:00
2025-08-28 18:30:57 -07:00