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
 
Constructor Summary
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.
protected IQRDSAPrivateKey(IQRDSAPrivateKeySpec keySpec)
          Construct an IQRDSA private key from the given key specification.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 FlexiBigInt getA()
           
 java.lang.String getAlgorithm()
          Returns the standard algorithm name for this key.
protected  codec.asn1.ASN1Type getAlgParams()
           
 QuadraticIdeal getAlpha()
           
 QuadraticIdeal getGamma()
           
protected  byte[] getKeyData()
           
protected  codec.asn1.ASN1ObjectIdentifier getOID()
           
 IQRDSAParameterSpec getParams()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class de.flexiprovider.api.keys.PrivateKey
getEncoded, getFormat
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 modulus
gamma - the base element of the NFDL-problem
alpha - the public key value
a - the private key value

IQRDSAPrivateKey

protected IQRDSAPrivateKey(IQRDSAPrivateKeySpec keySpec)
Construct an IQRDSA private key from the given key specification.
Parameters:
keySpec - the key specification
Method Detail

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