use of de.flexiprovider.pqc.ots.lm.LMOTSPrivateKey in project core by jcryptool.
the class LMOTSPrivateKeyContentProvider method getAlgorithmElements.
@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
LMOTSPrivateKey key = (LMOTSPrivateKey) inputElement;
if (key == null)
return null;
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_k, "" + Arrays.toString(key.getK().toArray())));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_l, "" + Arrays.toString(key.getL().toArray())));
} catch (ClassCastException e) {
return null;
}
return paramElements;
}
Aggregations