Commit graph

28 commits

Author SHA1 Message Date
Chris Hennick
fd6c1548a4
Merge branch 'master' into expose-aes-info 2024-05-23 12:39:58 -07:00
Chris Hennick
e08548392d
test: Tests in aes.rs can only run when aes-crypto is enabled 2024-05-23 12:39:37 -07:00
Arnaud Gourlay
6db572ce65
review & clippy 2024-05-23 20:14:01 +02:00
Arnaud Gourlay
6da1faa4f1
code review 2024-05-23 20:14:00 +02:00
Arnaud Gourlay
985d3a7809
Expose AES information 2024-05-23 20:14:00 +02:00
Johannes Löthberg
d824fc2088
Make crypto validate methods return ZipError when signifying invalid passwords
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Johannes Löthberg
d096e4dbf1
Add support for writing AES-encrypted files
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Johannes Löthberg
a17578990b
Add AesWriter
Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Johannes Löthberg
7c1e21403f
Wrap AesCtrZipKeyStream in inner Cipher enum
Boxing it as we were doing previously lead to the writer not being Send
anymore.

Signed-off-by: Johannes Löthberg <johannes.loethberg@elokon.com>
2024-05-06 16:37:05 +02:00
Chris Hennick
161bd87724 Refactor to use boxed slices instead of Vec where possible 2024-04-08 12:09:23 -07:00
Chris Hennick
3cb826fe8b
Make functions const where possible 2023-06-07 22:15:06 -07:00
Chris Hennick
491c512d6c
Update AES library (API has changed) 2023-04-23 16:00:27 -07:00
Lireer
3d56021052 use hmac reset feature for finalize_reset method 2022-01-30 15:14:47 +01:00
Lireer
2e06844429 fix clippy warning and shorten links in tests 2022-01-26 14:53:19 +01:00
Lireer
85bb91fb50 update aes-crypto dependencies 2022-01-26 14:52:10 +01:00
Lireer
3a71893711 run cargo fmt 2022-01-25 20:57:27 +01:00
Lireer
35d8f04496 "fix" clippy warnings 2022-01-25 20:42:51 +01:00
Lireer
bb97711761 explain trait guarantee violation of read impl 2022-01-25 20:39:22 +01:00
Lireer
d7f0a182b6 Merge remote-tracking branch 'zip-rs/zip/master' 2022-01-25 17:48:45 +01:00
Lireer
46f65d4d49 add aes-crypto feature to default and update README 2021-08-06 12:42:35 +02:00
Lireer
8f352c30f1 add missing documentation 2021-08-05 21:16:11 +02:00
Lireer
48b52a7e86 move AesMode and AesVendorVersion out of aes-crypto feature 2021-08-05 21:16:11 +02:00
Lireer
5f0ae55eae Document possible panics 2021-08-05 21:06:47 +02:00
Lireer
5532fd6f09 Document aes related modules 2021-08-05 21:06:47 +02:00
Lireer
354993d906 feature gate aes decryption 2021-08-05 21:06:47 +02:00
Lireer
e69df5cf64 finalize aes decryption 2021-08-04 20:08:12 +02:00
Lireer
d25d6f5f57 finalize AesReader validation and most of decryption 2021-08-04 19:56:14 +02:00
Lireer
852ab625fb initial aes reader 2021-08-04 19:02:22 +02:00