Search in sources :

Example 1 with LMOTSPublicKey

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;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) LMOTSPublicKey(de.flexiprovider.pqc.ots.lm.LMOTSPublicKey) ArrayList(java.util.ArrayList)

Aggregations

LMOTSPublicKey (de.flexiprovider.pqc.ots.lm.LMOTSPublicKey)1 ArrayList (java.util.ArrayList)1 TableEntry (org.jcryptool.crypto.keystore.ui.dialogs.TableEntry)1