Search in sources :

Example 1 with RSAControl

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

the class BSpeedP11RSASignCmd method nextTester.

@Override
protected LoadExecutor nextTester() throws Exception {
    RSAControl control = queue.poll();
    if (control == null) {
        return null;
    }
    P11Slot slot = getSlot();
    return new P11RSASignLoadTest(securityFactory, slot, sigAlgo, control.modulusLen(), toBigInt("0x10001"));
}
Also used : P11RSASignLoadTest(org.xipki.security.speed.p11.P11RSASignLoadTest) P11Slot(org.xipki.security.pkcs11.P11Slot) RSAControl(org.xipki.security.speed.cmd.RSAControl)

Example 2 with RSAControl

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

the class BSpeedP11RSAKeyGenCmd method nextTester.

@Override
protected LoadExecutor nextTester() throws Exception {
    RSAControl control = queue.poll();
    if (control == null) {
        return null;
    }
    P11Slot slot = getSlot();
    return new P11RSAKeyGenLoadTest(slot, control.modulusLen(), toBigInt("0x10001"));
}
Also used : P11Slot(org.xipki.security.pkcs11.P11Slot) P11RSAKeyGenLoadTest(org.xipki.security.speed.p11.P11RSAKeyGenLoadTest) RSAControl(org.xipki.security.speed.cmd.RSAControl)

Aggregations

P11Slot (org.xipki.security.pkcs11.P11Slot)2 RSAControl (org.xipki.security.speed.cmd.RSAControl)2 P11RSAKeyGenLoadTest (org.xipki.security.speed.p11.P11RSAKeyGenLoadTest)1 P11RSASignLoadTest (org.xipki.security.speed.p11.P11RSASignLoadTest)1