2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-16 00:12:48 +00:00
This commit is contained in:
quadrismegistus 2020-09-12 15:35:28 +01:00
parent 14ffd1df51
commit 9b9df473e9

View File

@ -385,12 +385,10 @@ class Keymaker(Logger):
elif key_class == KomradeAsymmetricPrivateKey: elif key_class == KomradeAsymmetricPrivateKey:
keychain[key_name]=asymmetric_privkey keychain[key_name]=asymmetric_privkey
## otherwise, just gen? elif key_class == KomradeSymmetricKeyWithPassphrase:
elif key_type_desc==KEY_TYPE_SYMMETRIC_WITHOUT_PASSPHRASE: keychain[key_name] = KomradeSymmetricKeyWithPassphrase(passphrase)
keychain[key_name]=KomradeSymmetricKeyWithoutPassphrase() else:
keychain[key_name] = key_class()
elif key_type_desc==KEY_TYPE_SYMMETRIC_WITH_PASSPHRASE:
keychain[key_name]=KomradeSymmetricKeyWithPassphrase(passphrase=passphrase)
return keychain return keychain