sptk2 logo
SPTK Home Page
Static Public Member Functions | List of all members
sptk::Crypt Class Reference

#include <Crypt.h>

Static Public Member Functions

static void encrypt (Buffer &dest, const Buffer &src, const String &key, const String &iv)
 
static void decrypt (Buffer &dest, const Buffer &src, const String &key, const String &iv)
 

Detailed Description

Simple wrapper for OpenSSL encryption functions

Member Function Documentation

◆ decrypt()

static void sptk::Crypt::decrypt ( Buffer dest,
const Buffer src,
const String key,
const String iv 
)
static

Decrypt data using OpenSSL

Parameters
destBuffer&, Destination buffer
srcconst Buffer&, Source buffer
keyconst std::string&, Encryption key
ivconst std::string&, Initialization vector

◆ encrypt()

static void sptk::Crypt::encrypt ( Buffer dest,
const Buffer src,
const String key,
const String iv 
)
static

Encrypt data using OpenSSL

Parameters
destBuffer&, Destination buffer
srcconst Buffer&, Source buffer
keyconst std::string&, Encryption key
ivconst std::string&, Initialization vector

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

Fri Oct 14 2022 09:58:39: SPTK 5.4.1