spaniakos / Cryptosuite

Cryptographic suite for Arduino & RPi (SHA, HMAC-SHA)
http://spaniakos.github.io/Cryptosuite/
GNU Affero General Public License v3.0
23 stars 11 forks source link

write should return the number of successful bytes written #9

Closed sterling closed 7 years ago

sterling commented 8 years ago

If I understand correctly, returning 0 signifies an error occurred, which may prevent write from receiving the entire buffer.

sterling commented 8 years ago

@spaniakos any thoughts?

spaniakos commented 8 years ago

It a good point. I am not able to check the changes currently. I will in the near future. And probably merge the changes On Mar 22, 2016 00:01, "sterling" notifications@github.com wrote:

@spaniakos https://github.com/spaniakos any thoughts?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/spaniakos/Cryptosuite/pull/9#issuecomment-199506507