diff --git a/lib/src/keyspec.dart b/lib/src/keyspec.dart new file mode 100644 index 0000000..20b43df --- /dev/null +++ b/lib/src/keyspec.dart @@ -0,0 +1,21 @@ +// Copyright (c) 2020 +// Author: Hugo Pointcheval + +/// This represents security parameters. +abstract class KeySpec { + /// Returns the standard algorithm name for this key + String get algorithm; +} + +class RSAKeySpec implements KeySpec { + int _size; + + String get algorithm => "RSA"; + + /// Returns the size of RSA keys + int get size => _size; + + RSAKeySpec(int size) { + _size = size; + } +}