Search in sources :

Example 1 with ECControl

use of org.xipki.security.speed.cmd.ECControl in project xipki by xipki.

the class BSpeedP11ECSignCmd method nextTester.

@Override
protected LoadExecutor nextTester() throws Exception {
    ECControl control = queue.poll();
    if (control == null) {
        return null;
    }
    P11Slot slot = getSlot();
    return new P11ECSignLoadTest(securityFactory, slot, sigAlgo, control.curveName());
}
Also used : P11Slot(org.xipki.security.pkcs11.P11Slot) P11ECSignLoadTest(org.xipki.security.speed.p11.P11ECSignLoadTest) ECControl(org.xipki.security.speed.cmd.ECControl)

Example 2 with ECControl

use of org.xipki.security.speed.cmd.ECControl in project xipki by xipki.

the class BSpeedP11ECKeyGenCmd method nextTester.

@Override
protected LoadExecutor nextTester() throws Exception {
    ECControl control = queue.poll();
    if (control == null) {
        return null;
    }
    P11Slot slot = getSlot();
    return new P11ECKeyGenLoadTest(slot, control.curveName());
}
Also used : P11Slot(org.xipki.security.pkcs11.P11Slot) P11ECKeyGenLoadTest(org.xipki.security.speed.p11.P11ECKeyGenLoadTest) ECControl(org.xipki.security.speed.cmd.ECControl)

Aggregations

P11Slot (org.xipki.security.pkcs11.P11Slot)2 ECControl (org.xipki.security.speed.cmd.ECControl)2 P11ECKeyGenLoadTest (org.xipki.security.speed.p11.P11ECKeyGenLoadTest)1 P11ECSignLoadTest (org.xipki.security.speed.p11.P11ECSignLoadTest)1