Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

is_valid_rsa2048_sha256_signature

Verify an RSA-2048 signature against a raw message using SHA-256.

Computes SHA-256(message) on-chain, constructs the PKCS#1 v1.5 encoding, asserts it matches the expected_message hint, then delegates to the existing RNS-based RSA verification.

Fully qualified path: garaga::signatures::rsa::is_valid_rsa2048_sha256_signature

pub fn is_valid_rsa2048_sha256_signature(
    signature: @RSA2048SignatureWithHint, public_key: @RSA2048PublicKey, message: @ByteArray,
) -> bool