Fixes for compilation under Linux

This commit is contained in:
Balint Seeber 2015-11-24 23:18:12 -08:00
parent aea5479646
commit e2cf7087fc
6 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,8 @@
#include <sstream>
#include <boost/format.hpp>
#include <iostream>
#include <stdio.h>
#include <memory.h>
extern "C" {
#include "des.h"
@ -182,7 +184,7 @@ public:
generate(3 * 8); // Use remaining 3 bytes for LC
}
unsigned long long generate(size_t count) // 1..64
uint64_t generate(size_t count) // 1..64
{
unsigned long long ullCurrent = swap_bytes(m_ks);
const int max_len = 64;

View File

@ -1,6 +1,7 @@
#ifndef INCLUDED_CRYPTO_H
#define INCLUDED_CRYPTO_H
#include <stdint.h>
#include <vector>
#include <map>
#include <boost/shared_ptr.hpp>

View File

@ -4,6 +4,7 @@
#include <boost/format.hpp>
#include <sstream>
#include <stdio.h>
crypto_module_du_handler::crypto_module_du_handler(data_unit_handler_sptr next, crypto_module::sptr crypto_mod)
: data_unit_handler(next)

View File

@ -29,6 +29,7 @@
#include <iomanip>
#include <sstream>
#include <boost/format.hpp>
#include <stdio.h>
using namespace std;

View File

@ -1,5 +1,7 @@
#include "ldu.h"
#include <stdio.h>
#include <itpp/base/vec.h>
#include <itpp/base/mat.h>
#include <itpp/base/binary.h>

View File

@ -27,6 +27,7 @@
#include <map>
#include <iostream>
#include <boost/format.hpp>
#include <stdio.h>
#include <itpp/base/vec.h>
#include <itpp/base/mat.h>