
유출된 마스터 키에서 HDCP 소스 및 싱크 키를 생성합니다.
이 스크립트는 유출된 HDCP 마스터 키(master-key.txt에 위치)를 사용하여 Python으로 HDCP 키 생성 알고리즘의 간단한 버전을 구현합니다.
Usage: generate_key.py [options]
Options:
-h, --help show this help message and exit
-m FILE, --master=FILE
load master key from FILE
-k, --sink generate a sink key rather than a source key
--ksv=KSV use a specific KSV expressed in hexadecimal
-j, --json output key and KSV as JSON
-t, --test generate source and sink keys and test they work
예제:
# Generate a sink key with KSV 0x54f0af39a8 and output the result in JSON
./generate_key.py -k --ksv 54f0af39a8 -j
# Generate a source key with a random KSV and output the result in a
# human-readable form
./generate_key.py
# Run a self-test to make sure the source a sink key generation is consistent
./generate_key.py -t