Skip to main content

detached_signing_input

Function detached_signing_input 

Source
pub fn detached_signing_input(
    alg: JwsAlg,
    kid: Option<&str>,
    external_payload: &[u8],
) -> SignatifResult<String>
Expand description

Produce the detached JWS signing input: BASE64URL(UTF8(ASCII(header))) "." BASE64URL(payload), where the payload is the external content (typically the JCS canonical bytes).

ยงErrors

Encoding errors from header serialization or base64url.