Skip to content
Snippets Groups Projects

Draft: feat: Add `signstar-sign`

Open Wiktor Kwapisiewicz requested to merge wiktor/signstar-sign into main
Files
10
+ 2
2
@@ -6030,7 +6030,7 @@ impl NetHsm {
openpgp::sign(self, key_id, message)
}
/// Generates an OpenPGP signature based on provided hasher state.
/// Generates an armored OpenPGP signature based on provided hasher state.
///
/// Signs the hasher `state` using the key identified by `key_id`
/// and returns a binary [OpenPGP data signature].
@@ -6139,7 +6139,7 @@ impl NetHsm {
&self,
key_id: &KeyId,
state: impl sha2::Digest + Clone + std::io::Write,
) -> Result<Vec<u8>, crate::Error> {
) -> Result<String, crate::Error> {
openpgp::sign_hasher_state(self, key_id, state)
}
}
Loading