Hash functions

Bash384

Belarus's sponge-based hash family built on the bash-f permutation

unverified Root API only
Unverified tier.

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 Bash384

Bash384 is a cryptographic hash function from the bash (STB 34.101.77) family. It produces a 48-byte (384-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–2016
  1. bash 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

Belarusian standards researchComparison of sponge constructions

Sizes

FieldBytesMeaning
out48Output

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", "bash384", None, b"abc")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Bash384?

Bash384 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 Bash384 sizes?

In NextSSL, Bash384 uses: output 48 bytes.

Who designed Bash384 and when?

Bash384 belongs to the bash (STB 34.101.77) family, first published in 2016. Its origin: Belarusian standard STB 34.101.77.

Is Bash384 safe to use?

Bash384 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).