mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
Functions generated by Fiat-crypto are not prefixed by their description any more. This matches an upstream change. We can now use a single type for different curves and implementations. The field type is now generic, so we can properly handle the base field and scalars without code duplication.
19 lines
615 B
Zig
19 lines
615 B
Zig
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2015-2021 Zig Contributors
|
|
// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
|
|
// The MIT license requires this copyright notice to be included in all copies
|
|
// and substantial portions of the software.
|
|
|
|
const std = @import("std");
|
|
const common = @import("../common.zig");
|
|
|
|
const Field = common.Field;
|
|
|
|
pub const Fe = Field(.{
|
|
.fiat = @import("p256_64.zig"),
|
|
.field_order = 115792089210356248762697446949407573530086143415290314195533631308867097853951,
|
|
.field_bits = 256,
|
|
.saturated_bits = 255,
|
|
.encoded_length = 32,
|
|
});
|