Ring Daemon 16.0.0
Loading...
Searching...
No Matches
dev::SecureFixedHash< T > Class Template Reference

#include <FixedHash.h>

Inheritance diagram for dev::SecureFixedHash< T >:
Inheritance graph
Collaboration diagram for dev::SecureFixedHash< T >:
Collaboration graph

Public Types

using ConstructFromHashType = typename FixedHash< T >::ConstructFromHashType
 
using ConstructFromPointerType = typename FixedHash< T >::ConstructFromPointerType
 
using ConstructFromStringType = typename FixedHash< T >::ConstructFromStringType
 

Public Member Functions

void clear ()
 
uint8_t const * data () const
 
FixedHash< T > const & makeInsecure () const
 
bool operator!= (SecureFixedHash const &_c) const
 
SecureFixedHash operator& (FixedHash< T > const &_c) const
 
SecureFixedHash operator& (SecureFixedHash const &_c) const
 
SecureFixedHashoperator&= (FixedHash< T > const &_c)
 
SecureFixedHashoperator&= (SecureFixedHash const &_c)
 
bool operator< (SecureFixedHash const &_c) const
 
bool operator<= (SecureFixedHash const &_c) const
 
SecureFixedHash< T > & operator= (SecureFixedHash< T > const &_c)
 
bool operator== (SecureFixedHash const &_c) const
 
bool operator> (SecureFixedHash const &_c) const
 
bool operator>= (SecureFixedHash const &_c) const
 
SecureFixedHash operator^ (FixedHash< T > const &_c) const
 
SecureFixedHash operator^ (SecureFixedHash const &_c) const
 
SecureFixedHashoperator^= (FixedHash< T > const &_c)
 
SecureFixedHashoperator^= (SecureFixedHash const &_c)
 
SecureFixedHash operator| (FixedHash< T > const &_c) const
 
SecureFixedHash operator| (SecureFixedHash const &_c) const
 
SecureFixedHashoperator|= (FixedHash< T > const &_c)
 
SecureFixedHashoperator|= (SecureFixedHash const &_c)
 
SecureFixedHash operator~ () const
 
bytesConstRef ref () const
 
 SecureFixedHash ()=default
 
 SecureFixedHash (bytes const &_b, ConstructFromHashType _t=FixedHash< T >::FailIfDifferent)
 
 SecureFixedHash (bytes const *_d, ConstructFromPointerType _t)
 
 SecureFixedHash (bytesConstRef _b, ConstructFromHashType _t=FixedHash< T >::FailIfDifferent)
 
template<unsigned M>
 SecureFixedHash (FixedHash< M > const &_h, ConstructFromHashType _t=FixedHash< T >::AlignLeft)
 
template<unsigned M>
 SecureFixedHash (SecureFixedHash< M > const &_h, ConstructFromHashType _t=FixedHash< T >::AlignLeft)
 
 SecureFixedHash (SecureFixedHash< T > const &_h)
 
 SecureFixedHash (std::string const &_s, ConstructFromStringType _t=FixedHash< T >::FromHex, ConstructFromHashType _ht=FixedHash< T >::FailIfDifferent)
 
FixedHash< T > & writable ()
 
 ~SecureFixedHash ()
 

Static Public Member Functions

static SecureFixedHash< T > random ()
 

Detailed Description

template<unsigned T>
class dev::SecureFixedHash< T >

Definition at line 309 of file FixedHash.h.

Member Typedef Documentation

◆ ConstructFromHashType

template<unsigned T>
using dev::SecureFixedHash< T >::ConstructFromHashType = typename FixedHash<T>::ConstructFromHashType

Definition at line 312 of file FixedHash.h.

◆ ConstructFromPointerType

template<unsigned T>
using dev::SecureFixedHash< T >::ConstructFromPointerType = typename FixedHash<T>::ConstructFromPointerType

Definition at line 314 of file FixedHash.h.

◆ ConstructFromStringType

template<unsigned T>
using dev::SecureFixedHash< T >::ConstructFromStringType = typename FixedHash<T>::ConstructFromStringType

Definition at line 313 of file FixedHash.h.

Constructor & Destructor Documentation

