use of de.flexiprovider.core.elgamal.semanticallysecure.SSVElGamalPrivateKey in project core by jcryptool.
the class SSVElGamalPrivateKeyContentProvider method getAlgorithmElements.
@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
SSVElGamalPrivateKey key = (SSVElGamalPrivateKey) inputElement;
if (key == null)
return null;
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_a, "" + key.getA()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_generator, "" + key.getGenerator()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_modulusp, "" + key.getModulusP()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_modulusq, "" + key.getModulusQ()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_publica, "" + key.getPublicA()));
} catch (ClassCastException e) {
return null;
}
return paramElements;
}
Aggregations