scclib
Stable Cloud Computing C++ Library
Classes | Typedefs | Functions
secvec.h File Reference

Secure vector. More...

#include <vector>
#include <cstring>
#include <iostream>
Include dependency graph for secvec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  scc::crypto::SecVec< T >
 Secure vector helper. More...
 

Typedefs

using scc::crypto::SecVecUchar = SecVec< unsigned char >
 
using scc::crypto::SecVecChar = SecVec< char >
 

Functions

template<typename T >
std::istream & operator>> (std::istream &, scc::crypto::SecVec< T > &)
 Secure vector stream read helper. More...
 
template<typename T >
std::ostream & operator<< (std::ostream &, const scc::crypto::SecVec< T > &)
 Secure vector stream write helper. More...
 

Detailed Description

Secure vector.

Definition in file secvec.h.

Function Documentation

◆ operator<<()

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const scc::crypto::SecVec< T > &  sv 
)

Secure vector stream write helper.

Throws exception on any stream error.

Definition at line 111 of file secvec.cc.

◆ operator>>()

template<typename T >
std::istream& operator>> ( std::istream &  is,
scc::crypto::SecVec< T > &  sv 
)

Secure vector stream read helper.

Reads the stream by character until eof(). Throws exception on any stream error except eof().

Definition at line 93 of file secvec.cc.