Comments (5)
Did some quick profiling:
6.31:
(pprof) top
Total: 24998 samples
19005 76.0% 76.0% 23452 93.8% bn_mon_muladd_dig
4132 16.5% 92.6% 4132 16.5% bn_sub_1
512 2.0% 94.6% 24089 96.4% bn_mon_mul
6.61:
(pprof) top
Total: 499 samples
133 26.7% 26.7% 160 32.1% bn_mon_muladd_dig
98 19.6% 46.3% 98 19.6% read_bit
44 8.8% 55.1% 44 8.8% rijndaelEncrypt
So, 2x the magnitude of bignum operations.
I bet something weird is going on with how we enumerate files causing us to visit files multiple times? Might need to instrument things to figure it out.
To reproduce:
- link with
-lprofile
- run
CPUPROFILE=631.pprof psardumper 631.PBP
- view results
pprof psardumper 631.pprof
from pspdecrypt.
bignum functions are only used for ECDSA checking IIRC, was ECDSA checking enabled for all modules in 6.3x but removed in 6.6x?
from pspdecrypt.
I tried commenting ecdsa_verify, and indeed it becomes a lot faster. It could probably be disabled by default since I doubt it's functional anyway.
from pspdecrypt.
Might be nice to add a flag to enable that behavior and have it disabled by default?
from pspdecrypt.
Yep, related to #13, I'm even considering disabling it for now as I doubt it works...
from pspdecrypt.
Related Issues (20)
- Simplify the table decryption code using DES
- Check the pspSignCheck() and various signature checking stuff HOT 1
- Merge pspdecrypt and psardecrypt, with additional arguments HOT 3
- stage2_psp_ipl.bin.gz HOT 3
- Ugly error text while decrypting bogus FW
- Add support for the devkit kbooti/IPL blocks
- Support for decrypting Game Updates? HOT 2
- Support for decrypting PS1 ELFs
- RCO extraction support? HOT 1
- Decrypt & decompress second ME image (data)
- Error while processing custom 4.21 PSAR
- Unsupported tags 457b9af0 and 4c94a1f0 HOT 1
- Missing index.dat (index_01g.dat-index_11g.dat) support HOT 2
- Ability to extract IPL from 1.5x PSP firmwares HOT 1
- pspdecrypt doesn't extract gzip format to plaintext elf on PRXs
- doesn't decrypt proto prxs properly (0.6.5 arc) HOT 2
- Cannot decrypt PSVita's epsp "pspbtcnf.bin"; decryption failed for tag 4C94A1F0 HOT 1
- outdir does not create the output directory if the same one does not exist
- Issue on DATA.PSP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pspdecrypt.