10Duke Scale C++ Client
Loading...
Searching...
No Matches
BigNumber.h
1#ifndef TENDUKE_LIBCRYPTO_BIGNUM_H
2#define TENDUKE_LIBCRYPTO_BIGNUM_H
3
4#include "utl/FixedSizeBinaryData.h"
5
6#include <memory>
7
8#include <openssl/bn.h>
9
10namespace tenduke { namespace crypto { namespace libcrypto {
11
15class BigNumber {
16public:
21 explicit BigNumber(const tenduke::utl::BinaryData &binaryData);
22 ~BigNumber();
23
29
30private:
31 ::BIGNUM * bignum;
32};
33
34}}}
35
36#endif //TENDUKE_LIBCRYPTO_BIGNUM_H
A BigNumber, RAII wrapper of libcrypto BIGNUM.
Definition BigNumber.h:15
tenduke::utl::FixedSizeBinaryData toNativePaddedBinary()
Returns the BIGNUM as bytes as returned by BN_bn2nativepad.
Definition BigNumber.cpp:38
A holder of binary data.
Definition BinaryData.h:13
Utility class for fixed size binary data.
Definition FixedSizeBinaryData.h:16
libcrypto based implementations of cryptography services.
Definition AsymmetricMessageDigest.h:15
Cryptography services.
Definition CryptoException.h:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7