package org.bouncycastle.crypto.tls;

/**
 * RFC 4492 5.4. (Errata ID: 2389)
 */
public class ECBasisType
{
    public static final short ec_basis_trinomial = 1;
    public static final short ec_basis_pentanomial = 2;
}

@@ -210,11 +210,166 @@
 ial = 2;
+%0A%0A    public static boolean isValid(short ecBasisType)%0A    %7B%0A        return ecBasisType %3E= ec_basis_trinomial && ecBasisType %3C= ec_basis_pentanomial;%0A    %7D
 %0A%7D%0A

Add isValid method