add chaffing feature to the swapper

the main imagined attack vector on the swapper is recovery
of the AES key through side channel analysis.
This commit is contained in:
bunnie 2025-12-02 01:06:36 +08:00
parent 5b4d6c1932
commit fcc6fc5538

View file

@ -21,7 +21,9 @@ loader = { path = "../../loader", features = ["swap"], optional = true }
aes-gcm-siv = { version = "0.11.1", default-features = false, features = [
"aes",
] }
aes = { path = "../aes", default-features = false, optional = true }
aes = { path = "../aes", default-features = false, optional = true, features = [
"chaffing",
] }
bao1x-hal = { path = "../../libs/bao1x-hal", optional = true, default-features = false }
precursor-hal = { path = "../../libs/precursor-hal", optional = true, default-features = false }
bao1x-api = { path = "../../libs/bao1x-api", optional = true, default-features = false }