reSIProcate/rutil  9694
Public Member Functions
resip::SHA1Stream Class Reference

Used to accumlate data written to the stream in a SHA1Buffer and convert the data to SHA1. More...

#include <SHA1Stream.hxx>

Inheritance diagram for resip::SHA1Stream:
Inheritance graph
[legend]
Collaboration diagram for resip::SHA1Stream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SHA1Stream ()
 ~SHA1Stream ()
Data getHex ()
 Calls flush() on itself and returns the SHA1 data in hex format.
Data getBin (unsigned int bits=160)
 Calls flush() on itself and returns the SHA1 data in binary format.
UInt32 getUInt32 ()
 Calls getBin(32) and converts to a UInt32.

Detailed Description

Used to accumlate data written to the stream in a SHA1Buffer and convert the data to SHA1.

Definition at line 68 of file SHA1Stream.hxx.


Constructor & Destructor Documentation

resip::SHA1Stream::SHA1Stream ( )
resip::SHA1Stream::~SHA1Stream ( )

Member Function Documentation

Data resip::SHA1Stream::getBin ( unsigned int  bits = 160)

Calls flush() on itself and returns the SHA1 data in binary format.

Parameters:
bitsthe lowest order bits in network byte order. bits must be multiple of 8
Returns:
the SHA1 binary representation of the data written to the stream

Reimplemented from resip::SHA1Buffer.

Referenced by main().

Data resip::SHA1Stream::getHex ( )

Calls flush() on itself and returns the SHA1 data in hex format.

Returns:
the SHA1 hexadecimal representation of the data written to the stream

Reimplemented from resip::SHA1Buffer.

Referenced by main().

UInt32 resip::SHA1Stream::getUInt32 ( )

Calls getBin(32) and converts to a UInt32.


The documentation for this class was generated from the following file: