[Cryptography] Bent, crooked, and twisted functions
Ferecides de Siros
filosofarte at protonmail.com
Wed Sep 24 02:22:13 EDT 2025
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Pierre,
Great to hear you're using the tool!
I use the same simple approach for all my code:
**License:** This is free and unencumbered software released into the public
domain. Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled binary,
for any purpose, commercial or non-commercial, and by any means.
**Julia translation:** Absolutely! The core analysis is straightforward:
- - For each input difference a ≠ 0, compute derivatives D_aF(x) = F(x⊕a)⊕F(x)
- - Count distinct derivatives (should be 2^(n-1) for APN)
- - The Rust implementation mirrors this directly.
**Function duplication:** Thanks for catching that - the Gold and quadratic
functions were indeed just placeholders.
**Your 4-bit results:** Interesting that the canonical twisted function shows
different patterns than the 3-bit version. The [3,3,3,3,3,2,3] pattern
suggests consistent but imperfect nonlinearity.
The tool seems to be working well for your research. I'm just happy to
contribute to something I find mathematically beautiful.
Best,
Hitokiri
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEOPhOn65N+XbUXMpWZ3IkUdCGxpUFAmjTi/MACgkQZ3IkUdCG
xpUgSA/+IPjJ5HF0E5dUZPGJsa/RPbLh5niy5v43b00T2zFDK6WqC8K2Qn7gSbfR
GWGib76bzagRkBT3wBtzo0zEy9VeuSb78n+eKiI+nLzZzD3ZkdK5sqMViCBFIepr
01garhBKqtyQD2SI9LqZcdBrrlncmaL7wUlvT0tp7JdIGqLglUV16YtYYi0k49rX
uZJbDB9+n5FopqzHkFaJp5bqPxhxHqd0DMUfBd23RRxxknWN/6WDZH+OsGfod1qM
HrzMEb3jdhDRRms3XX6lADagp9aOC7PHzLsuES1m4ZDbLrpB3v7FWwoiRyaMtk+h
22nENEFnhnFC4kCpNXAWeRA39kFlfNA5VQNNPr7BHFJKwpDQbxKIiIxTQbxM6Si1
CTGQtbcGjzarsEomv5zD7tFqw7zWzrdXZ6xA9/RNjkF5Bn0tqbGgFLodTgacnZR5
H/wGlFIcKM6ctowcOzW7HKSbkp4hODplKYIz7AkpwJ9vIEbs8Jrku4eeoJ9h4iem
kikADpqp1VRN5U8iUOXCk+Ll+qJRS9M0ud+h8Qi6aKA5zyhwyn6RKuRNRWROuv4c
GLKqqf9oUmP/IzzXojn3OZ8WIMKrcg5c5HFj2tmaMjhhl0eRSMsDUPWCYULb3WTA
PlAiXjdWptZlqBDsBeWDlVwm9d3J28M7tgqrAlGb4NowqqlRmNU=
=dsqK
-----END PGP SIGNATURE-----
More information about the cryptography
mailing list