Click or drag to resize

ISecurityContext.DecryptMessage Method

Decrypts ciphertext to plaintext.

Namespace:  MongoDB.Driver.Core.Authentication
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
byte[] DecryptMessage(
	int messageLength,
	byte[] encryptedBytes
)

Parameters

messageLength
Type: System.Int32
Number of message bytes. Remaining bytes are the security trailer.
encryptedBytes
Type:System.Byte[]
Ciphertext to decrypt.

Return Value

Type:Byte[]
Decrypted plaintext.
See Also