MCPcopy Create free account
hub / github.com/RustCrypto/SSH / signed_data

Method signed_data

ssh-key/src/sshsig.rs:198–200  ·  view source on GitHub ↗

Get the raw "enveloped" message over which the signature for a given input message is computed. This is a low-level function intended for uses cases which can't be expressed using [`SshSig::sign`], such as if the [`SigningKey`] trait can't be used for some reason. Once a [`Signature`] has been computed over the returned byte vector, [`SshSig::new`] can be used to construct the final signature.

(namespace: &str, hash_alg: HashAlg, msg: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

as_sliceMethod · 0.80
digestMethod · 0.80

Tested by

no test coverage detected