⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elgamalkey.java

📁 另一个使用java编写的加密通用算法包
💻 JAVA
字号:
/*// $Log: ElGamalKey.java,v $// Revision 1.1.1.1  1997/11/03 22:36:58  hopwood// + Imported to CVS (tagged as 'start').//// $Endlog$*/package java.security.interfaces;import java.math.BigInteger;/** * The interface to an ElGamal public or private key. * <p> * <b>References</b> * <p> * <blockquote> *    <a href="mailto:schneier@counterpane.com">Bruce Schneier</a>, *    "Section 19.6 ElGamal," *    <cite>Applied Cryptography</cite>, *    Wiley 2nd Ed, 1996. * </blockquote> * * <p><b>$Revision: 1.1.1.1 $</b> * @author David Hopwood * @since  IJCE 1.0.1 * @see ElGamalParams * @see java.security.Key * @see java.security.Cipher * @see java.security.Signature */public interface ElGamalKey {    /**     * Returns the prime, <i>p</i>.     *      * @return the prime as a java.math.BigInteger     */    BigInteger getP();    /**     * Returns the base, <i>g</i>.     *      * @return the base as a java.math.BigInteger      */    BigInteger getG();    /**     * Returns the value of <i>y = g^x</i> mod <i>p</i> (where <i>x</i> is     * the private key).     *     * @return y as a java.math.BigInteger     */    BigInteger getY();}

⌨️ 快捷键说明

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