コード例 #1
0
 /// <summary>
 /// Encrypt a message for this context with no specific signature.
 /// </summary>
 /// <param name="messages">The messages to encrypt.</param>
 /// <param name="quality_of_protection">Quality of protection flags.</param>
 /// <param name="sequence_no">The sequence number.</param>
 /// <remarks>The messages are encrypted in place. You can add buffers with the ReadOnly flag to prevent them being encrypted.
 /// If you need to return a signature then it must be specified in a buffer.</remarks>
 public void EncryptMessageNoSignature(IEnumerable <SecurityBuffer> messages, SecurityQualityOfProtectionFlags quality_of_protection, int sequence_no)
 {
     SecurityContextUtils.EncryptMessage(Context, quality_of_protection, messages, sequence_no);
 }
コード例 #2
0
 /// <summary>
 /// Encrypt a message for this context.
 /// </summary>
 /// <param name="messages">The messages to encrypt.</param>
 /// <param name="quality_of_protection">Quality of protection flags.</param>
 /// <returns>The signature for the messages.</returns>
 /// <remarks>The messages are encrypted in place. You can add buffers with the ReadOnly flag to prevent them being encrypted.</remarks>
 /// <param name="sequence_no">The sequence number.</param>
 public byte[] EncryptMessage(IEnumerable <SecurityBuffer> messages, SecurityQualityOfProtectionFlags quality_of_protection, int sequence_no)
 {
     return(SecurityContextUtils.EncryptMessage(Context, quality_of_protection, messages, sequence_no));
 }
 /// <summary>
 /// Encrypt a message for this context.
 /// </summary>
 /// <param name="messages">The messages to encrypt.</param>
 /// <param name="sequence_no">The sequence number.</param>
 /// <returns>The signature for the messages.</returns>
 /// <remarks>The messages are encrypted in place. You can add buffers with the ReadOnly flag to prevent them being encrypted.</remarks>
 public byte[] EncryptMessage(IEnumerable <SecurityBuffer> messages, int sequence_no)
 {
     return(SecurityContextUtils.EncryptMessage(_context, 0, messages, sequence_no));
 }
コード例 #4
0
 /// <summary>
 /// Encrypt a message for this context.
 /// </summary>
 /// <param name="message">The message to encrypt.</param>
 /// <param name="quality_of_protection">Quality of protection flags.</param>
 /// <returns>The encrypted message.</returns>
 /// <param name="sequence_no">The sequence number.</param>
 public EncryptedMessage EncryptMessage(byte[] message, SecurityQualityOfProtectionFlags quality_of_protection, int sequence_no)
 {
     return(SecurityContextUtils.EncryptMessage(Context, quality_of_protection, message, sequence_no));
 }
 /// <summary>
 /// Encrypt a message for this context.
 /// </summary>
 /// <param name="message">The message to encrypt.</param>
 /// <param name="sequence_no">The sequence number.</param>
 /// <returns>The encrypted message.</returns>
 public EncryptedMessage EncryptMessage(byte[] message, int sequence_no)
 {
     return(SecurityContextUtils.EncryptMessage(_context, 0, message, sequence_no));
 }