View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Namespaces | Functions
crypto.h File Reference
#include "export.h"
#include <cstdint>
#include <cstdlib>
#include <vector>
#include <string>
Include dependency graph for crypto.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  vistle
 
namespace  vistle::crypto
 

Functions

bool vistle::crypto::initialize (size_t secret_size)
 
bool vistle::crypto::set_session_key (const std::string &hex_key)
 
std::string vistle::crypto::get_session_key ()
 
const std::vector< uint8_t > & vistle::crypto::session_data ()
 
const std::vector< uint8_t > & vistle::crypto::session_key ()
 
std::vector< uint8_t > vistle::crypto::random_data (size_t length)
 
std::vector< uint8_t > vistle::crypto::compute_mac (const void *data, size_t length, const std::vector< uint8_t > &key)
 
bool vistle::crypto::verify_mac (const void *data, size_t length, const std::vector< uint8_t > &key, const std::vector< uint8_t > &mac)