LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Member Functions | List of all members
logicalaccess::DESHelper Class Reference

#include <des_helper.hpp>

Static Public Member Functions

static std::vector< uint8_t > DESEncrypt (const std::vector< uint8_t > &data, const std::vector< uint8_t > &key, const std::vector< uint8_t > &iv_data)
 
static std::vector< uint8_t > DESDecrypt (const std::vector< uint8_t > &data, const std::vector< uint8_t > &key, std::vector< uint8_t > const &iv_data)
 

Static Private Member Functions

static std::vector< uint8_t > DESRun (const std::vector< uint8_t > &data, const std::vector< uint8_t > &key, const std::vector< uint8_t > &iv_data, bool crypt)
 

Detailed Description

Some static DES helper method with a very easy to use API.

Member Function Documentation

◆ DESDecrypt()

ByteVector DESHelper::DESDecrypt ( const std::vector< uint8_t > &  data,
const std::vector< uint8_t > &  key,
std::vector< uint8_t > const &  iv_data 
)
static

Decrypt data using key key and iv_data.

If iv_data is empty, use a null IV.

Returns the decrypted buffer.

◆ DESEncrypt()

ByteVector DESHelper::DESEncrypt ( const std::vector< uint8_t > &  data,
const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  iv_data 
)
static

Encrypt data using key key and iv_data.

If iv_data is empty, use a null IV.

Returns the encrypted buffer.

◆ DESRun()

ByteVector DESHelper::DESRun ( const std::vector< uint8_t > &  data,
const std::vector< uint8_t > &  key,
const std::vector< uint8_t > &  iv_data,
bool  crypt 
)
staticprivate

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