Function toUncompressedSec1 [src]
Serialize a point using the uncompressed SEC-1 format.
Prototype
pub fn toUncompressedSec1(p: P384) [97]u8
Parameters
p: P384
Source
pub fn toUncompressedSec1(p: P384) [97]u8 {
var out: [97]u8 = undefined;
out[0] = 4;
const xy = p.affineCoordinates();
out[1..49].* = xy.x.toBytes(.big);
out[49..97].* = xy.y.toBytes(.big);
return out;
}