Skip to content

Commit c31b9ca

Browse files
Fix typo
1 parent 6283af5 commit c31b9ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hpke.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ impl ExtensionImpl<HpkeExtension> for StagingBackend {
346346
.into())
347347
}
348348
HpkeRequest::SealKey(req) => {
349-
// TODO: need to check both secret and private keys
349+
// TODO: need to check both secret and public keys
350350
let serialized_key =
351351
keystore.load_key(key::Secrecy::Secret, None, &req.key_to_seal)?;
352352
let mut message = Message::from_slice(&serialized_key.serialize()).unwrap();
@@ -371,7 +371,7 @@ impl ExtensionImpl<HpkeExtension> for StagingBackend {
371371
Ok(HpkeSealKeyReply { data: message }.into())
372372
}
373373
HpkeRequest::SealKeyToFile(req) => {
374-
// TODO: need to check both secret and private keys
374+
// TODO: need to check both secret and public keys
375375
let serialized_key =
376376
keystore.load_key(key::Secrecy::Secret, None, &req.key_to_seal)?;
377377
let mut message = Bytes::<{ MAX_SERIALIZED_KEY_LENGTH + 32 + 16 }>::from_slice(

0 commit comments

Comments
 (0)