use of de.flexiprovider.pqc.ecc.niederreiter.NiederreiterKeyFactory in project core by jcryptool.
the class NiederreiterPrivateKeyContentProvider method getKeySpecElements.
@Override
protected List<TableEntry> getKeySpecElements(Key key) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
NiederreiterKeyFactory keyFactory = new NiederreiterKeyFactory();
NiederreiterPrivateKeySpec keySpec = (NiederreiterPrivateKeySpec) keyFactory.getKeySpec(key, NiederreiterPrivateKeySpec.class);
if (keySpec == null)
return null;
} catch (ClassCastException e) {
return null;
} catch (InvalidKeySpecException e) {
return null;
}
return paramElements;
}
use of de.flexiprovider.pqc.ecc.niederreiter.NiederreiterKeyFactory in project core by jcryptool.
the class NiederreiterPublicKeyContentProvider method getKeySpecElements.
@Override
protected List<TableEntry> getKeySpecElements(Key key) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
NiederreiterKeyFactory keyFactory = new NiederreiterKeyFactory();
NiederreiterPublicKeySpec keySpec = (NiederreiterPublicKeySpec) keyFactory.getKeySpec(key, NiederreiterPublicKeySpec.class);
if (keySpec == null)
return null;
} catch (ClassCastException e) {
return null;
} catch (InvalidKeySpecException e) {
return null;
}
return paramElements;
}
Aggregations