User Guide DDOC0199-000-A9
1-Slot Data Transport System (CSfC) 13 - 11 Command Line Interface
© 2024 Curtiss-Wright Defense Solutions Revision 1.0
13.3.6 cmpsk
NOTE
Once sealed, PSK and ID setting functionality is not permitted.
Description:
The cmpsk command allows a user to generate, write or read a PSK to and from the crypto
module. Also provides the ability to set the crpyo ID and seal the unit.
Syntax:
cmpsk [-h | --help | -v | --version]
cmpsk [-r | -g | -w <hex>]
cmpsk [-i <int>]
cmpsk [--seal]
cmpsk - [options]
Options:
-h, --help..........................Print help message.
-v, --version ...................Report application version.
-r, --rpsk..........................Read PSK (default option)
-g, --gpsk..........................Generate PSK
-w, --wpsk <hex>.............Write a provided 128 character ascii hex PSK
-i, --id <int>.................Set Crypto ID
--seal ..................................Seal the Crypto unit
Returns:
0 on success, else error
Example: read PSK
Example: generate PSK
Example: write PSK
cw_dts> cmpsk
[cmpsk]
CMPSK: psk=0eaca7882dac38e7c93fc0a4550ebf33f0a029419b1c03b6edaaf86f8c06483f status=OK
[!cmpsk] OK
cw_dts> cmpsk -g
[cmpsk]
CMPSK: psk=bc21106e561c015efb7858c2ae8b48603c3695c2a4d6d02d6619e4c5704a0d8a status=OK
[!cmpsk] OK
cw_dts> cmpsk -w bc21106e561c015efb7858c2ae8b48603c3695c2a4d6d02d6619e4c5704a0d8b
[cmpsk]
CMPSK: psk=bc21106e561c015efb7858c2ae8b48603c3695c2a4d6d02d6619e4c5704a0d8b status=OK
[!cmpsk] OK