mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
After P-256, here comes P-384, also known as secp384r1. Like P-256, it is required for TLS, and is the current NIST recommendation for key exchange and signatures, for better or for worse. Like P-256, all the finite field arithmetic has been computed and verified to be correct by fiat-crypto.
12 lines
338 B
Zig
12 lines
338 B
Zig
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 = 256,
|
|
.encoded_length = 32,
|
|
});
|