--- title: "Verify File" slug: "verify-file" tags: ["file", "PGP module", "signature"] updated: 2024-12-18T21:07:44Z published: 2024-12-18T21:07:44Z canonical: "documentation.decisions.com/verify-file" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Verify File | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 8.1.0 | | **Location** | PGP Steps | --- The **Verify File** step uses the specified public key to determine whether the input file has an authentic digital signature. ### Prerequisites This step requires the [PGP module](https://documentation.decisions.com/v8/docs/pgp) to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Data | The desired file to evaluate | List of Byte | | Sender Public Key | The PGP-generated Public Key file | List of Byte | --- ## Example Inputs and Outputs #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1675290390078.png) --- ## Common Errors ### Buffer cannot be null If the Data or Sender Public Key fields are null or empty, the step will cause an error. To correct this, ensure both fields have an appropriate file uploaded or mapped. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Verify File 1[VerifyFile] in flow [Flow 2]: Exception invoking method VerifyFile on class PGPSteps ---> DecisionsFramework.LoggedException: Exception invoking method VerifyFile on class PGPSteps ---> System.ArgumentNullException: Buffer cannot be null. (Parameter 'buffer' at System.IO.MemoryStream..ctor(Byte[] buffer at Decsisions.PGP.Steps.PGPSteps.VerifyFile(Byte[] senderPublicKey, Byte[] data) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` --- Related Information Documentation: [PGP module](https://documentation.decisions.com/v8/docs/pgp-module-overview#overview) Forum Posts: [Email Encrypt / Decrypt With PGP Module](https://support.decisions.com/forum/topic1520-email-encrypt--decrypt-with-pgp-module.aspx) [Error While Encrypting A File Using PGP](https://support.decisions.com/forum/topic1814-error-while-encrypting-a-file-using-pgp.aspx) [PGP Issues With Decrypting Using Private Key](https://support.decisions.com/forum/topic2522-pgp-issues-with-decrypting-using-private-key.aspx) ## Related - [Encrypt File](/encrypt-file.md) - [Decrypt File](/decrypt-file.md)