Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security/Mono.Security.Cryptography
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22517
Modified Files:
PKCS1.cs
Log Message:
Fixed typo
Index: PKCS1.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security.Protocol.Tls/Mono.Security.Protocol.Tls/Mono.Security/Mono.Security.Cryptography/PKCS1.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PKCS1.cs 21 Dec 2003 14:52:03 -0000 1.2
--- PKCS1.cs 10 Feb 2004 08:49:33 -0000 1.3
***************
*** 270,274 ****
// NOTE: some signatures don't include the hash OID (pretty lame but real)
// and compatible with MS implementation
! if ((EM2 [0] != 0x00) || (EM2 [0] != 0x01))
return false;
// TODO: add more validation
--- 270,274 ----
// NOTE: some signatures don't include the hash OID (pretty lame but real)
// and compatible with MS implementation
! if ((EM2 [0] != 0x00) || (EM2 [1] != 0x01))
return false;
// TODO: add more validation
***************
*** 294,306 ****
byte[] t = null;
! string oid = CryptoConfig.MapNameToOID (hash.ToString ());
! if (oid != null)
! {
! ASN1 digestAlgorithm = new ASN1 (0x30);
! digestAlgorithm.Add (new ASN1 (CryptoConfig.EncodeOID (oid)));
! digestAlgorithm.Add (new ASN1 (0x05)); // NULL
! ASN1 digest = new ASN1 (0x04, hashValue);
! ASN1 digestInfo = new ASN1 (0x30);
! digestInfo.Add (digestAlgorithm);
digestInfo.Add (digest);
--- 294,306 ----
byte[] t = null;
! string oid = CryptoConfig.MapNameToOID (hash.ToString ());
! if (oid != null)
! {
! ASN1 digestAlgorithm = new ASN1 (0x30);
! digestAlgorithm.Add (new ASN1 (CryptoConfig.EncodeOID (oid)));
! digestAlgorithm.Add (new ASN1 (0x05)); // NULL
! ASN1 digest = new ASN1 (0x04, hashValue);
! ASN1 digestInfo = new ASN1 (0x30);
! digestInfo.Add (digestAlgorithm);
digestInfo.Add (digest);
|