private static IFiniteField BuildField(int m, int k1, int k2, int k3) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Unknown result type (might be due to invalid IL or missing references) if (k1 == 0) { throw new ArgumentException("k1 must be > 0"); } if (k2 == 0) { if (k3 != 0) { throw new ArgumentException("k3 must be 0 if k2 == 0"); } return(FiniteFields.GetBinaryExtensionField(new int[3] { 0, k1, m })); } if (k2 <= k1) { throw new ArgumentException("k2 must be > k1"); } if (k3 <= k2) { throw new ArgumentException("k3 must be > k2"); } return(FiniteFields.GetBinaryExtensionField(new int[5] { 0, k1, k2, k3, m })); }
private static IFiniteField BuildField(int m, int k1, int k2, int k3) { if (k1 == 0) { throw new ArgumentException("k1 must be > 0"); } if (k2 == 0) { if (k3 != 0) { throw new ArgumentException("k3 must be 0 if k2 == 0"); } return(FiniteFields.GetBinaryExtensionField(new int[] { 0, k1, m })); } if (k2 <= k1) { throw new ArgumentException("k2 must be > k1"); } if (k3 <= k2) { throw new ArgumentException("k3 must be > k2"); } return(FiniteFields.GetBinaryExtensionField(new int[] { 0, k1, k2, k3, m })); }
private static IFiniteField BuildField(int m, int k1, int k2, int k3) { if (k1 == 0) { throw new ArgumentException("k1 must be > 0"); } if (k2 == 0) { if (k3 != 0) { throw new ArgumentException("k3 must be 0 if k2 == 0"); } int[] numArray1 = new int[3]; numArray1[1] = k1; numArray1[2] = m; return(FiniteFields.GetBinaryExtensionField(numArray1)); } if (k2 <= k1) { throw new ArgumentException("k2 must be > k1"); } if (k3 <= k2) { throw new ArgumentException("k3 must be > k2"); } int[] exponents = new int[5]; exponents[1] = k1; exponents[2] = k2; exponents[3] = k3; exponents[4] = m; return(FiniteFields.GetBinaryExtensionField(exponents)); }