Skip to content

Commit

Permalink
pss: expose salt len in the verifyingkey (#448)
Browse files Browse the repository at this point in the history
Some vendor serialization (NDA :() of signature and public keys will
need the size of the salt that was used for signature. Sadly this is
only exposed in the signing key (which may be out of reach (HSM)).
  • Loading branch information
baloo committed Sep 14, 2024
1 parent aeedb5a commit a39a5e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pss/verifying_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ where
phantom: Default::default(),
}
}

/// Return specified salt length for this key
pub fn salt_len(&self) -> usize {
self.salt_len
}
}

//
Expand Down

0 comments on commit a39a5e5

Please sign in to comment.