Crypto primitive class.
More...
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <fstream>
#include <sys/stat.h>
#include <fcntl.h>
#include "../typedefs.h"
#include "../constants.h"
#include "gmp-pk-crypto.h"
#include "ecc-pk-crypto.h"
#include "../socket.h"
Go to the source code of this file.
|
typedef EVP_CIPHER_CTX | AES_KEY_CTX |
|
|
enum | bc_mode { ECB,
CBC
} |
|
|
void | sha1_hash (uint8_t *resbuf, uint32_t noutbytes, uint8_t *inbuf, uint32_t ninbytes, uint8_t *hash_buf) |
|
void | sha256_hash (uint8_t *resbuf, uint32_t noutbytes, uint8_t *inbuf, uint32_t ninbytes, uint8_t *hash_buf) |
|
void | sha512_hash (uint8_t *resbuf, uint32_t noutbytes, uint8_t *inbuf, uint32_t ninbytes, uint8_t *hash_buf) |
|
void | gen_secure_random (uint8_t *dest, uint32_t nbytes) |
|
void | gen_rnd_bytes (prf_state_ctx *prf_state, uint8_t *resbuf, uint32_t nbytes) |
|
seclvl | get_sec_lvl (uint32_t symsecbits) |
|
|
const uint8_t | ZERO_IV [AES_BYTES] = { 0 } |
|
const uint8_t | const_seed [] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF } |
|
Crypto primitive class.
- 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/.