|
LibLogicalAccess
2.5.0
An Open Source RFID Library
|
#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) |
Some static DES helper method with a very easy to use API.
|
static |
Decrypt data using key key and iv_data.
If iv_data is empty, use a null IV.
Returns the decrypted buffer.
|
static |
Encrypt data using key key and iv_data.
If iv_data is empty, use a null IV.
Returns the encrypted buffer.
|
staticprivate |
1.9.6