use of org.xipki.security.speed.cmd.DSAControl in project xipki by xipki.
the class BSpeedP11DSAKeyGenCmd method nextTester.
@Override
protected LoadExecutor nextTester() throws Exception {
DSAControl control = queue.poll();
if (control == null) {
return null;
}
P11Slot slot = getSlot();
return new P11DSAKeyGenLoadTest(slot, control.plen(), control.qlen());
}
use of org.xipki.security.speed.cmd.DSAControl 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