PGP File Decryption Failure When Using the Elliptic-Curve Diffie–Hellman (ECDH) Key Pair

If using an Elliptic-Curve Diffie–Hellman (ECDH) key pair to encrypt/decrypt a file, you must use the Modification Detection Code (MDC). Otherwise, decryption fails with a null:Application Error error at runtime.

If you see this error in the activity stream at runtime during decryption and you are using EDCH keys, you have two options:
  • Regenerate your PGP keys using RSA, and then use the RSA keys for encryption/decryption.
  • Enable MDC during encryption of the file when using EDCH keys by selecting the Include Modification Detection Code checkbox on the Operations page of the Adapter Endpoint Configuration Wizard.
    The Operations page is displayed. This page consists of the Select Operation, Select a Transfer Mode, Output Directory, File Name Pattern, Append to Existing File, Perform PGP Encryption on the file to be sent to external FTP Server, Perform PGP Decryption on an encrypted file to be sent to external FTP Server as clear text, No PGP Encryption/Decryption on the file to be sent to external FTP Server, Include Modification Detection Code, Perform signing on the file to be sent to external FTP Servers, and Perform verification on the incoming signing file that needs to be sent to external FTP Server fields.

This MDC requirement applies even if the file is being encrypted by a third party.

See Invoke Operations Page.