ecnamedcurveparameterspec.java

来自「内容:基于jdk1.4的加密算法的具体实现」· Java 代码 · 共 63 行

JAVA
63
字号
package org.bouncycastle.jce.spec;import java.math.BigInteger;import org.bouncycastle.math.ec.ECCurve;import org.bouncycastle.math.ec.ECPoint;/** * specification signifying that the curve parameters can also be * refered to by name. * <p> * If you are using JDK 1.5 you should be looking at ECNamedCurveSpec. */public class ECNamedCurveParameterSpec    extends ECParameterSpec{    private String  name;    public ECNamedCurveParameterSpec(        String      name,        ECCurve     curve,        ECPoint     G,        BigInteger  n)    {        super(curve, G, n);        this.name = name;    }    public ECNamedCurveParameterSpec(        String      name,        ECCurve     curve,        ECPoint     G,        BigInteger  n,        BigInteger  h)    {        super(curve, G, n, h);        this.name = name;    }    public ECNamedCurveParameterSpec(        String      name,        ECCurve     curve,        ECPoint     G,        BigInteger  n,        BigInteger  h,        byte[]      seed)    {        super(curve, G, n, h, seed);        this.name = name;    }    /**     * return the name of the curve the EC domain parameters belong to.     */    public String getName()    {        return name;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?