Kea 2.7.6
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 (const std::vector< T > &x)
 
 SecBuf (const_iterator first, const_iterator last)
 
 SecBuf (iterator first, iterator last)
 
 SecBuf (size_t n, const T &value=T())
 
 ~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

◆ const_iterator

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

Definition at line 27 of file openssl_common.h.

◆ iterator

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

Definition at line 25 of file openssl_common.h.

Constructor & Destructor Documentation

◆ SecBuf() [1/5]

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

Definition at line 29 of file openssl_common.h.

◆ SecBuf() [2/5]

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.

◆ SecBuf() [3/5]

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

Definition at line 33 of file openssl_common.h.

◆ SecBuf() [4/5]

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.

◆ SecBuf() [5/5]

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

Definition at line 37 of file openssl_common.h.

◆ ~SecBuf()

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

Definition at line 39 of file openssl_common.h.

Member Function Documentation

◆ begin() [1/2]

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

Definition at line 45 of file openssl_common.h.

◆ begin() [2/2]

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

Definition at line 49 of file openssl_common.h.

◆ clear()

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

Definition at line 69 of file openssl_common.h.

◆ end() [1/2]

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

Definition at line 53 of file openssl_common.h.

◆ end() [2/2]

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

Definition at line 57 of file openssl_common.h.

◆ operator=()

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

Definition at line 78 of file openssl_common.h.

◆ operator[]() [1/2]

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

Definition at line 85 of file openssl_common.h.

◆ operator[]() [2/2]

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

Definition at line 89 of file openssl_common.h.

◆ resize()

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

Definition at line 65 of file openssl_common.h.

◆ same()

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

Definition at line 95 of file openssl_common.h.

◆ size()

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

Definition at line 61 of file openssl_common.h.


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