mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-16 00:12:48 +00:00
updates
This commit is contained in:
parent
14ffd1df51
commit
9b9df473e9
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user