@@ -102,7 +102,7 @@ public EncryptedCollectionBuilder<TDocument> EncryptMetadata(Guid? keyId = null,
102102 _schema [ "encryptMetadata" ] = new BsonDocument
103103 {
104104 { "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 }
106106 } ;
107107 return this ;
108108 }
@@ -298,7 +298,7 @@ private static BsonDocument CreateEncryptDocument(
298298 { "encrypt" , new BsonDocument
299299 {
300300 { "bsonType" , ( ) => bsonTypeVal , bsonTypeVal is not null } ,
301- { "algorithm" , ( ) => MapCsfleEncyptionAlgorithmToString ( algorithm ! . Value ) , algorithm is not null } ,
301+ { "algorithm" , ( ) => MapCsfleEncryptionAlgorithmToString ( algorithm ! . Value ) , algorithm is not null } ,
302302 {
303303 "keyId" ,
304304 ( ) => new BsonArray ( new [ ] { new BsonBinaryData ( keyId ! . Value , GuidRepresentation . Standard ) } ) ,
@@ -355,7 +355,7 @@ private static string MapBsonTypeToString(BsonType type)
355355 } ;
356356 }
357357
358- private static string MapCsfleEncyptionAlgorithmToString ( EncryptionAlgorithm algorithm )
358+ private static string MapCsfleEncryptionAlgorithmToString ( EncryptionAlgorithm algorithm )
359359 {
360360 return algorithm switch
361361 {
0 commit comments