38 lines
1.6 KiB
Dart
38 lines
1.6 KiB
Dart
// See file LICENSE for more information.
|
|
|
|
library impl.ec_domain_parameters.secp192r1;
|
|
|
|
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_secp192r1 extends ECDomainParametersImpl {
|
|
static final FactoryConfig factoryConfig = StaticFactoryConfig(
|
|
ECDomainParameters, 'secp192r1', () => ECCurve_secp192r1());
|
|
|
|
factory ECCurve_secp192r1() => constructFpStandardCurve(
|
|
'secp192r1', ECCurve_secp192r1._make,
|
|
q: BigInt.parse('fffffffffffffffffffffffffffffffeffffffffffffffff',
|
|
radix: 16),
|
|
a: BigInt.parse('fffffffffffffffffffffffffffffffefffffffffffffffc',
|
|
radix: 16),
|
|
b: BigInt.parse('64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1',
|
|
radix: 16),
|
|
g: BigInt.parse(
|
|
'04188da80eb03090f67cbf20eb43a18800f4ff0afd82ff101207192b95ffc8da78631011ed6b24cdd573f977a11e794811',
|
|
radix: 16),
|
|
n: BigInt.parse('ffffffffffffffffffffffff99def836146bc9b1b4d22831',
|
|
radix: 16),
|
|
h: BigInt.parse('1', radix: 16),
|
|
seed: BigInt.parse('3045ae6fc8422f64ed579528d38120eae12196d5',
|
|
radix: 16)) as ECCurve_secp192r1;
|
|
|
|
static ECCurve_secp192r1 _make(String domainName, ECCurve curve, ECPoint G,
|
|
BigInt n, BigInt h, List<int> seed) =>
|
|
ECCurve_secp192r1._super(domainName, curve, G, n, h, seed);
|
|
|
|
ECCurve_secp192r1._super(super.domainName, super.curve, super.G, super.n,
|
|
BigInt super._h, List<int> super.seed);
|
|
}
|