Editing User talk:Masterzorag
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 106: | Line 106: | ||
00000400 | 00000400 | ||
</pre> | </pre> | ||
=ps3vuart-tools= | =ps3vuart-tools= | ||
Line 189: | Line 183: | ||
We got info0 + info1, 64bytes each | We got info0 + info1, 64bytes each | ||
content is 2845bytes, total is data | content is 2845bytes, total is data lenght 2973 | ||
info0, info1 are not encrypted | info0, info1 are not encrypted | ||
</pre> | </pre> | ||
Line 202: | Line 196: | ||
*http://stackoverflow.com/questions/20266368/ecdsa-signature-size-too-long | *http://stackoverflow.com/questions/20266368/ecdsa-signature-size-too-long | ||
=.spkg_hdr.1 | =.spkg_hdr.1= | ||
strip metadata info | |||
# dd if=CORE_OS_PACKAGE.pkg.spkg_hdr.1 of=metainfo.crypt skip=32 count=64 bs=1 | # dd if=CORE_OS_PACKAGE.pkg.spkg_hdr.1 of=metainfo.crypt skip=32 count=64 bs=1 | ||
64+0 records in | 64+0 records in | ||
64+0 records out | 64+0 records out | ||
64 bytes (64 B) copied, 0.0021009 s, 30.5 kB/s | 64 bytes (64 B) copied, 0.0021009 s, 30.5 kB/s | ||
# hexdump -C | # hexdump -C metai.cry | ||
00000000 d7 f9 82 9e 75 0a 3f 20 8b 6f e7 41 b1 bb 52 15 |....u.? .o.A..R.| | 00000000 d7 f9 82 9e 75 0a 3f 20 8b 6f e7 41 b1 bb 52 15 |....u.? .o.A..R.| | ||
00000010 e1 8f d2 86 43 b5 4f 56 4c 42 a0 10 e1 1a 25 38 |....C.OVLB....%8| | 00000010 e1 8f d2 86 43 b5 4f 56 4c 42 a0 10 e1 1a 25 38 |....C.OVLB....%8| | ||
00000020 9c 28 c7 fd 38 31 24 3b 1b 2b 9f 3f dc 72 4f c4 |.(..81$;.+.?.rO.| | 00000020 9c 28 c7 fd 38 31 24 3b 1b 2b 9f 3f dc 72 4f c4 |.(..81$;.+.?.rO.| | ||
00000030 95 34 b8 0a af 25 a1 05 b6 8f ce 2c 88 e9 2b 7b |.4...%.....,..+{| | 00000030 95 34 b8 0a af 25 a1 05 b6 8f ce 2c 88 e9 2b 7b |.4...%.....,..+{| | ||
verify metadata info decryption with standard tool | |||
# openssl enc -d -aes-256-cbc -in | # openssl enc -d -aes-256-cbc -in metai.crypt -K erk -iv riv | hexdump -C | ||
00000000 7c f2 9a 4b 96 de 5f 75 a1 32 87 c0 42 ec 8f cf ||..K.._u.2..B...| | 00000000 7c f2 9a 4b 96 de 5f 75 a1 32 87 c0 42 ec 8f cf ||..K.._u.2..B...| | ||
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | ||
00000020 6f 85 6a 60 2a 8d b4 3f 2a 81 1b 1a 9c a3 02 f6 |o.j`*..?*.......| | 00000020 6f 85 6a 60 2a 8d b4 3f 2a 81 1b 1a 9c a3 02 f6 |o.j`*..?*.......| | ||
00000030 | 00000030 | ||
strip rest of crypted metadata | |||
# dd if=CORE_OS_PACKAGE.pkg.spkg_hdr.1 of=metarest.crypt skip=96 bs=1 | # dd if=CORE_OS_PACKAGE.pkg.spkg_hdr.1 of=metarest.crypt skip=96 bs=1 | ||
544+0 records in | 544+0 records in | ||
544+0 records out | 544+0 records out | ||
544 bytes (544 B) copied, 0.00626423 s, 86.8 kB/s | 544 bytes (544 B) copied, 0.00626423 s, 86.8 kB/s | ||
decrypt rest of metadata | |||
get signature | |||
compute digest of the whole metadata | |||
verify digest / signature |