use of de.flexiprovider.pqc.ecc.niederreiter.NiederreiterPublicKey in project core by jcryptool.
the class NiederreiterPublicKeyContentProvider method getAlgorithmElements.
@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
NiederreiterPublicKey key = (NiederreiterPublicKey) inputElement;
if (key == null)
return null;
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_k, "" + key.getK()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_n, "" + key.getN()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_t, "" + key.getT()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_h, "" + key.getH()));
} catch (ClassCastException e) {
return null;
}
return paramElements;
}
Aggregations