@@ -167,8 +167,8 @@ async function continueScramConversation(
167167 const serverKey = await HMAC ( cryptoMethod , saltedPassword , 'Server Key' ) ;
168168 const storedKey = await H ( cryptoMethod , clientKey ) ;
169169 const firstMessageBytes = clientFirstMessageBare ( username , nonce ) ;
170- const firstMessage = ByteUtils . toUTF8 ( firstMessageBytes , 0 , firstMessageBytes . length , true ) ;
171- const payloadString = ByteUtils . toUTF8 ( payload . buffer , 0 , payload . position , true ) ;
170+ const firstMessage = ByteUtils . toUTF8 ( firstMessageBytes , 0 , firstMessageBytes . length , false ) ;
171+ const payloadString = ByteUtils . toUTF8 ( payload . buffer , 0 , payload . position , false ) ;
172172 const authMessage = [ firstMessage , payloadString , withoutProof ] . join ( ',' ) ;
173173
174174 const clientSignature = await HMAC ( cryptoMethod , storedKey , authMessage ) ;
@@ -204,7 +204,7 @@ async function continueScramConversation(
204204}
205205
206206function parsePayload ( payload : Binary ) {
207- const payloadStr = ByteUtils . toUTF8 ( payload . buffer , 0 , payload . position , true ) ;
207+ const payloadStr = ByteUtils . toUTF8 ( payload . buffer , 0 , payload . position , false ) ;
208208 const dict : Document = { } ;
209209 const parts = payloadStr . split ( ',' ) ;
210210 for ( let i = 0 ; i < parts . length ; i ++ ) {
0 commit comments