ecprivatekeyspec.java

来自「这是一个基于java编写的torrent的P2P源码」· Java 代码 · 共 36 行

JAVA
36
字号
package org.bouncycastle.jce.spec;

import java.math.BigInteger;

/**
 * Elliptic Curve private key specification.
 */
public class ECPrivateKeySpec
    extends ECKeySpec
{
    private BigInteger    d;

    /**
     * base constructor
     *
     * @param d the private number for the key.
     * @param spec the domain parameters for the curve being used.
     */
	public ECPrivateKeySpec(
        BigInteger      d,
		ECParameterSpec spec)
	{
		super(spec);

        this.d = d;
	}

    /**
     * return the private number D
     */
    public BigInteger getD()
    {
        return d;
    }
}

⌨️ 快捷键说明

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