@@ -102,7 +102,7 @@ public EncryptedCollectionBuilder<TDocument> EncryptMetadata(Guid? keyId = null,
102
102
_schema [ "encryptMetadata" ] = new BsonDocument
103
103
{
104
104
{ "keyId" , ( ) => new BsonArray { new BsonBinaryData ( keyId ! . Value , GuidRepresentation . Standard ) } , keyId is not null } ,
105
- { "algorithm" , ( ) => MapCsfleEncyptionAlgorithmToString ( algorithm ! . Value ) , algorithm is not null }
105
+ { "algorithm" , ( ) => MapCsfleEncryptionAlgorithmToString ( algorithm ! . Value ) , algorithm is not null }
106
106
} ;
107
107
return this ;
108
108
}
@@ -298,7 +298,7 @@ private static BsonDocument CreateEncryptDocument(
298
298
{ "encrypt" , new BsonDocument
299
299
{
300
300
{ "bsonType" , ( ) => bsonTypeVal , bsonTypeVal is not null } ,
301
- { "algorithm" , ( ) => MapCsfleEncyptionAlgorithmToString ( algorithm ! . Value ) , algorithm is not null } ,
301
+ { "algorithm" , ( ) => MapCsfleEncryptionAlgorithmToString ( algorithm ! . Value ) , algorithm is not null } ,
302
302
{
303
303
"keyId" ,
304
304
( ) => new BsonArray ( new [ ] { new BsonBinaryData ( keyId ! . Value , GuidRepresentation . Standard ) } ) ,
@@ -355,7 +355,7 @@ private static string MapBsonTypeToString(BsonType type)
355
355
} ;
356
356
}
357
357
358
- private static string MapCsfleEncyptionAlgorithmToString ( EncryptionAlgorithm algorithm )
358
+ private static string MapCsfleEncryptionAlgorithmToString ( EncryptionAlgorithm algorithm )
359
359
{
360
360
return algorithm switch
361
361
{
0 commit comments