Sample Code

Windows Driver Samples/ Native Wifi IHV Service/ C++/ ihvsample/ rc4utils.h/

#pragma once

#ifdef __cplusplus
extern "C" {
#endif



#include <packon.h>

typedef struct EAPOL_PACKET
{
    BYTE        ProtocolVersion;
    BYTE        PacketType;
    BYTE        PacketBodyLength[2];
    BYTE        PacketBody[1];
} EAPOL_PACKET, *UNALIGNED PEAPOL_PACKET;

#include <packoff.h>


VOID
WINAPI
RC4UtilsFreeKeyMaterial
(
    PBYTE   pbDecryptedKey,
    DWORD   dwKeyLen
);


DWORD
WINAPI
RC4UtilsParseKeyPacket
(
    PEAPOL_PACKET                   pEapolPkt,
    ULONG                           uPktLen,
    PDOT11_MSONEX_RESULT_PARAMS     pOneXResultParams,
    BOOL*                           pbUCast,
    PBYTE*                          ppbDecryptedKey,
    DWORD*                          pdwKeyLen,
    DWORD*                          pdwKeyIndex
);



DWORD
WINAPI
RC4UtilsDecryptResultParams
(
    PDOT11_MSONEX_RESULT_PARAMS     pResultParamsOrig,
    PDOT11_MSONEX_RESULT_PARAMS*    ppResultParamsCopy
);


VOID
WINAPI
RC4UtilsFreeResultParams
(
    PDOT11_MSONEX_RESULT_PARAMS*    ppResultParams
);


#ifdef __cplusplus
}
#endif

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS