
Page | 17
Generate ECDH shared secret:
openssl> pkeyutl -derive -inkey TERMINAL_EPHEMERAL_PRIVATE.pem -
peerkey HANDSET_EPHEMERAL_PUBLIC.pem -out secret.bin
6.1.3.
How To Extract Key Data To Load In The Lite-On Custom PiP
Having generated the ECC Key Pair, the Lite-On Custom PiP requires the Private Key data to be loaded so
that it can decrypt the pass information sent from the mobile device. To extract the required Key Data,
use the following OpenSSL command line:
>openssl.exe ec -noout -text -in private_key.pem
This will output information to the screen. You should see the below as a minimum:
Private-Key: (256 bit)
priv:
00:f5:36:87:08:93:39:20:55:3b:7b:9f:fb:16:ae:
ed:9c:77:d5:bf:d9:66:2a:f1:49:a6:b9:f9:65:b7:
3f:0c:ca
Copy the bytes of data and edit them to remove the colon characters. If, as in the example above, there
are 33 bytes of data, remove the leading
00
to leave 32 bytes of key data. These are used in the
C7-65
and
C7-66
commands detailed later in this document.