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
376 B
Zig
12 lines
376 B
Zig
const std = @import("std");
|
|
const common = @import("../common.zig");
|
|
|
|
const Field = common.Field;
|
|
|
|
pub const Fe = Field(.{
|
|
.fiat = @import("p384_64.zig"),
|
|
.field_order = 39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319,
|
|
.field_bits = 384,
|
|
.saturated_bits = 384,
|
|
.encoded_length = 48,
|
|
});
|