[pgsqlclient-checkins] pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls RecordP
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2004-03-10 12:21:21
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10708 Modified Files: RecordProtocol.cs Log Message: Cleanup Index: RecordProtocol.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** RecordProtocol.cs 9 Mar 2004 22:05:51 -0000 1.10 --- RecordProtocol.cs 10 Mar 2004 12:03:11 -0000 1.11 *************** *** 345,349 **** byte[] ecr = this.context.Cipher.EncryptRecord(fragment, mac); ! // Set new IV if (this.context.Cipher.CipherMode == CipherMode.CBC) { --- 345,349 ---- byte[] ecr = this.context.Cipher.EncryptRecord(fragment, mac); ! // Set new Client Cipher IV if (this.context.Cipher.CipherMode == CipherMode.CBC) { *************** *** 369,391 **** // Decrypt message this.context.Cipher.DecryptRecord(fragment, ref dcrFragment, ref dcrMAC); - - #warning "This code needs review" - /* - // Set new IV - if (this.context.Cipher.CipherMode == CipherMode.CBC) - { - byte[] iv = new byte[this.context.Cipher.IvSize]; - System.Array.Copy(fragment, fragment.Length - iv.Length, iv, 0, iv.Length); - - if (this.Context is ClientContext) - { - // this.context.Cipher.UpdateServerCipherIV(iv); - } - else - { - // this.context.Cipher.UpdateClientCipherIV(iv); - } - } - */ // Check MAC code --- 369,372 ---- *************** *** 405,408 **** --- 386,390 ---- throw new TlsException("Invalid MAC received from server."); } + for (int i = 0; i < mac.Length; i++) { |