de.flexiprovider.nf.iq.iqrdsa
Class IQRDSAPrivateKey
java.lang.Object
|
+--de.flexiprovider.api.keys.PrivateKey
|
+--de.flexiprovider.nf.iq.iqrdsa.IQRDSAPrivateKey
- All Implemented Interfaces:
- java.security.Key, Key, java.security.PrivateKey, java.io.Serializable
- public class IQRDSAPrivateKey
- extends PrivateKey
Class for private keys pertaining to the IQRDSA algorithm
- Author:
- Ralf-P. Weinmann
- See Also:
PrivateKey, Serialized Form
| Fields inherited from interface java.security.Key |
serialVersionUID |
| Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
| Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IQRDSAPrivateKey
protected IQRDSAPrivateKey(IQRDSAParameterSpec params,
QuadraticIdeal gamma,
QuadraticIdeal alpha,
FlexiBigInt a)
- Construct an IQRDSA private key from the given parameters, public key
value and base element of the NFDL-problem.
- Parameters:
params - parameters consisting of gamma and prime modulusgamma - the base element of the NFDL-problemalpha - the public key valuea - the private key value
IQRDSAPrivateKey
protected IQRDSAPrivateKey(IQRDSAPrivateKeySpec keySpec)
- Construct an IQRDSA private key from the given key specification.
- Parameters:
keySpec - the key specification
getAlgorithm
public java.lang.String getAlgorithm()
- Returns the standard algorithm name for this key.
- Returns:
- the name of the algorithm associated with this key.
getParams
public IQRDSAParameterSpec getParams()
- Returns:
- the parameters
getGamma
public QuadraticIdeal getGamma()
- Returns:
- gamma
getAlpha
public QuadraticIdeal getAlpha()
- Returns:
- alpha
getA
public FlexiBigInt getA()
- Returns:
- a
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- a human-readable form of the key
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getAlgParams
protected codec.asn1.ASN1Type getAlgParams()
- Overrides:
getAlgParams in class PrivateKey
- Following copied from class:
de.flexiprovider.api.keys.PrivateKey
- Returns:
- the algorithm parameters to encode in the SubjectPublicKeyInfo
structure
getKeyData
protected byte[] getKeyData()
- Overrides:
getKeyData in class PrivateKey
- Following copied from class:
de.flexiprovider.api.keys.PrivateKey
- Returns:
- the keyData to encode in the SubjectPublicKeyInfo structure
getOID
protected codec.asn1.ASN1ObjectIdentifier getOID()
- Overrides:
getOID in class PrivateKey
- Following copied from class:
de.flexiprovider.api.keys.PrivateKey
- Returns:
- the OID to encode in the SubjectPublicKeyInfo structure