diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-20 19:24:37 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-20 19:24:37 +0100 |
commit | 291edaec90f6ef8dd6daab96478bd7d33a0066ab (patch) | |
tree | f631d7c50c300beea776b4edbdb27ba27ef90d22 /openpgp/src/crypto/asymmetric.rs | |
parent | f8d10cf720697be099ef1e9a3d72462e50e82f28 (diff) |
openpgp: Typo.
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 { .. }, |