Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad decrypt #10

Open
ITProggeruz opened this issue Jan 28, 2024 · 6 comments
Open

bad decrypt #10

ITProggeruz opened this issue Jan 28, 2024 · 6 comments

Comments

@ITProggeruz
Copy link

LOG: https://pastebin.com/jC1FZH3E

OS: Windows

@SimonKotlar
Copy link

SimonKotlar commented Feb 16, 2024

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
Copy link

Are you affiliated with the site SamFirm ?

@ITProggeruz
Copy link
Author

Its with the firmware decryption issue i think

@ITProggeruz
Copy link
Author

Or linux may*be could help

@jejo86
Copy link

jejo86 commented May 11, 2024

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

@Kai-Johnstone
Copy link

Kai-Johnstone commented Oct 3, 2024

Same problem here on Arch running 6.1.1-zen kernal

  Model: SM-A156E
  Region: XSA

  Latest version:
    PDA: A156EDXU3BXG7
    CSC: A156EOLM3BXG7
    MODEM: A156EDXU3BXH1
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 (/home/sisyphus/.npm/_npx/56a8967cf72b9c8f/node_modules/samfirm/dist/index.js:11696:23)
    at module.exports.__webpack_modules__.3396.exports.handleAuthRotation (/home/sisyphus/.npm/_npx/56a8967cf72b9c8f/node_modules/samfirm/dist/index.js:11714:36)
    at handleHeaders (/home/sisyphus/.npm/_npx/56a8967cf72b9c8f/node_modules/samfirm/dist/index.js:11552:68)
    at /home/sisyphus/.npm/_npx/56a8967cf72b9c8f/node_modules/samfirm/dist/index.js:11572:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (/home/sisyphus/.npm/_npx/56a8967cf72b9c8f/node_modules/samfirm/dist/index.js:11563:5) {
  library: 'Provider routines',
  reason: 'bad decrypt',
  code: 'ERR_OSSL_BAD_DECRYPT'
}

Node.js v20.17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants