Bash512
Belarus's sponge-based hash family built on the bash-f permutation
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Bash512
Bash512 is a cryptographic hash function from the bash (STB 34.101.77) family. It produces a 64-byte (512-bit) output. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
bash is the Belarusian standardised hash family, built as a sponge over a 1536-bit permutation called bash-f. It defines three security levels, producing 256-, 384- and 512-bit digests.
bash-f operates on a 1536-bit state arranged as 24 64-bit words and uses 24 rounds of a non-linear S3 operation combining rotations, XORs, ANDs and ORs, followed by word permutation and round-constant addition. The hash absorbs input at a rate that depends on the security level ℓ, with capacity 4ℓ, so higher levels absorb more slowly.
NextSSL includes bash256, bash384 and bash512 wired from source. The same permutation also underlies the bash-prg programmable sponge mode in the Belarusian standards, which is not part of these entries. The Belarusian standards body publishes test vectors for each level. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.
History
2016–2016bash published
Security notes
Public cryptanalysis of bash-f is limited compared with Keccak. NextSSL has not verified these implementations against official test vectors, so they are for research and compliance experiments only.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 64 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
digest = root.call("hash_with", "bash512", None, b"abc")[0]
nextssl_root_hash_with("bash512", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "bash512", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Bash512?
Bash512 is a hash in the bash (STB 34.101.77) family. bash is the Belarusian standardised hash family, built as a sponge over a 1536-bit permutation called bash-f.
What are the Bash512 sizes?
In NextSSL, Bash512 uses: output 64 bytes.
Who designed Bash512 and when?
Bash512 belongs to the bash (STB 34.101.77) family, first published in 2016. Its origin: Belarusian standard STB 34.101.77.
Is Bash512 safe to use?
Bash512 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
Belarus's 128-bit block cipher standard and the hash function built on it
beltBelarus's 128-bit block cipher standard and the hash function built on it
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2