ksjsb/core/atlas_sign.py
2026-07-30 20:25:56 +08:00

27 lines
718 B
Python

"""Generic KWSG atlasSign helpers for 24-byte digest envelopes.
`MXSec.atlasSign` returns the short ZT form:
head8 + xor16(24-byte digest)
The recovered 10418 reward body sign and DFP 10405 atlasSign samples share this
envelope and the same `innerFlag=true` digest pipeline.
"""
from __future__ import annotations
from .reward_sign import (
KWSG_10418_SIGN_HMAC_KEY as ATLAS_SIGN_HMAC_KEY,
kwsg_10418_reward_sign as atlas_sign,
kwsg_10418_reward_sign_from_digest_hex as atlas_sign_from_digest_hex,
kwsg_10418_reward_sign_to_digest_hex as atlas_sign_to_digest_hex,
)
__all__ = [
"ATLAS_SIGN_HMAC_KEY",
"atlas_sign",
"atlas_sign_from_digest_hex",
"atlas_sign_to_digest_hex",
]