use of de.flexiprovider.pqc.ots.lm.LMOTSPublicKey in project core by jcryptool.
the class LMOTSPublicKeyContentProvider method getAlgorithmElements.
@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
LMOTSPublicKey key = (LMOTSPublicKey) inputElement;
if (key == null)
return null;
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_hashedk, "" + key.getHashedK()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_hashedl, "" + key.getHashedL()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_hashfunc, "" + key.getHashFunction()));
} catch (ClassCastException e) {
return null;
}
return paramElements;
}
Aggregations