Skip to content

Commit

Permalink
undo more unwrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
keks committed Aug 22, 2024
1 parent 87f8dfd commit f3c0727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ impl<Crypto: HpkeCrypto> Hpke<Crypto> {
psk_id: Option<&[u8]>,
pk_s: Option<&HpkePublicKey>,
) -> Result<Plaintext, HpkeError> {
let mut context = self.setup_receiver(enc, sk_r, info, psk, psk_id, pk_s).unwrap();
let mut context = self.setup_receiver(enc, sk_r, info, psk, psk_id, pk_s)?;
context.open(aad, ct)
}

Expand Down

0 comments on commit f3c0727

Please sign in to comment.