// See file LICENSE for more information.

library impl.ec_domain_parameters.secp160r1;

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_secp160r1 extends ECDomainParametersImpl {
  static final FactoryConfig factoryConfig = StaticFactoryConfig(
      ECDomainParameters, 'secp160r1', () => ECCurve_secp160r1());

  factory ECCurve_secp160r1() => constructFpStandardCurve(
      'secp160r1', ECCurve_secp160r1._make,
      q: BigInt.parse('ffffffffffffffffffffffffffffffff7fffffff', radix: 16),
      a: BigInt.parse('ffffffffffffffffffffffffffffffff7ffffffc', radix: 16),
      b: BigInt.parse('1c97befc54bd7a8b65acf89f81d4d4adc565fa45', radix: 16),
      g: BigInt.parse(
          '044a96b5688ef573284664698968c38bb913cbfc8223a628553168947d59dcc912042351377ac5fb32',
          radix: 16),
      n: BigInt.parse('100000000000000000001f4c8f927aed3ca752257', radix: 16),
      h: BigInt.parse('1', radix: 16),
      seed: BigInt.parse('1053cde42c14d696e67687561517533bf3f83345',
          radix: 16)) as ECCurve_secp160r1;

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

  ECCurve_secp160r1._super(super.domainName, super.curve, super.G, super.n,
      BigInt super._h, List<int> super.seed);
}
