curveFieldByteLength

private fnsize_t curveFieldByteLength(string curveName) pure

Returns the byte length of a field element for the given curve.

Parameters

curveNameThe curve name (e.g. "P-256", "P-384", "P-521").

Returns

The byte length (32 for P-256, 48 for P-384, 66 for P-521).