use of org.xipki.security.speed.p11.P11DSASignLoadTest in project xipki by xipki.
the class BSpeedP11DSASignCmd method nextTester.
@Override
protected LoadExecutor nextTester() throws Exception {
DSAControl control = queue.poll();
if (control == null) {
return null;
}
P11Slot slot = getSlot();
if (control.plen() == 1024) {
if (!"SHA1withDSA".equalsIgnoreCase(sigAlgo)) {
throw new IllegalCmdParamException("only SHA1withDSA is permitted for DSA with 1024 bit");
}
}
return new P11DSASignLoadTest(securityFactory, slot, sigAlgo, control.plen(), control.qlen());
}
Aggregations