someone42 / hardware-bitcoin-wallet

A minimal Bitcoin wallet intended for embedded devices
BSD 2-Clause "Simplified" License
151 stars 44 forks source link

Encapsulate buffers in structs #4

Open someone42 opened 11 years ago

someone42 commented 11 years ago

Byte buffers (eg. for AES expanded keys) should be encapsulated in structs. This exploits C's type system to enforce buffer size preconditions.