CBitVector Implementation.
More...
#include "typedefs.h"
#include "crypto/crypto.h"
#include <math.h>
#include <iostream>
#include <iomanip>
Go to the source code of this file.
|
#define | GetIntBitsFromLen(x, from, len) ( ( (x & ( ( (2<<(len))-1) << from )) >> from) & 0xFF) |
|
#define | GetMask(len) (( (1<<(len))-1)) |
|
|
const BYTE | SELECT_BIT_POSITIONS [9] = { 0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F, 0x7F, 0xFF } |
|
CBitVector 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/.