LibLogicalAccess  2.5.0
An Open Source RFID Library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Private Member Functions | List of all members
logicalaccess::AESHelper Class Reference

#include <aes_helper.hpp>

Static Public Member Functions

static ByteVector AESEncrypt (const ByteVector &data, const ByteVector &key, const ByteVector &iv_data)
 
static ByteVector AESDecrypt (const ByteVector &data, const ByteVector &key, ByteVector const &iv_data)
 

Static Private Member Functions

static ByteVector AESRun (const ByteVector &data, const ByteVector &key, const ByteVector &iv_data, bool crypt)
 

Detailed Description

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

Member Function Documentation

◆ AESDecrypt()

ByteVector AESHelper::AESDecrypt ( const ByteVector data,
const ByteVector key,
ByteVector 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.

◆ AESEncrypt()

ByteVector AESHelper::AESEncrypt ( const ByteVector data,
const ByteVector key,
const ByteVector iv_data 
)
static

Encrypt data using key key and iv_data.

If iv_data is empty, use a null IV.

Returns the encrypted buffer.

◆ AESRun()

ByteVector AESHelper::AESRun ( const ByteVector data,
const ByteVector key,
const ByteVector iv_data,
bool  crypt 
)
staticprivate

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