public static byte[] CreateSupportedEllipticCurvesExtension(int[] namedCurves) { if (namedCurves == null || namedCurves.Length < 1) { throw new TlsFatalAlert(AlertDescription.internal_error); } return(TlsUtilities.EncodeUint16ArrayWithUint16Length(namedCurves)); }