Rich Wareham 663a67b5aa make the self-test output a bit prettier
Add a newline to the self-test output to aid reading.
2010-09-17 13:34:10 +01:00
2010-09-17 11:44:34 +01:00
2010-09-17 13:25:00 +01:00

A simple Python implementation of the HDCP key generation algorithm.

This script implements a simple version of the HDCP key generation algorithm
using the leaked HDCP master key (which is located in master-key.txt).

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

Examples:

 # 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

% vim:spelllang=en_gb:spell
Description
Generate HDCP source and sink keys from the leaked master key
Readme 57 KiB
Languages
Python 92.1%
HTML 7.9%