NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::sha1 Namespace Reference

Functions

void calc (void const *src, size_t bytelength, unsigned char *hash)
 Calculate a SHA1 hash. More...
 

Function Documentation

◆ calc()

void websocketpp::sha1::calc ( void const *  src,
size_t  bytelength,
unsigned char *  hash 
)
inline

Calculate a SHA1 hash.

Parameters
srcpoints to any kind of data to be hashed.
bytelengththe number of bytes to hash from the src pointer.
hashshould point to a buffer of at least 20 bytes of size for storing the sha1 result in.

Definition at line 127 of file sha1.hpp.

Referenced by BOOST_AUTO_TEST_CASE(), and websocketpp::processor::hybi13< stub_config >::process_handshake_key().