Back to Site
Loading...
Searching...
No Matches
librats::SHA1 Class Reference

#include <sha1.h>

Public Member Functions

 SHA1 ()
 
void update (uint8_t byte)
 
void update (const uint8_t *data, size_t length)
 
void update (const std::string &str)
 
std::string finalize ()
 

Static Public Member Functions

static std::string hash (const std::string &input)
 
static std::string hash_bytes (const std::vector< uint8_t > &input)
 

Detailed Description

Definition at line 9 of file sha1.h.

Constructor & Destructor Documentation

◆ SHA1()

librats::SHA1::SHA1 ( )

Member Function Documentation

◆ finalize()

std::string librats::SHA1::finalize ( )

◆ hash()

static std::string librats::SHA1::hash ( const std::string &  input)
static

◆ hash_bytes()

static std::string librats::SHA1::hash_bytes ( const std::vector< uint8_t > &  input)
static

◆ update() [1/3]

void librats::SHA1::update ( const std::string &  str)

◆ update() [2/3]

void librats::SHA1::update ( const uint8_t *  data,
size_t  length 
)

◆ update() [3/3]

void librats::SHA1::update ( uint8_t  byte)

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