Skip to content

Checksum a block of data. Can detect signed blocks inside random data.

Notifications You must be signed in to change notification settings

hashmismatch/signed_buffer.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

signed_buffer

A small helper to encode a byte-array payload with a prefix, buffer size, payload, checksum and a postfix marker. It can detect multiple valid signed buffers in a large byte array by skipping over all of them until finding the last valid one.

Helpful for implementing an ad-hoc config storage on a flash memory block on a MCU.

This crate doesn’t use the standard library, and so requires the nightly Rust channel.

Usage

Get the source:

$ git clone https://github.com/hashmismatch/signed_buffer.rs
$ cd signed_buffer

Then build:

$ cargo build

And test:

$ cargo test

About

Checksum a block of data. Can detect signed blocks inside random data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages