You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1003 B
65 lines
1003 B
/*
|
|
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package java.security.interfaces;
|
|
|
|
import java.math.BigInteger;
|
|
|
|
/**
|
|
* Interface to a DSA-specific set of key parameters, which defines a
|
|
* DSA <em>key family</em>. DSA (Digital Signature Algorithm) is defined
|
|
* in NIST's FIPS-186.
|
|
*
|
|
* @see DSAKey
|
|
* @see java.security.Key
|
|
* @see java.security.Signature
|
|
*
|
|
* @author Benjamin Renaud
|
|
* @author Josh Bloch
|
|
*/
|
|
public interface DSAParams {
|
|
|
|
/**
|
|
* Returns the prime, {@code p}.
|
|
*
|
|
* @return the prime, {@code p}.
|
|
*/
|
|
public BigInteger getP();
|
|
|
|
/**
|
|
* Returns the subprime, {@code q}.
|
|
*
|
|
* @return the subprime, {@code q}.
|
|
*/
|
|
public BigInteger getQ();
|
|
|
|
/**
|
|
* Returns the base, {@code g}.
|
|
*
|
|
* @return the base, {@code g}.
|
|
*/
|
|
public BigInteger getG();
|
|
}
|