◆ SecureFixedHash() [1/8]

◆ SecureFixedHash() [2/8]

template<unsigned T>
dev::SecureFixedHash< T >::SecureFixedHash ( bytes const &  _b,
ConstructFromHashType  _t = FixedHash<T>::FailIfDifferent 
)
inlineexplicit

Definition at line 316 of file FixedHash.h.

◆ SecureFixedHash() [3/8]

template<unsigned T>
dev::SecureFixedHash< T >::SecureFixedHash ( bytesConstRef  _b,
ConstructFromHashType  _t = FixedHash<T>::FailIfDifferent 
)
inlineexplicit

Definition at line 320 of file FixedHash.h.

◆ SecureFixedHash() [4/8]

template<unsigned T>
template<unsigned M>
dev::SecureFixedHash< T >::SecureFixedHash ( FixedHash< M > const &  _h,
ConstructFromHashType  _t = FixedHash<T>::AlignLeft 
)
inlineexplicit

Definition at line 325 of file FixedHash.h.

◆ SecureFixedHash() [5/8]

template<unsigned T>
dev::SecureFixedHash< T >::SecureFixedHash ( SecureFixedHash< T > const &  _h)
inline

Definition at line 329 of file FixedHash.h.

◆ SecureFixedHash() [6/8]

template<unsigned T>
template<unsigned M>
dev::SecureFixedHash< T >::SecureFixedHash ( SecureFixedHash< M > const &  _h,
ConstructFromHashType  _t = FixedHash<T>::AlignLeft 
)
inlineexplicit

Definition at line 333 of file FixedHash.h.

◆ SecureFixedHash() [7/8]

template<unsigned T>
dev::SecureFixedHash< T >::SecureFixedHash ( std::string const &  _s,
ConstructFromStringType  _t = FixedHash<T>::FromHex,
ConstructFromHashType  _ht = FixedHash<T>::FailIfDifferent 
)
inlineexplicit

Definition at line 337 of file FixedHash.h.

◆ SecureFixedHash() [8/8]

template<unsigned T>
dev::SecureFixedHash< T >::SecureFixedHash ( bytes const *  _d,
ConstructFromPointerType  _t 
)
inlineexplicit

Definition at line 342 of file FixedHash.h.

◆ ~SecureFixedHash()

template<unsigned T>
dev::SecureFixedHash< T >::~SecureFixedHash ( )
inline

Definition at line 345 of file FixedHash.h.

References dev::vector_ref< _T >::cleanse(), and dev::SecureFixedHash< T >::ref().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

template<unsigned T>
void dev::SecureFixedHash< T >::clear ( )
inline

Definition at line 474 of file FixedHash.h.

References dev::vector_ref< _T >::cleanse(), and dev::SecureFixedHash< T >::ref().

Referenced by dev::SecureFixedHash< T >::writable().

Here is the call graph for this function:

◆ data()

template<unsigned T>
uint8_t const * dev::SecureFixedHash< T >::data ( ) const
inline

Definition at line 463 of file FixedHash.h.

References dev::FixedHash< N >::data().

Referenced by dev::toPublic().

Here is the call graph for this function:

◆ makeInsecure()

template<unsigned T>
FixedHash< T > const & dev::SecureFixedHash< T >::makeInsecure ( ) const
inline

Definition at line 358 of file FixedHash.h.

◆ operator!=()

template<unsigned T>
bool dev::SecureFixedHash< T >::operator!= ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 373 of file FixedHash.h.

◆ operator&() [1/2]

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator& ( FixedHash< T > const &  _c) const
inline

Definition at line 424 of file FixedHash.h.

References dev::SecureFixedHash< T >::SecureFixedHash().

Here is the call graph for this function:

◆ operator&() [2/2]

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator& ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 449 of file FixedHash.h.

References dev::SecureFixedHash< T >::SecureFixedHash().

Here is the call graph for this function:

◆ operator&=() [1/2]

template<unsigned T>
SecureFixedHash & dev::SecureFixedHash< T >::operator&= ( FixedHash< T > const &  _c)
inline

Definition at line 419 of file FixedHash.h.

