A collection of cryptographic primitives for CC:Tweaked.
Find a file
Miguel Oliveira 54b821c091
Give up on masking for now
X25519c can be attacked by replying several times with invalid data.
This is hard to defend against in the API level without denying service
and using some hard-to-understand semantics.

Masked primitives are gone for now, some countermeasures have been moved
into their respective "regular" impls. I don't think that it's worth it
to care that much about side channels in CC. I haven't seen or managed
to mount any practical attacks myself. The further move away from Cobalt
will probably make them even harder to mount.
2022-03-05 12:03:08 -03:00
.vscode Initial commit 2022-03-01 20:08:55 -03:00
internal Give up on masking for now 2022-03-05 12:03:08 -03:00
.gitignore Update docs 2022-03-02 19:46:20 -03:00
aead.lua Reformat 2022-03-01 20:51:18 -03:00
blake3.lua Initial commit 2022-03-01 20:08:55 -03:00
chacha20.lua Initial commit 2022-03-01 20:08:55 -03:00
ed25519.lua Give up on masking for now 2022-03-05 12:03:08 -03:00
poly1305.lua Initial commit 2022-03-01 20:08:55 -03:00
random.lua Fix wrong filename in random.lua 2022-03-04 12:47:35 -03:00
x25519.lua Give up on masking for now 2022-03-05 12:03:08 -03:00