Specifications

P25 Development Guide
www.bluebamboo.com
44
4. Print encrypted information by session key
The following operation is a combined operation. Sync session key for the encrypted information
first then print it out through P25 printer. This paragraph only explains the format of printing
encrypted information.
Sync session key and print string "abc"
use command "./P25EncryptApp sync_session_prn_abc"
-----------------------------------------------------------------------------------------------------------------
6 [00000004] IRP_MJ_WRITE Length: 0046
Data: C0 80 36 30 30 33 35 01 01 01 75 6C 2B BF E1 D7 3F 07 7D E1 94 B2 88 14 CA 19
27 4C A8 48 87 3A FF 63 36 CB 70 B8 04 1B B8 B6 2A F2 7C C1
7 [00000013] IRP_MJ_READ Length: 0014
Data: C0 86 36 30 30 30 34 01 01 00 00 01 01 C1
Ref sync session key
8 [00000014] IRP_MJ_WRITE Length: 0021
Data: C0 81 37 30 30 31 31 01 01 01 D3 36 57 EA 37 94 B5 EA A2 07 C1
Request to print "abc" in encrypt format
Eg Data
Content
Length Explain
C0 1 start of frame
81 1 CT_ENCRYPT_WITH_SESSION
37 1 data id
30 30 31
31
4 data len
01 1 Version
01 1 key id
01 1 Algor, ENCRYPT_ALG_3DES
ENCRYPTED_WITH_SESSION_KEY(CMD_PRN_REQ_WILL_EN
CRYPT,PRINT_CONTENT,CRC,PADDING)
after decrypt, it would be:
Eg Data
Content
Length Explain
87 1 CMD_PRN_REQ_WILL_ENCRYPT
D3
36...B5
EA
Multiple
of 8
??...?? Variable print content
A2 07 2 CRC
C1 1 end of frame