Discuss this help topic in SecureBlackbox Forum

TElMessageVerifier.IsSignatureDetached

TElMessageVerifier     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This method checks whether buffer contains the detached signature

Declaration

[C#]
    static bool IsSignatureDetached(byte[] Signature);
    static bool IsSignatureDetached(byte[] Signature, int StartIndex, int Size);
    static bool IsSignatureDetached(System.IO.Stream Signature, long Count);

[VB.NET]
    Shared Function IsSignatureDetached(ByVal Signature As Byte()) As Boolean
    Shared Function IsSignatureDetached(ByVal Signature As Byte(), ByVal StartIndex As Integer, ByVal Size As Integer) As Boolean
    Shared Function IsSignatureDetached(ByVal Signature As System.IO.Stream, ByVal Count As Long) As Boolean

[Pascal]
    class function IsSignatureDetached(Signature : pointer; Size : integer) : boolean; overload;
    class function IsSignatureDetached(Signature : TStream; Count : Int64 = 0) : boolean; overload;

[C++]
    static bool IsSignatureDetached(void * Signature, int32_t Size);
    static bool IsSignatureDetached(TStream &Signature, int64_t Count);
    static bool IsSignatureDetached(TStream *Signature, int64_t Count);

[PHP]
    bool IsSignatureDetached(TSBPointer|array of byte|string|NULL $Signature, integer $Size)
    bool IsSignatureDetached(TStream $Signature, integer $Count)

[Java]
    static boolean isSignatureDetached(byte[] Signature, int StartIndex, int Size);
    static boolean isSignatureDetached(byte[] Signature);
    static boolean isSignatureDetached(TElStream Signature, long Count);

Parameters

  • Signature - Pointer to (or stream with) PKCS#7 data which should be checked
  • StartIndex - Starting index of the data in the Signature buffer.
  • Size - Size of input data in bytes
  • Count - Number of bytes to be read from the Signature stream. If this parameter is 0 the data is read till the end of the stream. The default value is 0.

Return value

    True if the Signature buffer contains the detached signature.
    False otherwise,

Description

    Use this method to check whether PKCS#7 data contains the detached signature only or the message with signature.

See also:     Verify     VerifyDetached    

Discuss this help topic in SecureBlackbox Forum