std.crypto.ecc.P384.add
pub fn add(p: P384, q: P384) P384
- Kind
- function
- Module
std.crypto.ecc.P384
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of std.crypto.ecc.P384 in the Zig reference. This page has 24 cards.
pub fn add(p: P384, q: P384) P384
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn addMixed(p: P384, q: AffineCoordinates) P384
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn affineCoordinates(p: P384) AffineCoordinates
Return affine coordinates.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The P384 base point.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn dbl(p: P384) P384
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn equivalent(a: P384, b: P384) bool
Return true if both coordinate sets represent the same point.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromAffineCoordinates(p: AffineCoordinates) EncodingError!P384
Create a point from affine coordinates after checking that they match the curve equation.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromSec1(s: []const u8) (EncodingError || NotSquareError || NonCanonicalError)!P384
Deserialize a SEC1-encoded point.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fromSerializedAffineCoordinates(xs: [48]u8, ys: [48]u8, endian: std.lang.Endian) (NonCanonicalError || EncodingError)!P384
Create a point from serialized affine coordinates.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The P384 neutral element.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn mul(p: P384, s_: [48]u8, endian: std.lang.Endian) IdentityElementError!P384
Multiply an elliptic curve point by a scalar.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn mulDoubleBasePublic(p1: P384, s1_: [48]u8, p2: P384, s2_: [48]u8, endian: std.lang.Endian) IdentityElementError!P384
Double-base multiplication of public parameters - Compute (p1*s1)+(p2*s2) *IN VARIABLE TIME* This can be used for signature verification.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn mulPublic(p: P384, s_: [48]u8, endian: std.lang.Endian) IdentityElementError!P384
Multiply an elliptic curve point by a *PUBLIC* scalar *IN VARIABLE TIME* This can be used for signature verification.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn neg(p: P384) P384
Flip the sign of the X coordinate.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn random(io: std.Io) P384
Return a random point.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn recoverY(x: Fe, is_odd: bool) NotSquareError!Fe
Recover the Y coordinate from the X coordinate.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn rejectIdentity(p: P384) IdentityElementError!void
Reject the neutral element.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
Field arithmetic mod the order of the main subgroup.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sub(p: P384, q: P384) P384
Subtract P384 points.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn subMixed(p: P384, q: AffineCoordinates) P384
Subtract P384 points, the second being specified using affine coordinates.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn toCompressedSec1(p: P384) [49]u8
Serialize a point using the compressed SEC-1 format.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn toUncompressedSec1(p: P384) [97]u8
Serialize a point using the uncompressed SEC-1 format.
std.crypto.ecc.P384Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.