From 291edaec90f6ef8dd6daab96478bd7d33a0066ab Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 20 Feb 2020 19:24:37 +0100 Subject: openpgp: Typo. --- openpgp/src/crypto/asymmetric.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openpgp/src/crypto/asymmetric.rs') 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 { .. }, -- cgit v1.2.3