Skip to Content
oxcrypto

bash-f

Apply the bash-f permutation from STB 34.101.77-2020.

from oxcrypto.hazmat.permutation.bash_f import BASH_F

state = BASH_F.BASH_F.permute(bytes(192))

The state is 24 64-bit words, each little-endian, so the bytes match the standard's notation.

StandardSTB 34.101.77-2020 (Belarusian national standard)
Cratebash-f 0.1.0 (RustCrypto sponges), pre-1.0 release
AuditNo published audit
MSRV1.85, builds with the project MSRV 1.88
ExperimentalNo
Test vectorsSTB 34.101.77-2020 Table A.2