Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 760 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 760 Bytes

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