public KeyUtils(AlgoCryptType algo, int keySize) {
    if ((algo != AlgoCryptType.RSA) && (algo != AlgoCryptType.DSA)) {
      throw new IllegalArgumentException("Invalid algo type (" + algo + ").");
    }
    this.keySize = keySize;
  }