Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Oct 9, 2024
1 parent 6283af5 commit c31b9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hpke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ impl ExtensionImpl<HpkeExtension> for StagingBackend {
.into())
}
HpkeRequest::SealKey(req) => {
// TODO: need to check both secret and private keys
// TODO: need to check both secret and public keys
let serialized_key =
keystore.load_key(key::Secrecy::Secret, None, &req.key_to_seal)?;
let mut message = Message::from_slice(&serialized_key.serialize()).unwrap();
Expand All @@ -371,7 +371,7 @@ impl ExtensionImpl<HpkeExtension> for StagingBackend {
Ok(HpkeSealKeyReply { data: message }.into())
}
HpkeRequest::SealKeyToFile(req) => {
// TODO: need to check both secret and private keys
// TODO: need to check both secret and public keys
let serialized_key =
keystore.load_key(key::Secrecy::Secret, None, &req.key_to_seal)?;
let mut message = Bytes::<{ MAX_SERIALIZED_KEY_LENGTH + 32 + 16 }>::from_slice(
Expand Down

0 comments on commit c31b9ca

Please sign in to comment.