Skip to content

Commit 7e43c5d

Browse files
author
Daniel D
authored
Merge pull request #33 from MartKro/master
Fix AES fixed key ALSZ
2 parents 2057fb0 + f15e102 commit 7e43c5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ot/alsz-ot-ext-rec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void ALSZOTExtRec::ComputeBaseOTs(field_type ftype) {
487487
}*/
488488
memcpy(buf, X[0]->GetArr() + secparambytes * m_nBaseOTs * i, secparambytes * m_nBaseOTs);
489489
memcpy(buf + secparambytes * m_nBaseOTs, X[1]->GetArr() + secparambytes * m_nBaseOTs * i, secparambytes * m_nBaseOTs);
490-
InitAESKey(tmp_keys, buf, nsndvals * m_nBaseOTs, m_cCrypt);
490+
InitPRFKeys(tmp_keys, buf, nsndvals * m_nBaseOTs);
491491
m_tBaseOTKeys.push_back(tmp_keys);
492492
}
493493

ot/alsz-ot-ext-snd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ void ALSZOTExtSnd::ComputeBaseOTs(field_type ftype) {
507507
//tmp->choices->SetBits(U.GetArr(), (uint64_t) i * m_nBaseOTs, (uint64_t) m_nBaseOTs);
508508
tmp_keys = (OT_AES_KEY_CTX*) malloc(sizeof(OT_AES_KEY_CTX) * m_nBaseOTs);
509509

510-
InitAESKey(tmp_keys, resp.GetArr()+i*m_nBaseOTs*secparambytes, m_nBaseOTs, m_cCrypt);
510+
InitPRFKeys(tmp_keys, resp.GetArr() + i * m_nBaseOTs * secparambytes, m_nBaseOTs);
511511
m_tBaseOTKeys.push_back(tmp_keys);
512512

513513
}

0 commit comments

Comments
 (0)