Verifies that the incoming stream is signed from a trusted sender.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public bool VerifyStream( Stream dataFileStream, Stream publicKeyStream, Stream outputFileStream ) |
| Visual Basic |
|---|
Public Function VerifyStream ( _ dataFileStream As Stream, _ publicKeyStream As Stream, _ outputFileStream As Stream _ ) As Boolean |
| Visual C++ |
|---|
public: bool VerifyStream( Stream^ dataFileStream, Stream^ publicKeyStream, Stream^ outputFileStream ) |
Parameters
- dataFileStream
- Type: System.IO..::..Stream
Input stream from the File to be verified
- publicKeyStream
- Type: System.IO..::..Stream
Input stream from the Public key
- outputFileStream
- Type: System.IO..::..Stream
Output Stream for the uncompressed signed content
Return Value
true if signed correctly, false if not signed with this public key
Exceptions
| Exception | Condition |
|---|---|
| System.IO..::..IOException | if a problem has occurred reading input file or public key file |
| DidiSoft.Pgp..::..PGPException | General OpenPGP error |
| DidiSoft.Pgp.Exceptions..::..FileIsEncryptedException | If the input signed message is not only signed but also encrypted. |
| NonPGPDataException | if the input data is not a valid OpenPGP message |