Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::SecureFixedHash< T > Class Template Reference

#include <FixedHash.h>

Inheritance diagram for dev::SecureFixedHash< T >:
dev::FixedHash< T >

Public Types

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

Public Member Functions

 SecureFixedHash ()=default
 
 SecureFixedHash (bytes const &_b, ConstructFromHashType _t=FixedHash< T >::FailIfDifferent)
 
 SecureFixedHash (bytesConstRef _b, ConstructFromHashType _t=FixedHash< T >::FailIfDifferent)
 
 SecureFixedHash (bytesSec const &_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 (std::string const &_s, ConstructFromStringType _t=FixedHash< T >::FromHex, ConstructFromHashType _ht=FixedHash< T >::FailIfDifferent)
 
 SecureFixedHash (byte const *_d, ConstructFromPointerType _t)
 
 ~SecureFixedHash ()
 
 SecureFixedHash (SecureFixedHash< T > const &_c)
 
SecureFixedHash< T > & operator= (SecureFixedHash< T > const &_c)
 
bytesSec asBytesSec () const
 
FixedHash< T > const & makeInsecure () const
 
FixedHash< T > & writable ()
 
bool operator== (SecureFixedHash const &_c) const
 
bool operator!= (SecureFixedHash const &_c) const
 
bool operator< (SecureFixedHash const &_c) const
 
bool operator>= (SecureFixedHash const &_c) const
 
bool operator<= (SecureFixedHash const &_c) const
 
bool operator> (SecureFixedHash const &_c) const
 
SecureFixedHashoperator^= (FixedHash< T > const &_c)
 
SecureFixedHash operator^ (FixedHash< T > const &_c) const
 
SecureFixedHashoperator|= (FixedHash< T > const &_c)
 
SecureFixedHash operator| (FixedHash< T > const &_c) const
 
SecureFixedHashoperator&= (FixedHash< T > const &_c)
 
SecureFixedHash operator& (FixedHash< T > const &_c) const
 
SecureFixedHashoperator^= (SecureFixedHash const &_c)
 
SecureFixedHash operator^ (SecureFixedHash const &_c) const
 
SecureFixedHashoperator|= (SecureFixedHash const &_c)
 
SecureFixedHash operator| (SecureFixedHash const &_c) const
 
SecureFixedHashoperator&= (SecureFixedHash const &_c)
 
SecureFixedHash operator& (SecureFixedHash const &_c) const
 
SecureFixedHash operator~ () const
 
bytesConstRef ref () const
 
byte const * data () const
 
void clear ()
 

Static Public Member Functions

static SecureFixedHash< T > random ()
 

Detailed Description

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

Definition at line 232 of file FixedHash.h.

Member Typedef Documentation

◆ ConstructFromHashType

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

Definition at line 235 of file FixedHash.h.

◆ ConstructFromPointerType

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

Definition at line 237 of file FixedHash.h.

◆ ConstructFromStringType

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

Definition at line 236 of file FixedHash.h.

Constructor & Destructor Documentation

◆ SecureFixedHash() [1/9]

template<unsigned T>
dev::SecureFixedHash< T >::SecureFixedHash ( )
default

◆ SecureFixedHash() [2/9]

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

Definition at line 239 of file FixedHash.h.

◆ SecureFixedHash() [3/9]

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

Definition at line 240 of file FixedHash.h.

◆ SecureFixedHash() [4/9]

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

Definition at line 241 of file FixedHash.h.

◆ SecureFixedHash() [5/9]

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

Definition at line 242 of file FixedHash.h.

◆ SecureFixedHash() [6/9]

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

Definition at line 243 of file FixedHash.h.

◆ SecureFixedHash() [7/9]

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 244 of file FixedHash.h.

◆ SecureFixedHash() [8/9]

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

Definition at line 245 of file FixedHash.h.

◆ ~SecureFixedHash()

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

Definition at line 246 of file FixedHash.h.

◆ SecureFixedHash() [9/9]

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

Definition at line 248 of file FixedHash.h.

Member Function Documentation

◆ asBytesSec()

template<unsigned T>
bytesSec dev::SecureFixedHash< T >::asBytesSec ( ) const
inline

Definition at line 261 of file FixedHash.h.

◆ clear()

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

Definition at line 308 of file FixedHash.h.

◆ data()

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

Definition at line 303 of file FixedHash.h.

◆ makeInsecure()

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

Definition at line 263 of file FixedHash.h.

◆ operator!=()

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

Definition at line 270 of file FixedHash.h.

◆ operator&() [1/2]

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

Definition at line 289 of file FixedHash.h.

◆ operator&() [2/2]

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

Definition at line 296 of file FixedHash.h.

◆ operator&=() [1/2]

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

Definition at line 288 of file FixedHash.h.

◆ operator&=() [2/2]

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

Definition at line 295 of file FixedHash.h.

◆ operator<()

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

Definition at line 271 of file FixedHash.h.

◆ operator<=()

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

Definition at line 273 of file FixedHash.h.

◆ operator=()

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

Definition at line 250 of file FixedHash.h.

◆ operator==()

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

Definition at line 269 of file FixedHash.h.

◆ operator>()

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

Definition at line 274 of file FixedHash.h.

◆ operator>=()

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

Definition at line 272 of file FixedHash.h.

◆ operator^() [1/2]

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

Definition at line 285 of file FixedHash.h.

◆ operator^() [2/2]

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

Definition at line 292 of file FixedHash.h.

◆ operator^=() [1/2]

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

Definition at line 284 of file FixedHash.h.

◆ operator^=() [2/2]

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

Definition at line 291 of file FixedHash.h.

◆ operator|() [1/2]

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

Definition at line 287 of file FixedHash.h.

◆ operator|() [2/2]

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

Definition at line 294 of file FixedHash.h.

◆ operator|=() [1/2]

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

Definition at line 286 of file FixedHash.h.

◆ operator|=() [2/2]

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

Definition at line 293 of file FixedHash.h.

◆ operator~()

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

Definition at line 297 of file FixedHash.h.

◆ random()

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

Definition at line 305 of file FixedHash.h.

◆ ref()

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

Definition at line 302 of file FixedHash.h.

◆ writable()

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

Definition at line 264 of file FixedHash.h.


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