#include "hash.hpp"


Classes | |
| struct | Hasher |
Public Member Functions | |
| Hash () | |
| Hash (const std::string &hash) | |
| Hash (const Blob &blob) | |
| std::string | toString () const override |
Public Member Functions inherited from shared_model::crypto::Blob | |
| Blob ()=default | |
| Blob (std::string_view blob) | |
| Blob (const Bytes &blob) | |
| Blob (shared_model::interface::types::ByteRange range) | |
| Blob (Bytes &&blob) noexcept | |
| virtual const Bytes & | blob () const |
| shared_model::interface::types::ByteRange | range () const |
| virtual const std::string & | hex () const |
| virtual size_t | size () const |
| bool | operator== (const Blob &rhs) const override |
Public Member Functions inherited from shared_model::interface::ModelPrimitive< Blob > | |
| virtual bool | operator== (const ModelType &rhs) const=0 |
| virtual bool | operator!= (const ModelType &rhs) const |
| virtual | ~ModelPrimitive ()=default |
Public Member Functions inherited from Cloneable< Blob > | |
| virtual | ~Cloneable ()=default |
Static Public Member Functions | |
| static Hash | fromHexString (const std::string &hex) |
Static Public Member Functions inherited from shared_model::crypto::Blob | |
| static Blob | fromHexString (const std::string &hex) |
Additional Inherited Members | |
Public Types inherited from shared_model::crypto::Blob | |
| using | Bytes = std::vector< uint8_t > |
Public Types inherited from shared_model::interface::ModelPrimitive< Blob > | |
| using | ModelType = Blob |
Public Types inherited from Cloneable< Blob > | |
| using | base_type = Blob |
Protected Member Functions inherited from shared_model::crypto::Blob | |
| Blob * | clone () const override |
A special class for storing hashes. Main reason to introduce it is to make difference between Hash which should represent a hashing result and a generic Blob which should represent any binary data.
| shared_model::crypto::Hash::Hash | ( | ) |

|
explicit |
|
explicit |
|
static |
Creates new Hash object from provided hex string
| hex | - string in hex format to create Hash from |


|
overridevirtual |
Make string developer representation of object
Reimplemented from shared_model::crypto::Blob.
