diff options
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r-- | openpgp/src/crypto/asymmetric.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs index 73d9f4df..b8c6ecd9 100644 --- a/openpgp/src/crypto/asymmetric.rs +++ b/openpgp/src/crypto/asymmetric.rs @@ -252,11 +252,11 @@ impl Decryptor for KeyPair { } } - (PublicKey::Elgamal{ .. }, - mpis::SecretKeyMaterial::Elgamal{ .. }, - mpis::Ciphertext::Elgamal{ .. }) => + (PublicKey::ElGamal{ .. }, + mpis::SecretKeyMaterial::ElGamal{ .. }, + mpis::Ciphertext::ElGamal{ .. }) => return Err( - Error::UnsupportedPublicKeyAlgorithm(ElgamalEncrypt).into()), + Error::UnsupportedPublicKeyAlgorithm(ElGamalEncrypt).into()), (PublicKey::ECDH{ .. }, mpis::SecretKeyMaterial::ECDH { .. }, |