summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-21 16:50:23 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-21 16:50:23 +0100
commit277ca54a1cd08fe7366a29f5ee635048f95cbe31 (patch)
tree69ac7bb7269278105941f27848581cd649dadcc9 /openpgp/src/crypto
parentfe5a468195477ffa2b70ca81349d08f591a7886a (diff)
openpgp: Rename `UserID::userid()` to `value()`.
- Fixes #224.
Diffstat (limited to 'openpgp/src/crypto')
-rw-r--r--openpgp/src/crypto/hash.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/crypto/hash.rs b/openpgp/src/crypto/hash.rs
index d2dcd4a9..1ccdc3e6 100644
--- a/openpgp/src/crypto/hash.rs
+++ b/openpgp/src/crypto/hash.rs
@@ -146,14 +146,14 @@ impl Hash for UserID {
let mut header = [0; 5];
header[0] = 0xB4;
- let len = self.userid().len() as u32;
+ let len = self.value().len() as u32;
header[1] = (len >> 24) as u8;
header[2] = (len >> 16) as u8;
header[3] = (len >> 8) as u8;
header[4] = (len) as u8;
hash.update(&header[..]);
- hash.update(self.userid());
+ hash.update(self.value());
}
}