A cleartext value is wrong for salt encrypted attributes in a RADIUS packet (e.g. MS-CHAP2 MPPE keys).
There are two points about a hash value:
- Decryption and encryption functions are not completely the same. The hash must use part of an encrypted value, not a decrypted one
last = data[:16] for the decryption.
- The initial hash value must use a request packet authenticator, not a reply packet authenticator
|
last = self.authenticator + salt |
A cleartext value is wrong for salt encrypted attributes in a RADIUS packet (e.g. MS-CHAP2 MPPE keys).
There are two points about a hash value:
pyrad/pyrad/packet.py
Line 595 in dd34c5a
last = data[:16]for the decryption.pyrad/pyrad/packet.py
Line 585 in dd34c5a