Search in sources :

Example 1 with IQDSAParameterSpec

use of de.flexiprovider.nf.iq.iqdsa.IQDSAParameterSpec in project core by jcryptool.

the class IQDSAPrivateKeyContentProvider method getParameters.

private List<TableEntry> getParameters(IQDSAPrivateKeySpec keySpec) {
    IQDSAParameterSpec params = (IQDSAParameterSpec) 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_gamma, "" + params.getGamma()));
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) IQDSAParameterSpec(de.flexiprovider.nf.iq.iqdsa.IQDSAParameterSpec) ArrayList(java.util.ArrayList)

Example 2 with IQDSAParameterSpec

use of de.flexiprovider.nf.iq.iqdsa.IQDSAParameterSpec in project core by jcryptool.

the class IQDSAPublicKeyContentProvider method getParameters.

private List<TableEntry> getParameters(IQDSAPublicKeySpec keySpec) {
    IQDSAParameterSpec params = (IQDSAParameterSpec) 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_gamma, "" + params.getGamma()));
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) IQDSAParameterSpec(de.flexiprovider.nf.iq.iqdsa.IQDSAParameterSpec) ArrayList(java.util.ArrayList)

Aggregations

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