intel / tinycrypt

tinycrypt is a library of cryptographic algorithms with a focus on small, simple implementation.
Other
436 stars 154 forks source link

AES128 does not operate correctly on a system with some int sizes #31

Open EtchedPixels opened 6 years ago

EtchedPixels commented 6 years ago

set_encrypt_key assumes that unsigned int is at least 32bits. It should I think be using either uint32_t or better yet uint32_fast_t.

SHA256 is also riddled with the same flaw