Clearsign

From Vita Developer wiki
Revision as of 19:40, 26 April 2018 by CelesteBlue (talk | contribs)
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 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ý.%æÜ¡