Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls
In directory sc8-pr-cvs1:/tmp/cvs-serv1526
Modified Files:
CipherSuite.cs TlsSslCipherSuite.cs
Log Message:
2003-11-10 Carlos Guzmán Álvarez <car...@te...>
* Mono.Security.Protocol.Tls.Alerts/TlsAlert.cs:
- Fixed invalid alert message.
* Mono.Security.Protocol.Tls/CipherSuite.cs:
* Mono.Security.Protocol.Tls/TlsSslCipherSuite.cs:
* Mono.Security.Cryptography/HMAC.cs:
* Mono.Security.Cryptography/MD5SHA1CryptoServiceProvider.cs:
* Mono.Security.Protocol.Tls.Handshake.Client/TlsClientCertificateVerify.cs:
- Changed ( Thanks to Sebastién Pouliot for his feedback )
SHA1CryptoServiceProvider sha = new SHA1CryptoServiceProvider();
MD5CryptoServiceProvider sha = new MD5CryptoServiceProvider();
to
HashAlgorithm sha = SHA1.Create();
HashAlgorithm md5 = MD5.Create();
Index: CipherSuite.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/CipherSuite.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CipherSuite.cs 7 Nov 2003 10:05:35 -0000 1.7
--- CipherSuite.cs 10 Nov 2003 12:16:03 -0000 1.8
***************
*** 343,348 ****
public byte[] PRF(byte[] secret, string label, byte[] data, int length)
{
! MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
! SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider();
int secretLen = secret.Length / 2;
--- 343,348 ----
public byte[] PRF(byte[] secret, string label, byte[] data, int length)
{
! HashAlgorithm md5 = MD5.Create();
! HashAlgorithm sha1 = SHA1.Create();
int secretLen = secret.Length / 2;
Index: TlsSslCipherSuite.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/TlsSslCipherSuite.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** TlsSslCipherSuite.cs 3 Nov 2003 20:34:30 -0000 1.10
--- TlsSslCipherSuite.cs 10 Nov 2003 12:16:03 -0000 1.11
***************
*** 193,197 ****
else
{
! MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
// Generate final write keys
--- 193,197 ----
else
{
! HashAlgorithm md5 = MD5.Create();
// Generate final write keys
***************
*** 223,228 ****
private byte[] prf(byte[] secret, string label, byte[] random)
{
! HashAlgorithm md5 = new MD5CryptoServiceProvider();
! SHA1CryptoServiceProvider sha = new SHA1CryptoServiceProvider();
// Compute SHA hash
--- 223,228 ----
private byte[] prf(byte[] secret, string label, byte[] random)
{
! HashAlgorithm md5 = MD5.Create();
! HashAlgorithm sha = SHA1.Create();
// Compute SHA hash
|