code: public static ScryptKDFParams getInstance(Object obj)
      {
          if (obj instanceof ScryptKDFParams) {
              return (ScryptKDFParams) obj;
          }
          if (obj != null) {
              return new ScryptKDFParams(ASN1Sequence.getInstance(obj));
          }
          return null;
      }
docs: Get an instance from an ASN.1 object.
  
  @param obj an ASN.1 object.
  @return an instance.