INNER CODE UNIT · Rust

verify

cloudflare/web-bot-auth · crates/web-bot-auth/src/lib.rs:341

    pub fn verify(
        self,
        keyring: &KeyRing,
        key_id: Option<String>,
    ) -> Result<SignatureTiming, ImplementationError> {
        let advisory = self
            .message_verifier
            .parsed
            .base
            .parameters
            .details
            .possibly_insecure(|_| false);
        // Web Bot Auth parse requires `created` and `expires`; treat missing
        // or unparsable timestamps as out of window.
        if advisory.is_created_in_future.unwrap_or(true) {
            return Err(ImplementationError::WebBotAuth(
                WebBotAuthError::SignatureCreatedInFuture,
            ));

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…