Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

Encrypted attachments cannot be opened or saved as decrypted files

  • 2 respostas
  • 1 tem este problema
  • 19 visualizações
  • Última resposta por Michael

more options

Name Thunderbird Version 78.4.1 Build ID 20201104231226 on Win 10

When I try to "decrypt and open" a pgp encrypted mail attachment, nothing happens. Using "decrypt and save as ..." opens the directory selector but no file is saved.

Running Thunderbird with -jsconsole provides the following error messages:

CryptoAPI.sync() failed result: Error: Not implemented

   getFileName chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:179
   getFileName chrome://openpgp/content/modules/attachment.jsm:18
   decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2732
   f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675
   onStopRequest chrome://openpgp/content/modules/streams.jsm:78
   callbackWrapper chrome://openpgp/content/modules/timer.jsm:30
   notify resource://gre/modules/Timer.jsm:62

interface.js:46:17 CryptoAPI.sync() failed result: Error: Not implemented

   decryptAttachment chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:209
   decryptAttachment chrome://openpgp/content/modules/decryption.jsm:630
   decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828
   f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675
   onStopRequest chrome://openpgp/content/modules/streams.jsm:78
   callbackWrapper chrome://openpgp/content/modules/timer.jsm:30
   notify resource://gre/modules/Timer.jsm:62

interface.js:46:17 Uncaught (in promise) TypeError: result.stdoutData is undefined

   decryptAttachment chrome://openpgp/content/modules/decryption.jsm:634
   decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828
   f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675
   onStopRequest chrome://openpgp/content/modules/streams.jsm:78
   callbackWrapper chrome://openpgp/content/modules/timer.jsm:30
   notify resource://gre/modules/Timer.jsm:62
Name Thunderbird Version 78.4.1 Build ID 20201104231226 on Win 10 When I try to "decrypt and open" a pgp encrypted mail attachment, nothing happens. Using "decrypt and save as ..." opens the directory selector but no file is saved. Running Thunderbird with -jsconsole provides the following error messages: CryptoAPI.sync() failed result: Error: Not implemented getFileName chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:179 getFileName chrome://openpgp/content/modules/attachment.jsm:18 decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2732 f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675 onStopRequest chrome://openpgp/content/modules/streams.jsm:78 callbackWrapper chrome://openpgp/content/modules/timer.jsm:30 notify resource://gre/modules/Timer.jsm:62 interface.js:46:17 CryptoAPI.sync() failed result: Error: Not implemented decryptAttachment chrome://openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm:209 decryptAttachment chrome://openpgp/content/modules/decryption.jsm:630 decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828 f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675 onStopRequest chrome://openpgp/content/modules/streams.jsm:78 callbackWrapper chrome://openpgp/content/modules/timer.jsm:30 notify resource://gre/modules/Timer.jsm:62 interface.js:46:17 Uncaught (in promise) TypeError: result.stdoutData is undefined decryptAttachment chrome://openpgp/content/modules/decryption.jsm:634 decryptAttachmentCallback chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2828 f chrome://openpgp/content/ui/enigmailMessengerOverlay.js:2675 onStopRequest chrome://openpgp/content/modules/streams.jsm:78 callbackWrapper chrome://openpgp/content/modules/timer.jsm:30 notify resource://gre/modules/Timer.jsm:62

Todas as respostas (2)

more options

Digging in a bit deeper ... seems like this feature is not implemented yet? RNPCryptoAPI.jsm:

 /**
  *
  * @param {byte} byteData    The encrypted data
  *
  * @return {String or null} - the name of the attached file
  */
 async getFileName(byteData) {
   throw new Error("Not implemented");
 }
 /**
  *
  * @param {Bytes}  encrypted     The encrypted data
  *
  * @return {Promise<Object>} - Return object with decryptedData and
  * status information
  *
  * Use Promise.catch to handle failed decryption.
  * retObj.errorMsg will be an error message in this case.
  */
 async decryptAttachment(encrypted) {
   throw new Error("Not implemented");
 }
more options

Checking again with Thunderbird 78.6.0 (64-bit) Release notes states: "fixed OpenPGP: Encrypted attachment "Decrypt and Open/Save As" did not work"

But I still can't decrypt attachments, getting an error message.

Console logs "bad message, missing MDC" decryption.jsm:526:15

 getPlaintextFromDecryptResult(result) {
   if (result.statusFlags & EnigmailConstants.MISSING_MDC) {
     console.log("bad message, missing MDC");

Modificado por Michael a