Merge pull request 'feat(ssh): Add support for ECDSA SSH keys' (#362) from ssh-edcsa into master
continuous-integration/drone/push Build is passing Details

Reviewed-on: #362
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
pull/371/head^2
NaiJi ✨ 2023-10-03 20:57:51 +03:00
commit dd54f5fa42
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@
"no_key_name": "Unnamed key", "no_key_name": "Unnamed key",
"root_title": "These are superuser keys", "root_title": "These are superuser keys",
"root_subtitle": "Owners of these keys get full access to the server and can do anything on it. Only add your own keys to the server.", "root_subtitle": "Owners of these keys get full access to the server and can do anything on it. Only add your own keys to the server.",
"input_label": "Public ED25519 or RSA key" "input_label": "Public ED25519, ECDSA or RSA key"
}, },
"onboarding": { "onboarding": {
"page1_title": "Digital independence, available to all of us", "page1_title": "Digital independence, available to all of us",

View File

@ -12,7 +12,7 @@ class SshFormCubit extends FormCubit {
required this.user, required this.user,
}) { }) {
final RegExp keyRegExp = RegExp( final RegExp keyRegExp = RegExp(
r'^(ssh-rsa AAAAB3NzaC1yc2|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5)[0-9A-Za-z+/]+[=]{0,3}( .*)?$', r'^(ecdsa-sha2-nistp256 AAAAE2VjZH|ssh-rsa AAAAB3NzaC1yc2|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5)[0-9A-Za-z+/]+[=]{0,3}( .*)?$',
); );
key = FieldCubit( key = FieldCubit(