curveFieldByteLength
private fn
size_t curveFieldByteLength(string curveName) pureReturns the byte length of a field element for the given curve.
Parameters
curveName | The 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).