RustCrypto / key-wraps

Symmetric key-wrapping algorithms
10 stars 6 forks source link

Add tests for AES-KW errors #9

Closed jvdsn closed 2 years ago

jvdsn commented 2 years ago

This PR adds unit tests for the four errors which can be returned by AES-KW. In particular, it's important to test whether the unwrapping function actually verifies the integrity of the ciphertext.

Additionally, I fixed some inconsistent capitalization in the comments and some inconsistent whitespace in the tests.

tarcieri commented 2 years ago

Thank you!