Copyright | (c) Erick Gonzalez 2017 |
---|---|
License | BSD3 |
Maintainer | erick@codemonkeylabs.de |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
This module provides encoding for some of the Microsoft specific attributes, particularly those needed for MSCHAPv2.
- encodeMPPESendKeyAttribute :: Word16 -> ByteString -> ByteString -> ByteString -> PacketAttribute
- encodeMPPERecvKeyAttribute :: Word16 -> ByteString -> ByteString -> ByteString -> PacketAttribute
- encodeMPPEEncryptionPolicyAttribute :: Word32 -> PacketAttribute
- encodeMPPEEncryptionTypesAttribute :: Word32 -> PacketAttribute
Documentation
encodeMPPESendKeyAttribute Source #
:: Word16 | 16 bit random salt |
-> ByteString | MPPE send key |
-> ByteString | Password |
-> ByteString | Authenticator in Access-Request message |
-> PacketAttribute |
Encode the MS-MPPE-Send-Key RADIUS attribute as per [RFC2548]
encodeMPPERecvKeyAttribute Source #
:: Word16 | 16 bit random salt |
-> ByteString | MPPE recv key |
-> ByteString | Password |
-> ByteString | Authenticator in Access-Request message |
-> PacketAttribute |
Encode the MS-MPPE-Recv-Key RADIUS attribute as per [RFC2548]
encodeMPPEEncryptionPolicyAttribute Source #
:: Word32 | Policy value |
-> PacketAttribute |
Encode MS-MPPE-Encryption-Policy as per [RFC2548]
encodeMPPEEncryptionTypesAttribute Source #
:: Word32 | |
-> PacketAttribute | Encryption types value (see RFC) |
Encode MS-MPPE-Encryption-Types as per [RFC2548]