Search in sources :

Example 1 with DSAParams

use of de.flexiprovider.core.dsa.interfaces.DSAParams in project core by jcryptool.

the class DSAPrivateKeyContentProvider method getParameters.

private List<TableEntry> getParameters(DSAKey key) {
    DSAParams params = (DSAParams) key.getParams();
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_baseg, "" + params.getBaseG()));
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_primep, "" + params.getPrimeP()));
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_primeq, "" + params.getPrimeQ()));
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) ArrayList(java.util.ArrayList) DSAParams(de.flexiprovider.core.dsa.interfaces.DSAParams)

Example 2 with DSAParams

use of de.flexiprovider.core.dsa.interfaces.DSAParams in project core by jcryptool.

the class DSAPublicKeyContentProvider method getParameters.

private List<TableEntry> getParameters(DSAKey key) {
    DSAParams params = (DSAParams) key.getParams();
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_baseg, "" + params.getBaseG()));
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_primep, "" + params.getPrimeP()));
    // $NON-NLS-2$
    paramElements.add(new TableEntry(Messages.ContentProvider_primeq, "" + params.getPrimeQ()));
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) ArrayList(java.util.ArrayList) DSAParams(de.flexiprovider.core.dsa.interfaces.DSAParams)

Aggregations

DSAParams (de.flexiprovider.core.dsa.interfaces.DSAParams)2 ArrayList (java.util.ArrayList)2 TableEntry (org.jcryptool.crypto.keystore.ui.dialogs.TableEntry)2