Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

AnonymizeIPAddr_RandomMD5 Class Reference

#include <Anon.h>

Inheritance diagram for AnonymizeIPAddr_RandomMD5:

Inheritance graph
[legend]
Collaboration diagram for AnonymizeIPAddr_RandomMD5:

Collaboration graph
[legend]
List of all members.

Public Member Functions

ipaddr32_t anonymize (ipaddr32_t addr)

Member Function Documentation

ipaddr32_t AnonymizeIPAddr_RandomMD5::anonymize ipaddr32_t  addr  )  [virtual]
 

Implements AnonymizeIPAddr.

Definition at line 89 of file Anon.cc.

References hmac_md5(), ipaddr32_t, and uint8.

00090         {
00091         uint8 digest[16];
00092         ipaddr32_t output = 0;
00093 
00094         hmac_md5(sizeof(input), (u_char*)(&input), digest);
00095 
00096         for ( int i = 0; i < 4; ++i )
00097                 output = (output << 8) | digest[i];
00098 
00099         return output;
00100         }


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 03:07:36 2005 for bro_docs by doxygen 1.3.5