/// <summary> /// Decrypt a message for this context. /// </summary> /// <param name="messages">The messages to decrypt.</param> /// <param name="sequence_no">The sequence number.</param> /// <param name="signature">The signature for the messages.</param> /// <remarks>The messages are decrypted in place. You can add buffers with the ReadOnly flag to prevent them being decrypted.</remarks> public void DecryptMessage(IEnumerable <SecurityBuffer> messages, byte[] signature, int sequence_no) { SecurityContextUtils.DecryptMessage(Context, messages, signature, sequence_no); }
/// <summary> /// Decrypt a message for this context. /// </summary> /// <param name="message">The message to decrypt.</param> /// <param name="sequence_no">The sequence number.</param> /// <returns>The decrypted message.</returns> public byte[] DecryptMessage(EncryptedMessage message, int sequence_no) { return(SecurityContextUtils.DecryptMessage(Context, message, sequence_no)); }