keepsimple1 / libaes

A small and fast AES cipher in safe Rust
Apache License 2.0
25 stars 1 forks source link

Reverse API change #12

Closed keepsimple1 closed 3 years ago

keepsimple1 commented 3 years ago

After using the new version 0.5.0, I became not very satisfied with the API change was not very good, for two reasons:

  1. From security point of view, I think it's better not to return a specific error if invalid key is used.
  2. The API becomes more complex.

All things considered, I think it's better to just return an empty Vec if unpad failed.

Moving forward, I will try best to keep API stable.