summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/hash.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-21 16:55:04 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-21 18:09:47 +0200
commitf1ae1baa4d1b2a52f490b4faaabea7bdf1029568 (patch)
tree58e2c57b07e40412486bf50caf71c670b399ba65 /openpgp/src/crypto/hash.rs
parent8af5e4357c7348fe231b70a0fbe19788137caaa3 (diff)
openpgp: Rename signature::Builder to signature::SignatureBuilder.
- Rename all calls to `Builder` with `SignatureBuilder`. - Fixes #481.
Diffstat (limited to 'openpgp/src/crypto/hash.rs')
-rw-r--r--openpgp/src/crypto/hash.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/openpgp/src/crypto/hash.rs b/openpgp/src/crypto/hash.rs
index 433b7506..9605318f 100644
--- a/openpgp/src/crypto/hash.rs
+++ b/openpgp/src/crypto/hash.rs
@@ -322,7 +322,7 @@ impl Hash for Signature4 {
}
}
-impl Hash for signature::Builder {
+impl Hash for signature::SignatureBuilder {
/// Adds the `Signature` to the provided hash context.
fn hash(&self, hash: &mut Context) {
use crate::serialize::MarshalInto;
@@ -389,7 +389,7 @@ impl Hash for signature::Builder {
impl Signature {
/// Computes the message digest of standalone signatures.
pub fn hash_standalone<'a, S>(sig: S) -> Result<Vec<u8>>
- where S: Into<&'a signature::Builder>
+ where S: Into<&'a signature::SignatureBuilder>
{
let sig = sig.into();
let mut h = sig.hash_algo().context()?;
@@ -403,7 +403,7 @@ impl Signature {
/// Computes the message digest of timestamp signatures.
pub fn hash_timestamp<'a, S>(sig: S) -> Result<Vec<u8>>
- where S: Into<&'a signature::Builder>
+ where S: Into<&'a signature::SignatureBuilder>
{
Self::hash_standalone(sig)
}
@@ -413,7 +413,7 @@ impl Signature {
pub fn hash_direct_key<'a, P, S>(sig: S, key: &Key<P, key::PrimaryRole>)
-> Result<Vec<u8>>
where P: key::KeyParts,
- S: Into<&'a signature::Builder>,
+ S: Into<&'a signature::SignatureBuilder>,
{
let sig = sig.into();
@@ -436,7 +436,7 @@ impl Signature {
-> Result<Vec<u8>>
where P: key::KeyParts,
Q: key::KeyParts,
- S: Into<&'a signature::Builder>
+ S: Into<&'a signature::SignatureBuilder>
{
let sig = sig.into();
@@ -460,7 +460,7 @@ impl Signature {
-> Result<Vec<u8>>
where P: key::KeyParts,
Q: key::KeyParts,
- S: Into<&'a signature::Builder>
+ S: Into<&'a signature::SignatureBuilder>
{
Self::hash_subkey_binding(sig.into(), key, subkey)
}
@@ -472,7 +472,7 @@ impl Signature {
userid: &UserID)
-> Result<Vec<u8>>
where P: key::KeyParts,
- S: Into<&'a signature::Builder>
+ S: Into<&'a signature::SignatureBuilder>
{
let sig = sig.into();
let mut h = sig.hash_algo().context()?;
@@ -494,7 +494,7 @@ impl Signature {
ua: &UserAttribute)
-> Result<Vec<u8>>
where P: key::KeyParts,
- S: Into<&'a signature::Builder>,
+ S: Into<&'a signature::SignatureBuilder>,
{
let sig = sig.into();