use of de.flexiprovider.ec.parameters.CurveParams in project core by jcryptool.
the class ECPublicKeyContentProvider method getParameters.
private List<TableEntry> getParameters(ECPublicKey key) {
CurveParams params = (CurveParams) key.getParams();
List<TableEntry> paramElements = new ArrayList<TableEntry>();
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_k, "" + params.getK()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_r, "" + params.getR()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_oidstring, "" + params.getOID()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_ellipticcurve, "" + params.getE()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_g, "" + params.getG()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_q, "" + params.getQ()));
return paramElements;
}
use of de.flexiprovider.ec.parameters.CurveParams in project core by jcryptool.
the class ECPrivateKeyContentProvider method getParameters.
private List<TableEntry> getParameters(ECPrivateKey key) {
CurveParams params = (CurveParams) key.getParams();
List<TableEntry> paramElements = new ArrayList<TableEntry>();
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_k, "" + params.getK()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_r, "" + params.getR()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_oidstring, "" + params.getOID()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_ellipticcurve, "" + params.getE()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_g, "" + params.getG()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_q, "" + params.getQ()));
return paramElements;
}
Aggregations