From 3228a560c09d5c1d3cd8b559ab49ed33d3f8046a Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 13 Sep 2024 23:20:42 -0700 Subject: [PATCH] pss: expose salt len in the verifyingkey --- src/pss/verifying_key.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pss/verifying_key.rs b/src/pss/verifying_key.rs index 2fd62d37..8c4af749 100644 --- a/src/pss/verifying_key.rs +++ b/src/pss/verifying_key.rs @@ -46,6 +46,11 @@ where phantom: Default::default(), } } + + /// Return specified salt length for this key + pub fn salt_len(&self) -> usize { + self.salt_len + } } //