@@ -93,9 +93,9 @@ public CryptContext StartEncryptionContext(string db, byte[] command)
9393 /// </summary>
9494 /// <param name="key">The key.</param>
9595 /// <param name="encryptionAlgorithm">The encryption algorithm.</param>
96- /// <param name="command ">The BSON command .</param>
96+ /// <param name="message ">The BSON message .</param>
9797 /// <returns>A encryption context. </returns>
98- public CryptContext StartExplicitEncryptionContext ( Guid key , EncryptionAlgorithm encryptionAlgorithm , byte [ ] command )
98+ public CryptContext StartExplicitEncryptionContext ( Guid key , EncryptionAlgorithm encryptionAlgorithm , byte [ ] message )
9999 {
100100 ContextSafeHandle handle = Library . mongocrypt_ctx_new ( _handle ) ;
101101
@@ -116,10 +116,10 @@ public CryptContext StartExplicitEncryptionContext(Guid key, EncryptionAlgorithm
116116
117117 unsafe
118118 {
119- fixed ( byte * p = command )
119+ fixed ( byte * p = message )
120120 {
121121 IntPtr ptr = ( IntPtr ) p ;
122- using ( PinnedBinary pinned = new PinnedBinary ( ptr , ( uint ) command . Length ) )
122+ using ( PinnedBinary pinned = new PinnedBinary ( ptr , ( uint ) message . Length ) )
123123 {
124124 handle . Check ( _status , Library . mongocrypt_ctx_explicit_encrypt_init ( handle , pinned . Handle ) ) ;
125125 }
@@ -134,9 +134,9 @@ public CryptContext StartExplicitEncryptionContext(Guid key, EncryptionAlgorithm
134134 /// </summary>
135135 /// <param name="keyAltName">The alternative key name.</param>
136136 /// <param name="encryptionAlgorithm">The algorithm.</param>
137- /// <param name="command ">The BSON command .</param>
137+ /// <param name="message ">The BSON message .</param>
138138 /// <returns>A encryption context. </returns>
139- public CryptContext StartExplicitEncryptionContext ( byte [ ] keyAltName , EncryptionAlgorithm encryptionAlgorithm , byte [ ] command )
139+ public CryptContext StartExplicitEncryptionContext ( byte [ ] keyAltName , EncryptionAlgorithm encryptionAlgorithm , byte [ ] message )
140140 {
141141 ContextSafeHandle handle = Library . mongocrypt_ctx_new ( _handle ) ;
142142 unsafe
@@ -155,10 +155,10 @@ public CryptContext StartExplicitEncryptionContext(byte[] keyAltName, Encryption
155155
156156 unsafe
157157 {
158- fixed ( byte * p = command )
158+ fixed ( byte * p = message )
159159 {
160160 IntPtr ptr = ( IntPtr ) p ;
161- using ( PinnedBinary pinned = new PinnedBinary ( ptr , ( uint ) command . Length ) )
161+ using ( PinnedBinary pinned = new PinnedBinary ( ptr , ( uint ) message . Length ) )
162162 {
163163 handle . Check ( _status , Library . mongocrypt_ctx_explicit_encrypt_init ( handle , pinned . Handle ) ) ;
164164 }
0 commit comments