Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ECBasisType.java « tls « crypto « bouncycastle « org « java « main « src « core - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 630dfcd6e4e7d50c254df0f3fc95d95cc373e24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;

    public static boolean isValid(short ecBasisType)
    {
        return ecBasisType >= ec_basis_trinomial && ecBasisType <= ec_basis_pentanomial;
    }
}