Cosmian / crypto_core

Other
1 stars 1 forks source link

Make const public in aes_256_gcm_pure/mod.rs #37

Closed bgrieder closed 1 year ago

bgrieder commented 1 year ago

These const should be public for ease of use Indownstream code

/// Use a 256-bit AES key.
const KEY_LENGTH: usize = 32;

/// Use a 96-bit nonce.
const NONCE_LENGTH: usize = 12;

/// Use a 128-bit MAC tag.
const MAC_LENGTH: usize = 16;
bgrieder commented 1 year ago

The const are now public on the implementation

https://github.com/Cosmian/crypto_core/blob/aab3e7d039a1cd81362b78ec6bf0c4f9e9297ae0/src/symmetric_crypto/aes_256_gcm.rs#L23