reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
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:
[legend]

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_t 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 81 of file SHA1Stream.hxx.

Constructor & Destructor Documentation

◆ SHA1Stream()

SHA1Stream::SHA1Stream ( )

Definition at line 101 of file SHA1Stream.cxx.

◆ ~SHA1Stream()

SHA1Stream::~SHA1Stream ( )

Definition at line 106 of file SHA1Stream.cxx.

Member Function Documentation

◆ getBin()

Data 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

Definition at line 118 of file SHA1Stream.cxx.

◆ getHex()

Data 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

Definition at line 110 of file SHA1Stream.cxx.

◆ getUInt32()

uint32_t SHA1Stream::getUInt32 ( )

Calls getBin(32) and converts to a UInt32.

Definition at line 125 of file SHA1Stream.cxx.


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