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

#include <aes_crypto_service.hpp>

Public Member Functions

ByteVector aes_encrypt (const ByteVector &data, const ByteVector &iv, std::shared_ptr< Key > key)
 
ByteVector aes_decrypt (const ByteVector &data, const ByteVector &iv, std::shared_ptr< Key > key)
 

Private Member Functions

ByteVector adjust_iv (const ByteVector &iv)
 
ByteVector perform_operation (const ByteVector &data, const ByteVector &iv, std::shared_ptr< Key > key, bool encrypt)
 
ByteVector in_memory (const ByteVector &data, const ByteVector &iv, std::shared_ptr< Key > key, bool encrypt)
 
ByteVector with_pkcs (const ByteVector &data, const ByteVector &iv, std::shared_ptr< Key > key, bool encrypt)
 

Detailed Description

Stateless service to perform AES cryptography against Key.

The goal of this service is to perform an operation that is key-storage agnostic. The service will delegate to either in memory crypto, PKCS, IKS, SAM depending on the KeyStorage defined on the key.

Note sure how to handle derivation yet.

Member Function Documentation

◆ adjust_iv()

ByteVector logicalaccess::AESCryptoService::adjust_iv ( const ByteVector iv)
private

◆ aes_decrypt()

ByteVector logicalaccess::AESCryptoService::aes_decrypt ( const ByteVector data,
const ByteVector iv,
std::shared_ptr< Key key 
)

◆ aes_encrypt()

ByteVector logicalaccess::AESCryptoService::aes_encrypt ( const ByteVector data,
const ByteVector iv,
std::shared_ptr< Key key 
)

◆ in_memory()

ByteVector logicalaccess::AESCryptoService::in_memory ( const ByteVector data,
const ByteVector iv,
std::shared_ptr< Key key,
bool  encrypt 
)
private

◆ perform_operation()

ByteVector logicalaccess::AESCryptoService::perform_operation ( const ByteVector data,
const ByteVector iv,
std::shared_ptr< Key key,
bool  encrypt 
)
private

◆ with_pkcs()

ByteVector logicalaccess::AESCryptoService::with_pkcs ( const ByteVector data,
const ByteVector iv,
std::shared_ptr< Key key,
bool  encrypt 
)
private

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