Add support for p256tag

This commit is contained in:
Jack Grigg
2025-12-08 03:45:43 +00:00
parent 4f13e2fc27
commit 0057a1825e
10 changed files with 453 additions and 8 deletions
+4 -1
View File
@@ -138,7 +138,10 @@ impl Recipient {
impl RecipientLine {
pub(crate) fn unwrap_file_key(&self, conn: &mut Connection) -> Result<FileKey, ()> {
let crate::recipient::Recipient::PivP256(recipient) = conn.recipient();
let recipient = match conn.recipient() {
crate::recipient::Recipient::PivP256(recipient) => recipient,
_ => panic!("should have been filtered out earlier"),
};
assert_eq!(self.tag, recipient.tag());
let salt = salt(&self.epk_bytes, recipient);