← Cryptography guide

K055 / Hashes, MACs and key derivation

LSH

LSH hash function KISA · Survey date 2026-12-05

A cryptographic hash function developed in South Korea in 2014 for integrity protection on general-purpose CPUs in PCs and smart devices.

CRYPTOGRAPHY LAB / K055

Cryptography Lab · LSH

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Standard operation

LSH-256-256 (26 steps)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
A cryptographic hash function developed in South Korea in 2014 for integrity protection on general-purpose CPUs in PCs and smart devices. Source document ↗
Classification and reversibility
Cryptographic hash with no inverse decryption/decoding from digest. Source document ↗
Key or secret requirements
LSH itself is keyless; keyed constructions such as HMAC require separate key. Source document ↗
Operating principle and structure
Wide-pipe Merkle-Damgård structure with one-zeros padding. Source document ↗
Key size, block size and parameters
LSH-256 uses 128-byte block/32-byte digest; block, digest and rounds differ by variant. Source document ↗
Security strength and recommendation
Not confirmed in the survey
Known attacks and vulnerabilities
Not confirmed in the survey
Standards and certification
KCMVP validation-target algorithm and Korean national standard KS X 3262. Source document ↗
Typical uses
Data integrity in general-purpose CPUs such as PCs and smart devices. Source document ↗
Implementations, libraries and tools
Crypto++ and other implementations follow reference code. Source document ↗
Decryption or decoding
Not confirmed in the survey
Advantages
Easy implementation and high performance via SSE, AVX2 and NEON parallel instructions. Source document ↗
Limitations and cautions
Not confirmed in the survey
Distinguishing encryption, encoding and hashing
KISA LSH cryptographic hash and locality-sensitive hashing for similarity search share a name but are different technologies. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

LSH-256/512 yields fixed-length digest; same input gives same digest, small changes greatly change output for integrity comparison.

Procedure

Hash cannot restore originals through decryption/decoding. Rehash original with same LSH variant and compare stored digest; use HMAC separately for keyed authentication/integrity.

Scenario

Compare downloaded file digests in public/general environments; use LSH in KCMVP modules to assess national-standard compliance. Apply HMAC/PBKDF2 for authentication or derivation as needed.

Pitfalls and alternatives

Do not confuse cryptographic LSH and locality-sensitive hashing or decrypt a digest as ciphertext. Hashes lack confidentiality; distinguish encryption/MAC and use HMAC or equivalent for authentication.

Diagram source ↗

References