aboutsummaryrefslogtreecommitdiff
path: root/src/kem.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-11-27 17:30:24 +0100
committerDaniel Schadt <kingdread@gmx.de>2023-11-27 17:30:24 +0100
commit8315134d78b954af830b114512dbb5de6145dc66 (patch)
treec77d7cc27ac59110b61763b7faa7b565d62c6590 /src/kem.rs
parentbe9d0e07c3377a13f96363fd8bd7925b3ae17778 (diff)
downloadhohibe-8315134d78b954af830b114512dbb5de6145dc66.tar.gz
hohibe-8315134d78b954af830b114512dbb5de6145dc66.tar.bz2
hohibe-8315134d78b954af830b114512dbb5de6145dc66.zip
rename EmptyIdentity -> DerivingRoot
Seems to fit better what the error actually means.
Diffstat (limited to 'src/kem.rs')
-rw-r--r--src/kem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kem.rs b/src/kem.rs
index a8261b6..091247d 100644
--- a/src/kem.rs
+++ b/src/kem.rs
@@ -298,7 +298,7 @@ impl<M> HybridKem<M> {
{
let identity = self.mapper.map_identity(identity)?;
let Some((child, parent)) = identity.split_last() else {
- return Err(Error::EmptyIdentity);
+ return Err(Error::DerivingRoot);
};
let private_key = self
.hibe