Cosmian / crypto_core

Other
1 stars 1 forks source link

aes_256_gcm_pure/mod.rs: size of keys and nonces not enforced #38

Closed bgrieder closed 1 year ago

bgrieder commented 1 year ago

encrypt_combined, encrypt_in_place_detached,decrypt_combined, decrypt_in_place_detached do not enforce the correct size on Nonces and Keys.

They should at least take fixed_size arrays arrays (or preferably support other size of keys such as 128 and 192 bits)

bgrieder commented 1 year ago

The Dem traits now enforce lengths using const generics