INNER CODE UNIT · Rust

writable_tag

TheMaxMur/RS-Key · crates/rsk-devconf/src/lib.rs:56

fn writable_tag(tag: u8) -> bool {
    matches!(
        tag,
        TAG_USB_ENABLED
            | TAG_AUTO_EJECT_TIMEOUT
            | TAG_CHALRESP_TIMEOUT
            | TAG_DEVICE_FLAGS
            | TAG_CONFIG_LOCK
            | TAG_CONFIG_UNLOCK
            | TAG_REBOOT
            | TAG_NFC_ENABLED
            | TAG_NFC_RESTRICTED
    )
}

const FLAG_EJECT: u8 = 0x80;
const FORM_FACTOR_USB_A_KEYCHAIN: u8 = 0x01;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…