[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Cryptography
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Cryptography RijndaelManaged.cs,1.1,1.2 TripleDESCryptoServiceProvider.cs,1.1,1.2 |
Date: |
Tue, 26 Nov 2002 21:13:24 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Cryptography
In directory subversions:/tmp/cvs-serv23898/runtime/System/Security/Cryptography
Modified Files:
RijndaelManaged.cs TripleDESCryptoServiceProvider.cs
Log Message:
Implement cryptography tests and fixes that involve random number generation.
Index: RijndaelManaged.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Cryptography/RijndaelManaged.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** RijndaelManaged.cs 6 Jul 2002 07:03:07 -0000 1.1
--- RijndaelManaged.cs 27 Nov 2002 02:13:22 -0000 1.2
***************
*** 74,79 ****
public override void GenerateKey()
{
! byte[] key = new byte [KeySizeValue];
! CryptoMethods.GenerateRandom(key, 0,
KeySizeValue);
if(KeyValue != null)
{
--- 74,79 ----
public override void GenerateKey()
{
! byte[] key = new byte [KeySizeValue / 8];
! CryptoMethods.GenerateRandom(key, 0,
KeySizeValue / 8);
if(KeyValue != null)
{
Index: TripleDESCryptoServiceProvider.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Cryptography/TripleDESCryptoServiceProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TripleDESCryptoServiceProvider.cs 6 Jul 2002 07:03:07 -0000 1.1
--- TripleDESCryptoServiceProvider.cs 27 Nov 2002 02:13:22 -0000 1.2
***************
*** 74,81 ****
public override void GenerateKey()
{
! byte[] key = new byte [KeySizeValue];
do
{
! CryptoMethods.GenerateRandom(key, 0,
KeySizeValue);
}
while(IsWeakKey(key));
--- 74,81 ----
public override void GenerateKey()
{
! byte[] key = new byte [KeySizeValue / 8];
do
{
! CryptoMethods.GenerateRandom(key, 0,
KeySizeValue / 8);
}
while(IsWeakKey(key));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Cryptography RijndaelManaged.cs,1.1,1.2 TripleDESCryptoServiceProvider.cs,1.1,1.2,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.479,1.480
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Cryptography TestRNG.cs,NONE,1.1 CryptoTestCase.cs,1.3,1.4 TestCryptography.cs,1.1,1.2
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.479,1.480
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/tests/runtime/System/Security/Cryptography TestRNG.cs,NONE,1.1 CryptoTestCase.cs,1.3,1.4 TestCryptography.cs,1.1,1.2
- Index(es):