Typedefs Implementation.
More...
#include <sys/time.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <netinet/tcp.h>
#include "timer.h"
#include <cstring>
#include <string>
#include <vector>
#include <iostream>
Go to the source code of this file.
|
#define | BATCH |
|
#define | GENERATE_INPUTS |
|
#define | INPUT_VECTORS |
|
#define | MAXGATES 32000000 |
|
#define | two_pow(e) (((uint64_t) 1) << (e)) |
|
#define | GATE_T_BITS (sizeof(UGATE_T) * 8) |
|
#define | LOG2_REGISTER_SIZE ceil_log2(sizeof(REGISTER_SIZE) << 3) |
|
#define | FILL_BYTES AES_BYTES |
|
#define | FILL_BITS AES_BITS |
|
#define | OT_WINDOW_SIZE (AES_BITS*4) |
|
#define | OT_WINDOW_SIZE_BYTES (AES_BYTES*4) |
|
#define | MAX_REPLY_BITS 65536 |
|
#define | RETRY_CONNECT 1000 |
|
#define | CONNECT_TIMEO_MILISEC 10000 |
|
#define | SNDVALS 2 |
|
#define | OTEXT_BLOCK_SIZE_BITS AES_BITS |
|
#define | OTEXT_BLOCK_SIZE_BYTES AES_BYTES |
|
#define | VECTOR_INTERNAL_SIZE 8 |
|
#define | SERVER_ID 0 |
|
#define | CLIENT_ID 1 |
|
#define | MAX_INT (~0) |
|
#define | MACHINE_SIZE_64 |
|
#define | FALSE 0 |
|
#define | TRUE 1 |
|
#define | ZERO_BYTE 0 |
|
#define | MAX_BYTE 0xFF |
|
#define | MAX_UINT 0xFFFFFFFF |
|
#define | INVALID_SOCKET -1 |
|
#define | SleepMiliSec(x) usleep((x)<<10) |
|
#define | ceil_divide(x, y) (( ((x) + (y)-1)/(y))) |
|
#define | PadToRegisterSize(x) (PadToMultiple(x, OTEXT_BLOCK_SIZE_BITS)) |
|
#define | PadToMultiple(x, y) ( ceil_divide(x, y) * (y)) |
|
|
typedef struct SECURITYLEVELS | seclvl |
|
typedef int | BOOL |
|
typedef long | LONG |
|
typedef unsigned char | BYTE |
|
typedef unsigned short | USHORT |
|
typedef unsigned int | UINT |
|
typedef unsigned long | ULONG |
|
typedef BYTE | UINT8_T |
|
typedef USHORT | UINT16_T |
|
typedef UINT | UINT32_T |
|
typedef unsigned long long | UINT64_T |
|
typedef long long | SINT64_T |
|
typedef ULONG | DWORD |
|
typedef UINT64_T | UGATE_T |
|
typedef UINT64_T | REGISTER_SIZE |
|
typedef REGISTER_SIZE | REGSIZE |
|
typedef int | SOCKET |
|
|
template<class T > |
T | rem (T a, T b) |
|
template<class T > |
T | sub (T a, T b, T m) |
|
Typedefs Implementation.
- Author
- micha.nosp@m.el.z.nosp@m.ohner.nosp@m.@ec-.nosp@m.sprid.nosp@m.e.de
- Copyright
- ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2015 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.