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