◆ operator&=() [2/2]

template<unsigned T>
SecureFixedHash & dev::SecureFixedHash< T >::operator&= ( SecureFixedHash< T > const &  _c)
inline

Definition at line 444 of file FixedHash.h.

◆ operator<()

template<unsigned T>
bool dev::SecureFixedHash< T >::operator< ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 378 of file FixedHash.h.

◆ operator<=()

template<unsigned T>
bool dev::SecureFixedHash< T >::operator<= ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 388 of file FixedHash.h.

◆ operator=()

template<unsigned T>
SecureFixedHash< T > & dev::SecureFixedHash< T >::operator= ( SecureFixedHash< T > const &  _c)
inline

Definition at line 347 of file FixedHash.h.

References dev::vector_ref< _T >::cleanse(), and dev::SecureFixedHash< T >::ref().

Here is the call graph for this function:

◆ operator==()

template<unsigned T>
bool dev::SecureFixedHash< T >::operator== ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 368 of file FixedHash.h.

◆ operator>()

template<unsigned T>
bool dev::SecureFixedHash< T >::operator> ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 393 of file FixedHash.h.

◆ operator>=()

template<unsigned T>
bool dev::SecureFixedHash< T >::operator>= ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 383 of file FixedHash.h.

◆ operator^() [1/2]

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator^ ( FixedHash< T > const &  _c) const
inline

Definition at line 412 of file FixedHash.h.

References dev::SecureFixedHash< T >::SecureFixedHash().

Here is the call graph for this function:

◆ operator^() [2/2]

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator^ ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 431 of file FixedHash.h.

References dev::SecureFixedHash< T >::SecureFixedHash().

Here is the call graph for this function:

◆ operator^=() [1/2]

template<unsigned T>
SecureFixedHash & dev::SecureFixedHash< T >::operator^= ( FixedHash< T > const &  _c)
inline

Definition at line 407 of file FixedHash.h.

◆ operator^=() [2/2]

template<unsigned T>
SecureFixedHash & dev::SecureFixedHash< T >::operator^= ( SecureFixedHash< T > const &  _c)
inline

Definition at line 426 of file FixedHash.h.

◆ operator|() [1/2]

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator| ( FixedHash< T > const &  _c) const
inline

Definition at line 418 of file FixedHash.h.

References dev::SecureFixedHash< T >::SecureFixedHash().

Here is the call graph for this function:

◆ operator|() [2/2]

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator| ( SecureFixedHash< T > const &  _c) const
inline

Definition at line 440 of file FixedHash.h.

References dev::SecureFixedHash< T >::SecureFixedHash().

Here is the call graph for this function:

◆ operator|=() [1/2]

template<unsigned T>
SecureFixedHash & dev::SecureFixedHash< T >::operator|= ( FixedHash< T > const &  _c)
inline

Definition at line 413 of file FixedHash.h.

◆ operator|=() [2/2]

template<unsigned T>
SecureFixedHash & dev::SecureFixedHash< T >::operator|= ( SecureFixedHash< T > const &  _c)
inline

Definition at line 435 of file FixedHash.h.

◆ operator~()

template<unsigned T>
SecureFixedHash dev::SecureFixedHash< T >::operator~ ( ) const
inline

Definition at line 453 of file FixedHash.h.

◆ random()

template<unsigned T>
static SecureFixedHash< T > dev::SecureFixedHash< T >::random ( )
inlinestatic

Definition at line 465 of file FixedHash.h.

◆ ref()

template<unsigned T>
bytesConstRef dev::SecureFixedHash< T >::ref ( ) const
inline

Definition at line 462 of file FixedHash.h.

References dev::FixedHash< N >::ref().

Referenced by dev::SecureFixedHash< T >::clear(), dev::SecureFixedHash< T >::operator=(), and dev::SecureFixedHash< T >::~SecureFixedHash().

Here is the call graph for this function:

◆ writable()

template<unsigned T>
FixedHash< T > & dev::SecureFixedHash< T >::writable ( )
inline

Definition at line 359 of file FixedHash.h.

References dev::SecureFixedHash< T >::clear().

Here is the call graph for this function:

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