newKeyPair method
Generates a new KeyPair that can be used with this algorithm.
Example
In this example, we use X25519:
import 'package:cryptography_plus/cryptography_plus.dart';
Future<void> main() async {
final algorithm = X25519();
final keyPair = await algorithm.newKeyPair();
}
Implementation
@override
Future<KeyPair> newKeyPair() {
return fallback.newKeyPair();
}