LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#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) |
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.
|
private |
ByteVector logicalaccess::AESCryptoService::aes_decrypt | ( | const ByteVector & | data, |
const ByteVector & | iv, | ||
std::shared_ptr< Key > | key | ||
) |
ByteVector logicalaccess::AESCryptoService::aes_encrypt | ( | const ByteVector & | data, |
const ByteVector & | iv, | ||
std::shared_ptr< Key > | key | ||
) |
|
private |
|
private |
|
private |