samfirm.js icon indicating copy to clipboard operation
samfirm.js copied to clipboard

bad decrypt

Open ITProggeruz opened this issue 1 year ago • 6 comments

LOG: https://pastebin.com/jC1FZH3E

OS: Windows

ITProggeruz avatar Jan 28 '24 09:01 ITProggeruz

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

SimonKotlar avatar Feb 16 '24 14:02 SimonKotlar

Are you affiliated with the site SamFirm ?

Martyn911 avatar Feb 19 '24 21:02 Martyn911

Its with the firmware decryption issue i think

ITProggeruz avatar Feb 22 '24 01:02 ITProggeruz

Or linux may*be could help

ITProggeruz avatar Feb 22 '24 01:02 ITProggeruz

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

jejo86 avatar May 11 '24 09:05 jejo86