import Crypto.Cipher.Blowfish as _crypto_cipher_blowfish
import Crypto.Cipher.CAST as _crypto_cipher_cast
import Crypto.Cipher.DES3 as _crypto_cipher_des3
+import Crypto.PublicKey.DSA as _crypto_publickey_dsa
+import Crypto.PublicKey.ElGamal as _crypto_publickey_elgamal
+import Crypto.PublicKey.RSA as _crypto_publickey_rsa
def _get_stdout(args, stdin=None):
}
_crypto_module = {
+ # symmetric-key encryption
'aes with 128-bit key': _crypto_cipher_aes,
'aes with 192-bit key': _crypto_cipher_aes,
'aes with 256-bit key': _crypto_cipher_aes,
'blowfish': _crypto_cipher_blowfish,
'cast5': _crypto_cipher_cast,
'tripledes': _crypto_cipher_des3,
+ # public-key encryption
+ 'dsa (digital signature algorithm)': _crypto_publickey_dsa,
+ 'elgamal (encrypt-only)': _crypto_publickey_elgamal,
+ 'rsa (encrypt or sign)': _crypto_publickey_rsa,
+ 'rsa encrypt-only': _crypto_publickey_rsa,
+ 'rsa sign-only': _crypto_publickey_rsa,
}
_key_size = { # in bits