Cargo Features
pqc_dilithium has no features set by default.
[dependencies]
pqc_dilithium = { version = "0.2.0", features = ["mode2", "mode5", "aes", "random_signing", "wasm"] }
- mode2
-
By default this library uses mode3, also called Dilithium3
- mode3 mode5
- aes
-
Enables AES mode which uses AES-256 in counter mode instead of SHAKE
Affects
symmetric::Stream128State
,symmetric::Stream256State
,symmetric::STREAM128_BLOCKBYTES
,symmetric::STREAM256_BLOCKBYTES
,symmetric::dilithium_aes256ctr_init
… - random_signing
-
Produces a random signature everytime when signing the same message.
One may want to consider randomized signatures in situations where the side channel attacks exploiting determinism are applicable. Another situation where one may want to avoid determinism is when the signer does not wish to reveal the message that is being signed. - wasm = wasm-bindgen
-
For compiling to wasm targets
Enables getrandom
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.