Kea  1.9.9-git
isc::cryptolink::ossl::SecBuf< T > Class Template Reference

Secure Buffers which are wiped out when released. More...

#include <openssl_common.h>

Public Types

typedef std::vector< T >::const_iterator const_iterator
 
typedef std::vector< T >::iterator iterator
 

Public Member Functions

 SecBuf ()
 
 SecBuf (size_t n, const T &value=T())
 
 SecBuf (iterator first, iterator last)
 
 SecBuf (const_iterator first, const_iterator last)
 
 SecBuf (const std::vector< T > &x)
 
 ~SecBuf ()
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
iterator end ()
 
const_iterator end () const
 
SecBufoperator= (const SecBuf &x)
 
T & operator[] (size_t n)
 
const T & operator[] (size_t n) const
 
void resize (size_t sz)
 
bool same (const void *x, size_t len) const
 
size_t size () const
 

Detailed Description

template<typename T>
class isc::cryptolink::ossl::SecBuf< T >

Secure Buffers which are wiped out when released.

Subset of the std::vector interface but not derived from to avoid unwanted inheritance.

Definition at line 23 of file openssl_common.h.

Member Typedef Documentation

template<typename T>
typedef std::vector<T>::const_iterator isc::cryptolink::ossl::SecBuf< T >::const_iterator

Definition at line 27 of file openssl_common.h.

template<typename T>
typedef std::vector<T>::iterator isc::cryptolink::ossl::SecBuf< T >::iterator

Definition at line 25 of file openssl_common.h.

Constructor & Destructor Documentation

template<typename T>
isc::cryptolink::ossl::SecBuf< T >::SecBuf ( )
inlineexplicit

Definition at line 29 of file openssl_common.h.

template<typename T>
isc::cryptolink::ossl::SecBuf< T >::SecBuf ( size_t  n,
const T &  value = T() 
)
inlineexplicit

Definition at line 31 of file openssl_common.h.

template<typename T>
isc::cryptolink::ossl::SecBuf< T >::SecBuf ( iterator  first,
iterator  last 
)
inline

Definition at line 33 of file openssl_common.h.

template<typename T>
isc::cryptolink::ossl::SecBuf< T >::SecBuf ( const_iterator  first,
const_iterator  last 
)
inline

Definition at line 35 of file openssl_common.h.

template<typename T>
isc::cryptolink::ossl::SecBuf< T >::SecBuf ( const std::vector< T > &  x)
inline

Definition at line 37 of file openssl_common.h.

template<typename T>
isc::cryptolink::ossl::SecBuf< T >::~SecBuf ( )
inline

Definition at line 39 of file openssl_common.h.

Member Function Documentation

template<typename T>
iterator isc::cryptolink::ossl::SecBuf< T >::begin ( )
inline

Definition at line 49 of file openssl_common.h.

Referenced by isc::cryptolink::HMACImpl::sign().

template<typename T>
const_iterator isc::cryptolink::ossl::SecBuf< T >::begin ( ) const
inline

Definition at line 53 of file openssl_common.h.

template<typename T>
void isc::cryptolink::ossl::SecBuf< T >::clear ( )
inline

Definition at line 73 of file openssl_common.h.

template<typename T>
iterator isc::cryptolink::ossl::SecBuf< T >::end ( )
inline

Definition at line 57 of file openssl_common.h.

Referenced by isc::cryptolink::HMACImpl::sign().

template<typename T>
const_iterator isc::cryptolink::ossl::SecBuf< T >::end ( ) const
inline

Definition at line 61 of file openssl_common.h.

template<typename T>
SecBuf& isc::cryptolink::ossl::SecBuf< T >::operator= ( const SecBuf< T > &  x)
inline

Definition at line 84 of file openssl_common.h.

template<typename T>
T& isc::cryptolink::ossl::SecBuf< T >::operator[] ( size_t  n)
inline

Definition at line 91 of file openssl_common.h.

template<typename T>
const T& isc::cryptolink::ossl::SecBuf< T >::operator[] ( size_t  n) const
inline

Definition at line 95 of file openssl_common.h.

template<typename T>
void isc::cryptolink::ossl::SecBuf< T >::resize ( size_t  sz)
inline

Definition at line 69 of file openssl_common.h.

Referenced by isc::cryptolink::HMACImpl::sign().

template<typename T>
bool isc::cryptolink::ossl::SecBuf< T >::same ( const void *  x,
size_t  len 
) const
inline

Definition at line 101 of file openssl_common.h.

Referenced by isc::cryptolink::HMACImpl::verify().

template<typename T>
size_t isc::cryptolink::ossl::SecBuf< T >::size ( ) const
inline

Definition at line 65 of file openssl_common.h.


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