From 8f59edce718da240836c02b5d0729e1da9ce8acb Mon Sep 17 00:00:00 2001 From: Michael Zohner Date: Thu, 28 Jan 2016 15:28:21 +0100 Subject: [PATCH] Second step for enabling pipelined AES --- src/ot-based/ot-psi.cpp | 2 +- src/util/ot/ot-extension-1oon-ecc.cpp | 14 ++++++++++++-- src/util/ot/ot-extension.cpp | 7 ++++++- src/util/ot/ot-extension.h | 9 +++++++++ 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/ot-based/ot-psi.cpp b/src/ot-based/ot-psi.cpp index f1c6e61..4c2f814 100644 --- a/src/ot-based/ot-psi.cpp +++ b/src/ot-based/ot-psi.cpp @@ -660,7 +660,7 @@ void InitOTReceiver(uint8_t* keyMtx, CSocket sock, crypto* crypt) uint8_t* pBuf = (uint8_t*) malloc(crypt->get_hash_bytes() * numbaseOTs * 2); bot->Sender(2, numbaseOTs, sock, pBuf); -#ifdef AES256_HASH2 +#ifdef AES256_HASH //Key expansion uint8_t* pBufIdx = pBuf; for(uint32_t i=0; igen_rnd(m_nSeed, AES_BYTES);//seed; @@ -252,7 +257,11 @@ class OTExtensionReceiver { CBitVector m_vTempOTMasks; uint8_t* m_nSeed; MaskingFunction* m_fMaskFct; +#ifdef AES256_HASH + ROUND_KEYS* m_vKeySeedMtx; +#else AES_KEY_CTX* m_vKeySeedMtx; +#endif crypto* m_cCrypto; CLock* m_lRcvLock; #ifdef FIXED_KEY_AES_HASHING