My favorites
▼
|
Sign in
tinyradius4net
use C# to rewrite Tiny Radius
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
1
attachment: AccessRequest.patch
(1.2 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*** C:/download/tinyradius4net-read-only/Src/TinyRadius.Net.Core/Packet/AccessRequest.cs Sun Feb 24 21:41:28 2013
--- C:/Data/Privat/Clava Project/TinyRadius.Net.Core/Packet/AccessRequest.cs Thu May 16 22:31:08 2013
***************
*** 250,260 ****
byteAry.AddRange(i == 0 ? Authenticator : lastBlock);
byte[] bn = md5.ComputeHash(byteAry.ToArray());
- Array.Copy(encryptedPass, i, lastBlock, 0, 16);
-
// perform the XOR as specified by RFC 2865.
for (int j = 0; j < 16; j++)
encryptedPass[i + j] = (byte) (bn[j] ^ encryptedPass[i + j]);
}
return encryptedPass;
--- 250,260 ----
byteAry.AddRange(i == 0 ? Authenticator : lastBlock);
byte[] bn = md5.ComputeHash(byteAry.ToArray());
// perform the XOR as specified by RFC 2865.
for (int j = 0; j < 16; j++)
encryptedPass[i + j] = (byte) (bn[j] ^ encryptedPass[i + j]);
+
+ Array.Copy(encryptedPass, i, lastBlock, 0, 16);
}
return encryptedPass;
Powered by
Google Project Hosting