summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/pkesk.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-08-14 22:13:33 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-08-23 19:15:13 +0200
commit56eacae5037826b7d6bf15962065287960d8b894 (patch)
tree8f2249537cbca8904dbe2ecf45542e12404d7be3 /openpgp/src/packet/pkesk.rs
parentc678874604b1a48a9aa46276e001ed540a823c06 (diff)
openpgp: Rename SecretKey to SecretKeyMaterial.
- When the `SecretKey` type only refers to the secret key material and not a TPK-like thing, call it `SecretKeyMaterial`.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r--openpgp/src/packet/pkesk.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs
index 0ec2d4f2..c92fafe1 100644
--- a/openpgp/src/packet/pkesk.rs
+++ b/openpgp/src/packet/pkesk.rs
@@ -354,7 +354,7 @@ mod tests {
hash: HashAlgorithm::SHA256,
sym: SymmetricAlgorithm::AES256,
};
- let private_mpis = mpis::SecretKey::ECDH {
+ let private_mpis = mpis::SecretKeyMaterial::ECDH {
scalar: MPI::new(&sec[..]).into(),
};
let mut key: Key = Key4::new(time::now().canonicalize(),