Verifies that the incoming stream is signed from a trusted sender.

Namespace: DidiSoft.Pgp
Assembly: 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

ExceptionCondition
System.IO..::..IOExceptionif a problem has occurred reading input file or public key file
DidiSoft.Pgp..::..PGPExceptionGeneral OpenPGP error
DidiSoft.Pgp.Exceptions..::..FileIsEncryptedExceptionIf the input signed message is not only signed but also encrypted.
NonPGPDataExceptionif the input data is not a valid OpenPGP message

See Also