Clearsign

From Vita Developer wiki
Jump to navigation Jump to search

clearsign file is located in sce_sys/ folder. It is NEVER PFS encrypted. It is related to PFS decryption and NPDRM SELFs decryption.

Structure

All values are in big endian format.

 typedef struct {
   u32 magic; // 7F 44 52 4D ".DRM"
   u16 pkg_revision; // same as in PKG
   u16 pkg_type; // same as in PKG
   u32 drm_type; // same as in PKG
   u32 unk; // same as in PKG
   u8 contentid[0x30];
   u8 padding[0x88];
   u8 signature[0x138];
 } CLEARSIGN;

Examples

Clearsign of DRM_type Local License (Uncharted Theme)

Offset(h) 00 01 02 03  04 05 06 07  08 09 0A 0B  0C 0D 0E 0F
00000000  7F 44 52 4D  80 00 00 01  00 00 00 02  00 00 00 00  .DRM€...........
00000010  45 50 39 30  30 30 2D 50  43 53 46 30  30 30 31 32  EP9000-PCSF00012
00000020  5F 30 30 2D  55 47 41 56  49 54 41 54  48 45 4D 45  _00-UGAVITATHEME
00000030  30 30 30 30  00 00 00 00  00 00 00 00  00 00 00 00  0000............
00000040  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00000050  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00000060  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00000070  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00000080  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
00000090  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
000000A0  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
000000B0  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ................
000000C0  00 00 00 00  00 00 00 00  21 9D 10 3B  16 A6 9E 47  ........!..;.¦žG
000000D0  7E F0 79 FD  C6 9C D8 18  34 6A 7F 77  AC 04 56 15  ~ðyýÆœØ.4j.w¬.V.
000000E0  6A 9A E2 46  37 88 3C 30  AD 65 8E 91  19 22 EE 66  jšâF7ˆ<0-­eŽ‘."îf
000000F0  F3 29 54 5A  4F 9D 0F 25  D8 71 CD 2B  FA 36 75 91  ó)TZO..%ØqÍ+ú6u‘
00000100  0A AE 9B AA  72 7C 38 C9  28 34 5A 8F  6F CE 63 B2  .®›ªr|8É(4Z.oÎc²
00000110  C9 3B 1D 14  D3 15 FC 36  32 0C AE 73  8A 9F E0 73  É;..Ó.ü62.®sŠŸàs
00000120  7E 20 BE D5  8C 08 58 60  38 B7 CE 9A  2D E5 BD 6C  ~.¾ÕŒ.X`8·Îš-å½l
00000130  23 75 4A E8  AE CB 9C C4  23 3A B2 20  29 5D 8E 42  #uJè®ËœÄ#:².)]ŽB
00000140  88 79 8B 65  ED 2A D4 5E  28 FA 03 68  8E 66 69 05  ˆy‹eí*Ô^(ú.hŽfi.
00000150  2D A1 94 E3  F1 24 9F 2B  79 31 96 01  71 7C F0 CE  -¡”ãñ$Ÿ+y1–.q|ðÎ
00000160  5B 8C 9F B1  28 A5 F6 9B  82 D8 8C EC  56 0F 27 83  [ŒŸ±(¥ö›‚ØŒìV.'ƒ
00000170  CD 8A 07 B7  0B C0 3F 83  40 78 0B 59  13 6A 8B E9  ÍŠ.·.À?ƒ@x.Y.j‹é
00000180  77 4A 93 DA  4D 28 54 95  04 3F 25 7A  ED 27 4D FC  wJ“ÚM(T•.?%zí'Mü
00000190  A9 39 B5 26  14 6A 6D 53  84 F5 C0 A6  01 DE 5D 71  ©9µ&.jmS„õÀ¦.Þ]q
000001A0  37 50 26 88  AB DE 7F CA  5C E8 4D A6  37 6C 29 CD  7P&ˆ«Þ.Ê\èM¦7l)Í
000001B0  70 4C 19 51  BB 7F 17 D7  18 65 D8 2E  C0 76 8E 0C  pL.Q»..×.eØ.ÀvŽ.
000001C0  F4 09 6F D0  DE AC 67 54  75 B9 F5 A2  48 DC 17 3E  ô.oÐÞ¬gTu¹õ¢HÜ.>
000001D0  01 94 0C 3E  6A 92 65 AE  53 DC F8 C5  E7 57 B9 21  .”.>j’e®SÜøÅçW¹!
000001E0  40 29 18 08  8A 8F F7 4D  9B 08 05 F4  5E 46 95 37  @)..Š.÷M›..ô^F•7
000001F0  7F 10 44 9C  A8 4B 3D F6  12 42 FD 0F  25 E6 DC A1  ..Dœ¨K=ö.Bý.%æÜ¡

Clearsign of Finalized DRMfree (Reader For PSVita)

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 44 52 4D 80 00 00 01 00 00 00 0D 00 00 00 00  .DRM€...........
00000010  4A 41 30 30 30 31 2D 50 43 53 43 38 30 30 31 32  JA0001-PCSC80012
00000020  5F 30 30 2D 52 45 41 44 45 52 46 4F 52 50 53 56  _00-READERFORPSV
00000030  49 54 41 30 00 00 00 00 00 00 00 00 00 00 00 00  ITA0............
00000040  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000050  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000060  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000070  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000090  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000A0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000B0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
000000C0  00 00 00 00 00 00 00 00 08 8C 08 74 B8 B0 55 50  .........Œ.t¸°UP
000000D0  BC 5C 65 8A 14 B0 48 EE 76 18 DC E8 D6 91 F5 0F  ¼\eŠ.°Hîv.ÜèÖ‘õ.
000000E0  F0 8E A5 13 4F 6B F7 13 8B A2 28 23 76 51 90 79  ðŽ¥.Ok÷.‹¢(#vQ.y
000000F0  16 D6 34 1C 28 D7 CC 77 AF 52 73 D5 B9 5A E2 F7  .Ö4.(×Ìw¯RsÕ¹Zâ÷
00000100  89 07 DC A8 56 35 65 27 A5 3B 63 2F 0F 9D 65 D1  ‰.ܨV5e'¥;c/..eÑ
00000110  03 BA 32 50 59 2C CE 63 DF BC 75 85 D1 FA D3 EF  .º2PY,Îcß¼u…ÑúÓï
00000120  9C 27 58 D2 53 77 62 7B CD F7 50 EF C9 A3 53 B4  œ'XÒSwb{Í÷PïÉ£S´
00000130  42 27 FD B4 66 14 3D AD C9 A1 8D 13 80 B7 C6 5D  B'ý´f.=.É¡..€·Æ]
00000140  F2 F2 6D 08 7B 09 0C 25 17 16 45 E1 CB 84 E8 21  òòm.{..%..EáË„è!
00000150  DC 9B 16 19 6D C3 C6 26 18 04 03 42 6B EB 53 88  Ü›..mÃÆ&...BkëSˆ
00000160  B8 0A 24 4B 19 2D A1 B7 4D 50 27 1A CB EA 6F CF  ¸.$K.-¡·MP'.ËêoÏ
00000170  7F 1A 68 03 1A 02 FC 79 5D 5E 0A 62 A6 69 66 F4  ..h...üy]^.b¦ifô
00000180  98 04 C3 A9 B5 C0 69 A3 E2 B5 D7 22 54 4B 41 4E  ˜.éµÀi£âµ×"TKAN
00000190  9D AC BC 2A 8E 52 1B E6 79 B3 76 53 CA 07 1B A0  .¬¼*ŽR.æy³vSÊ.. 
000001A0  1F 62 49 9F B8 41 E0 BE 4D 8C 56 C1 6A D8 96 3A  .bIŸ¸Aà¾MŒVÁjØ–:
000001B0  08 C7 46 C8 37 9C FD C7 69 EF 7A 3F C7 9B B7 3E  .ÇFÈ7œýÇiïz?Ç›·>
000001C0  AB 22 D6 A3 78 7C 88 83 3F 76 EE 0B 13 6C D6 F3  «"Ö£x|ˆƒ?vî..lÖó
000001D0  2D 42 C7 3F DC 82 D2 73 89 FD C1 20 A0 E3 1A D0  -BÇ?Ü‚Òs‰ýÁ  ã.Ð
000001E0  84 34 82 41 63 53 F5 34 B9 AB 6F 61 32 F3 A6 F5  „4‚AcSõ4¹«oa2ó¦õ
000001F0  CC 57 92 7D 51 66 8B D2 02 AE C9 AD AC 41 2C 40  ÌW’}Qf‹Ò.®É.¬A,@