Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/key_generators/ec_key_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import 'package:pointycastle/src/registry/registry.dart';

/// Abstract [CipherParameters] to init an ECC key generator.
class ECKeyGenerator implements KeyGenerator {
static final FactoryConfig factoryConfig =
StaticFactoryConfig(KeyGenerator, 'EC', () => ECKeyGenerator());
static final FactoryConfig factoryConfig = StaticFactoryConfig(KeyGenerator, 'EC', () => ECKeyGenerator());

late ECDomainParameters _params;
late SecureRandom _random;
Expand All @@ -34,7 +33,7 @@ class ECKeyGenerator implements KeyGenerator {
}

@override
AsymmetricKeyPair generateKeyPair() {
AsymmetricKeyPair<ECPublicKey, ECPrivateKey> generateKeyPair() {
var n = _params.n;
var nBitLength = n.bitLength;
BigInt? d;
Expand Down