openikev2::PseudoRandomFunction Class Reference

This class represents a Pseudo-Random Function (PRF). More...

#include <pseudorandomfunction.h>

List of all members.

Public Member Functions

virtual auto_ptr< ByteArrayprf (ByteArray &key, ByteArray &data)=0
 Computes the PRF value, using the indicated parameters.
virtual auto_ptr< ByteArrayprfPlus (ByteArray &key, ByteArray &sequence, uint32_t needed_size)
 Computes the PRF+ value, using the indicated parameters.

Public Attributes

uint32_t prf_size
 PRF result value size.


Detailed Description

This class represents a Pseudo-Random Function (PRF).

Author:
Alejandro Perez Mendez, Pedro J. Fernandez Ruiz <alejandro_perez@dif.um.es, pedroj.fernandez@dif.um.es>


Member Function Documentation

virtual auto_ptr<ByteArray> openikev2::PseudoRandomFunction::prf ( ByteArray key,
ByteArray data 
) [pure virtual]

Computes the PRF value, using the indicated parameters.

Parameters:
key Key
data Data to compute the PRF value
Returns:
PRF value

auto_ptr< ByteArray > openikev2::PseudoRandomFunction::prfPlus ( ByteArray key,
ByteArray sequence,
uint32_t  needed_size 
) [virtual]

Computes the PRF+ value, using the indicated parameters.

Parameters:
key Key
sequence Sequence (S)
needed_size Needed key material size
Returns:
Key material


Generated on Fri Jul 27 11:04:56 2007 for libopenikev2 by  doxygen 1.5.1