jesec / samfirm.js

TypeScript implementation of a streaming downloader, decryptor and extractor of Samsung firmware.
GNU General Public License v3.0
230 stars 53 forks source link

bad decrypt #10

Open ITProggeruz opened 7 months ago

ITProggeruz commented 7 months ago

LOG: https://pastebin.com/jC1FZH3E

OS: Windows

SimonKotlar commented 6 months ago

Hi @jesec ,

sorry to bother you, but I am facing the same issue as @ITProggeruz.

Could you please find a moment to adress this?

Thanks a lot!

image

Martyn911 commented 6 months ago

Are you affiliated with the site SamFirm ?

ITProggeruz commented 6 months ago

Its with the firmware decryption issue i think

ITProggeruz commented 6 months ago

Or linux may*be could help

jejo86 commented 3 months ago

Same problem here in Linux Mint 21.3

$ samfirm -m SM-A505FN -r DBT

  Model: SM-A505FN
  Region: DBT

  Latest version:
    PDA: A505FNXXU9CWB4
    CSC: A505FNOXM9CWB4
    MODEM: A505FXXU9CWB1
node:internal/crypto/cipher:193
  const ret = this[kHandle].final();
                            ^

Error: error:1C800064:Provider routines::bad decrypt
    at Decipheriv.final (node:internal/crypto/cipher:193:29)
    at module.exports.__webpack_modules__.3396.exports.decryptNonce (/usr/local/lib/node_modules/samfirm/dist/index.js:11696:23)
    at module.exports.__webpack_modules__.3396.exports.handleAuthRotation (/usr/local/lib/node_modules/samfirm/dist/index.js:11714:36)
    at handleHeaders (/usr/local/lib/node_modules/samfirm/dist/index.js:11552:68)
    at /usr/local/lib/node_modules/samfirm/dist/index.js:11572:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (/usr/local/lib/node_modules/samfirm/dist/index.js:11563:5) {
  library: 'Provider routines',
  reason: 'bad decrypt',
  code: 'ERR_OSSL_BAD_DECRYPT'
}

Node.js v20.13.1