Search in sources :

Example 1 with IQRDSAParameterSpec

use of de.flexiprovider.nf.iq.iqrdsa.IQRDSAParameterSpec in project core by jcryptool.

the class IQRDSAPublicKeyContentProvider method getParameters.

private List<TableEntry> getParameters(IQRDSAPublicKeySpec keySpec) {
    IQRDSAParameterSpec params = (IQRDSAParameterSpec) keySpec.getParams();
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_discriminant, "" + params.getDiscriminant()));
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_modulus, "" + params.getModulus()));
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) IQRDSAParameterSpec(de.flexiprovider.nf.iq.iqrdsa.IQRDSAParameterSpec) ArrayList(java.util.ArrayList)

Example 2 with IQRDSAParameterSpec

use of de.flexiprovider.nf.iq.iqrdsa.IQRDSAParameterSpec in project core by jcryptool.

the class IQRDSAPrivateKeyContentProvider method getParameters.

private List<TableEntry> getParameters(IQRDSAPrivateKeySpec keySpec) {
    IQRDSAParameterSpec params = (IQRDSAParameterSpec) keySpec.getParams();
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_discriminant, "" + params.getDiscriminant()));
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_modulus, "" + params.getModulus()));
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) IQRDSAParameterSpec(de.flexiprovider.nf.iq.iqrdsa.IQRDSAParameterSpec) ArrayList(java.util.ArrayList)

Aggregations

IQRDSAParameterSpec (de.flexiprovider.nf.iq.iqrdsa.IQRDSAParameterSpec)2 ArrayList (java.util.ArrayList)2 TableEntry (org.jcryptool.crypto.keystore.ui.dialogs.TableEntry)2