scclib
Stable Cloud Computing C++ Library
Public Member Functions | List of all members
scc::crypto::SecVec< T > Class Template Reference

Secure vector helper. More...

#include <secvec.h>

Inheritance diagram for scc::crypto::SecVec< T >:
Inheritance graph
[legend]
Collaboration diagram for scc::crypto::SecVec< T >:
Collaboration graph
[legend]

Public Member Functions

 SecVec (typename std::vector< T >::size_type=0)
 
 SecVec (typename std::vector< T >::size_type, const typename std::vector< T >::value_type &)
 
template<class InputIt >
 SecVec (InputIt begin, InputIt end)
 
void clear () noexcept
 Zero the original vector and clear it.
 
void resize (typename std::vector< T >::size_type)
 Resize the vector. More...
 
void resize (typename std::vector< T >::size_type, const typename std::vector< T >::value_type &)
 Resize the vector to an explicit value. More...
 

Detailed Description

template<typename T>
class scc::crypto::SecVec< T >

Secure vector helper.

A secure vector whose memory is zeroed when destroyed, cleared or resized.

Definition at line 57 of file secvec.h.

Member Function Documentation

◆ resize() [1/2]

template<typename T >
void SecVec::resize ( typename std::vector< T >::size_type  count)

Resize the vector.

If the new size is less than the original size, zero the extra bytes before setting them.

Definition at line 59 of file secvec.cc.

◆ resize() [2/2]

template<typename T >
void SecVec::resize ( typename std::vector< T >::size_type  count,
const typename std::vector< T >::value_type &  value 
)

Resize the vector to an explicit value.

If the new size is less than the original size, zero the extra bytes before setting them.

Definition at line 69 of file secvec.cc.


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