Exemple #1
0
 /// <summary>
 /// Verify a signature for this context.
 /// </summary>
 /// <param name="messages">The messages to verify.</param>
 /// <param name="signature">The signature blob for the message.</param>
 /// <param name="sequence_no">The sequence number.</param>
 /// <returns>True if the signature is valid, otherwise false.</returns>
 public bool VerifySignature(IEnumerable <SecurityBuffer> messages, byte[] signature, int sequence_no)
 {
     return(SecurityContextUtils.VerifySignature(Context, messages, signature, sequence_no));
 }
Exemple #2
0
 /// <summary>
 /// Verify a signature for this context.
 /// </summary>
 /// <param name="message">The message to verify.</param>
 /// <param name="signature">The signature blob for the message.</param>
 /// <param name="sequence_no">The sequence number.</param>
 /// <returns>True if the signature is valid, otherwise false.</returns>
 public bool VerifySignature(byte[] message, byte[] signature, int sequence_no)
 {
     return(SecurityContextUtils.VerifySignature(Context, message, signature, sequence_no));
 }