The Battle for Wesnoth  1.15.2+dev
Public Member Functions | List of all members
utils::sha1 Class Reference

#include <hash.hpp>

Inheritance diagram for utils::sha1:
Inheritance graph

Public Member Functions

 sha1 (const std::string &input)
 
virtual std::string base64_digest () const override
 
virtual std::string hex_digest () const override
 
- Public Member Functions inherited from utils::hash_digest< 20 >
std::array< uint8_t, sz > raw_digest () const
 
- Public Member Functions inherited from utils::hash_base
virtual ~hash_base ()
 

Additional Inherited Members

- Static Public Attributes inherited from utils::hash_digest< 20 >
static const int DIGEST_SIZE
 
- Protected Attributes inherited from utils::hash_digest< 20 >
std::array< uint8_t, sz > hash
 

Detailed Description

Definition at line 65 of file hash.hpp.

Constructor & Destructor Documentation

◆ sha1()

utils::sha1::sha1 ( const std::string &  input)
explicit

Definition at line 126 of file hash.cpp.

Member Function Documentation

◆ base64_digest()

std::string utils::sha1::base64_digest ( ) const
overridevirtual

Implements utils::hash_base.

Definition at line 143 of file hash.cpp.

◆ hex_digest()

std::string utils::sha1::hex_digest ( ) const
overridevirtual

Implements utils::hash_base.

Definition at line 138 of file hash.cpp.


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