LSH256
Korea's ARX-based hash family, standardised as KS X 3262 for fast software hashing
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 LSH256
LSH256 is a cryptographic hash function from the LSH family. It produces a 32-byte (256-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
LSH is a hash function family developed in South Korea and standardised as KS X 3262. It was designed for high speed on general-purpose processors using only additions, rotations and XORs, and has two members: LSH-256 and LSH-512.
LSH is a wide-pipe Merkle–Damgård design. LSH-256 keeps a 512-bit chaining state of 32-bit words and processes 1024-bit blocks; LSH-512 doubles the word size to 64 bits. The compression function expands each block into step messages and runs 26 (LSH-256) or 28 (LSH-512) steps of an ARX mix-and-permute operation that lends itself to SIMD vectorisation.
Each member supports several output lengths by truncation. NextSSL includes LSH-256 and LSH-512 entries wired from source, not yet verified against KS X 3262 test vectors. LSH-256 supports outputs up to 256 bits, and LSH-512 supports outputs up to 512 bits including 224, 256 and 384-bit truncations. The family was published by the National Security Research Institute of Korea in 2014.
History
2014–2014LSH published
Security notes
No practical attacks on full LSH are known; published work covers reduced steps. It is suitable where Korean standards compliance is required but sees little use elsewhere.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | 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", "lsh256", None, b"abc")[0]
nextssl_root_hash_with("lsh256", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "lsh256", &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 LSH256?
LSH256 is a hash in the LSH family. LSH is a hash function family developed in South Korea and standardised as KS X 3262.
What are the LSH256 sizes?
In NextSSL, LSH256 uses: output 32 bytes.
Who designed LSH256 and when?
LSH256 belongs to the LSH family, first published in 2014. Its origin: KS X 3262.
Is LSH256 safe to use?
LSH256 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).