summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/asymmetric.rs
diff options
context:
space:
mode:
authorJann Ròˆder <jann@macports.org>2019-08-21 11:09:06 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-08-21 11:24:37 +0200
commit6365d87f01f38101745894f57f79801526d8791e (patch)
tree3f9adbb6cf5c231d6f3fee74786adc5cca44213c /openpgp/src/crypto/asymmetric.rs
parentfd696aff62f9db7a401aeb2ecd65aa2f3e0fc56e (diff)
openpgp: Typos.
Diffstat (limited to 'openpgp/src/crypto/asymmetric.rs')
-rw-r--r--openpgp/src/crypto/asymmetric.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs
index 2fbe6e01..b970843d 100644
--- a/openpgp/src/crypto/asymmetric.rs
+++ b/openpgp/src/crypto/asymmetric.rs
@@ -144,8 +144,8 @@ impl Signer for KeyPair {
// Nettle expects the private key to be exactly
// ED25519_KEY_SIZE bytes long but OpenPGP allows leading
// zeros to be stripped.
- // Padding has to be unconditionaly, otherwise we have a
- // secret-dependant branch.
+ // Padding has to be unconditional; otherwise we have a
+ // secret-dependent branch.
let missing = ed25519::ED25519_KEY_SIZE
.saturating_sub(scalar.value().len());
let mut sec = [0u8; ed25519::ED25519_KEY_SIZE];