LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
lla_random.hpp
Go to the documentation of this file.
1//
2// Created by xaqq on 7/2/15.
3//
4
5#ifndef LIBLOGICALACCESS_LLA_RANDOM_HPP
6#define LIBLOGICALACCESS_LLA_RANDOM_HPP
7
8#include <random>
9#include <mutex>
10#include "logicalaccess/plugins/crypto/lla_crypto_api.hpp"
12
13namespace logicalaccess
14{
21class LLA_CRYPTO_API RandomHelper
22{
23 public:
27 static uint8_t byte();
28
32 static ByteVector bytes(size_t size);
33
34 private:
38 static std::mutex mutex_;
39};
40}
41
42#endif // LIBLOGICALACCESS_LLA_RANDOM_HPP
Definition: lla_random.hpp:22
static std::mutex mutex_
Definition: lla_random.hpp:38
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
#define byte(x, n)
Definition: tomcrypt_macros.h:415