LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
aes_helper.hpp
Go to the documentation of this file.
1//
2// Created by xaqq on 7/2/15.
3//
4
5#ifndef LIBLOGICALACCESS_AES_HELPER_H
6#define LIBLOGICALACCESS_AES_HELPER_H
7
8#include <vector>
9#include <cstdint>
11#include "logicalaccess/plugins/crypto/lla_crypto_api.hpp"
12
13namespace logicalaccess
14{
18class LLA_CRYPTO_API AESHelper
19{
20 public:
28 static ByteVector AESEncrypt(const ByteVector &data, const ByteVector &key,
29 const ByteVector &iv_data);
30
38 static ByteVector AESDecrypt(const ByteVector &data, const ByteVector &key,
39 ByteVector const &iv_data);
40
41 private:
42 static ByteVector AESRun(const ByteVector &data, const ByteVector &key,
43 const ByteVector &iv_data, bool crypt);
44};
45}
46
47#endif // LIBLOGICALACCESS_AES_HELPER_H
Definition: aes_helper.hpp:19
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9