HAS160
Korea's 160-bit hash designed for use with the KCDSA signature standard
Old but not broken. Kept for interoperability; root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About HAS160
HAS160 is a cryptographic hash function from the HAS-160 family. It produces a 20-byte (160-bit) output. Its registry entry cites HAS-160 (KISA TTAS.KO-12.0011/R1), RHash implementation. NextSSL lists it in the legacy tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
HAS-160 is a 160-bit hash function standardised in South Korea for use with the KCDSA digital signature algorithm. It is structurally related to SHA-1 and has been superseded by SHA-2 and LSH in Korean standards.
HAS-160 is a Merkle–Damgård hash over 512-bit blocks with five 32-bit state words and 80 steps, resembling SHA-1. It differs in its message expansion, which inserts XOR combinations of message words rather than SHA-1's recursive schedule, and in its rotation amounts, which vary per step. Its 160-bit output matches SHA-1's.
The function was published by the Telecommunications Technology Association of Korea (TTAS.KO-12.0011). NextSSL's implementation follows the RHash library and is provided for legacy verification. HAS-160 saw use mainly in Korean PKI and government systems in the late 1990s and 2000s. Its design was not widely analysed internationally until relatively late, and modern Korean standards now favour SHA-2 and the LSH family.
History
2000–2000HAS-160 published
Security notes
Collision attacks on reduced-step versions have been published and the 160-bit output gives at most 80-bit collision resistance. It should be treated like SHA-1: acceptable only for verifying existing data.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 20 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'legacy' is reachable from the root API only
digest = root.call("hash_with", "has160", None, b"abc")[0]
nextssl_root_hash_with("has160", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "has160", &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 HAS160?
HAS160 is a hash in the HAS-160 family. HAS-160 is a 160-bit hash function standardised in South Korea for use with the KCDSA digital signature algorithm.
What are the HAS160 sizes?
In NextSSL, HAS160 uses: output 20 bytes.
Who designed HAS160 and when?
HAS160 belongs to the HAS-160 family, first published in 2000. Its origin: TTAS.KO-12.0011/R1.
Which standards define HAS160?
HAS160 is referenced by HAS-160 (KISA TTAS.KO-12.0011/R1), RHash implementation.
Is HAS160 safe to use?
HAS160 is in the legacy tier. Old but not broken. Kept for interoperability; root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).