ps3dev / PSL1GHT

A lightweight PS3 SDK
www.psl1ght.com
MIT License
226 stars 64 forks source link

pkg.py: update key with fast crypt implementation #141

Open TooManySugar opened 1 year ago

TooManySugar commented 1 year ago

Original (slow) implementation of crypt relied on change of key. With transition to C based version this behavior were lost. It led to garbage instead of valid names when using pkg.py with -l flag to list files in package.

Here is small solution to it: store key converted to string in separate variable, perform manipulations on C side using it and copy resulting contents back to original list.

Also moved pkgcrypt callback registration next to import to have all in one place.