add a simple self-test
Added a simple self test mode where a source and sink key are generated and the source/sink shared-secret key is generated using the source keys and the sink keys. The test makes sure those keys are identical.
This commit is contained in:
4
README
4
README
@@ -12,6 +12,7 @@ Options:
|
||||
-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:
|
||||
|
||||
@@ -22,4 +23,7 @@ Examples:
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user