ed25519 support

My attempt to get ed25519 support for the doors in the script.
Please check function and syntax!
This commit is contained in:
LukasLenCP 2020-05-21 20:11:56 +02:00 committed by GitHub
parent 8856ba9cf4
commit e623d7f21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,8 @@ do
ssh-keygen -l -f ${keyfile} &> /dev/null
if [ $? -eq 0 ]; then
key_length=`ssh-keygen -l -f ${keyfile} | cut -d" " -f1`
if ssh-keygen -l -f id_ed25519.pub| cut -d" " -f4 == "(ED25519)"; then
key_length += 3840
if [ ${key_length} -lt 4096 ]; then
echo "Key size of key ${keyfile} not equal to 4096. Not adding it to key database." >&2
continue