avr-progmem-rs icon indicating copy to clipboard operation
avr-progmem-rs copied to clipboard

Write examples with larger arrays

Open riking opened this issue 2 years ago • 1 comments

All of the array sizes in the documentation examples seem to be fairly small: the element type is always bytes, and the size is never more than about 5. I think that an example of hash function round constants would be more compelling, such as the data found here:

https://github.com/jedisct1/rust-hmac-sha256/blob/e787a2e40ce00c7e27b336207cdec730226ff6f1/src/lib.rs#L127-L138

Here, the program needs 64 u32s and loads (up to) 16 at a time.

Motivated via https://github.com/rust-lang/rust/issues/109000.

riking avatar Jun 06 '23 18:06 riking

Certainly, a more elaborate example would be a welcome addition. Tho, an entire HMAC implementation seems a bit excessive. If you have a good idea for an example with a more 'practical' array demonstration that isn't worth an entire crate on its own, I would gladly accept your PR.

Cryptjar avatar Jun 09 '23 22:06 Cryptjar