// See file LICENSE for more information.

library impl.ec_domain_parameters.gostr3410_2001_cryptopro_c;

import 'package:pointycastle/ecc/api.dart';
import 'package:pointycastle/ecc/ecc_base.dart';
import 'package:pointycastle/src/ec_standard_curve_constructor.dart';
import 'package:pointycastle/src/registry/registry.dart';

// ignore: camel_case_types
class ECCurve_gostr3410_2001_cryptopro_c extends ECDomainParametersImpl {
  static final FactoryConfig factoryConfig = StaticFactoryConfig(
      ECDomainParameters,
      'GostR3410-2001-CryptoPro-C',
      () => ECCurve_gostr3410_2001_cryptopro_c());

  factory ECCurve_gostr3410_2001_cryptopro_c() => constructFpStandardCurve(
      'GostR3410-2001-CryptoPro-C', ECCurve_gostr3410_2001_cryptopro_c._make,
      q: BigInt.parse(
          '9b9f605f5a858107ab1ec85e6b41c8aacf846e86789051d37998f7b9022d759b',
          radix: 16),
      a: BigInt.parse(
          '9b9f605f5a858107ab1ec85e6b41c8aacf846e86789051d37998f7b9022d7598',
          radix: 16),
      b: BigInt.parse('805a', radix: 16),
      g: BigInt.parse(
          '04000000000000000000000000000000000000000000000000000000000000000041ece55743711a8c3cbf3783cd08c0ee4d4dc440d4641a8f366e550dfdb3bb67',
          radix: 16),
      n: BigInt.parse(
          '9b9f605f5a858107ab1ec85e6b41c8aa582ca3511eddfb74f02f3a6598980bb9',
          radix: 16),
      h: BigInt.parse('1', radix: 16),
      seed: null) as ECCurve_gostr3410_2001_cryptopro_c;

  static ECCurve_gostr3410_2001_cryptopro_c _make(String domainName,
          ECCurve curve, ECPoint G, BigInt n, BigInt h, List<int>? seed) =>
      ECCurve_gostr3410_2001_cryptopro_c._super(
          domainName, curve, G, n, h, seed);

  ECCurve_gostr3410_2001_cryptopro_c._super(super.domainName, super.curve,
      super.G, super.n, BigInt super._h, super.seed);
}
