How make KDM CipherValue ?
youngwug opened this issue · 1 comments
I'm Test Windows 7 CLI(Interop KDM CipherValue)
echo 010100009783af89bc5ae7e9123abe52 | openssl base64 -d > structure_id_bin
echo gLiw7JGmC44ojz+JN3gvXk7sfu4= | openssl base64 -d > signer_cert_thumbprint_bin
echo 9024a62a-87fd-4929-9b0a-e53da86fa80b | openssl base64 -d > cpl_id_bin
echo 0e9c0e18-013d-396c-9c4c-d92e33416cc7 | openssl base64 -d > key_id_bin
echo 2013-07-03T01:02:27+00:002013-08-14T06:40:00+00:00 > before_after_bin
echo c488e02af0d47ef9b99bdbfe92405f0c | openssl base64 -d > key_bin
pause
copy /b structure_id_bin + signer_cert_thumbprint_bin + cpl_id_bin + key_id_bin + before_after_bin + key_bin binary_package_image_bin
pause
openssl rsautl -encrypt -oaep -certin -inkey leaf.pem -in binary_package_image_bin | openssl base64 > Image_interop.txt
pause
result is 166Byte(sometime is 165, 208, 170, 214)
Nothing is 134Byte
What should I do?
Of course, Cinemaslides KDM CipherValue is correct.
Pushing hexbyte strings through a base64 decoder won't yield what you expect it to. Take a look at cinemaslides' source code to understand what is required instead.
Feel free to open a new issue if or when you run into issues with digital cinema tools. Thanks.