public static void checkKey(PublicKey key) throws GigiApiException {
- if (checks.isEmpty()) {
+ if (checks.isEmpty() || checks.size() < 3) {
// Mandatory checks are registered here
+ register(new KeyCheckPublicKeyFormat());
+ register(new KeyCheckSmallFactors());
+ register(new KeyCheckROCA());
}
if (key == null) {