I want to input a big number with a bitlength larger than 64 as the value of X[i] in otmain.cpp, using Set() function :
`
uint32_t bitlength=128;
//......
uint64_t matValue0=50;
uint64_t matValue1=60;
for(uint32_t i = 0; i < nsndvals; i++) {
X[i] = new CBitVector();
X[i]->Create(numOTs, bitlength);
for(uint32_t j = 0; j<numOTs;j++){
X[i]->Set(i==0?matValue0:matValue1,j);
}
}
`

It seems that the value of Set() function has a limit of no more than sizeof(T)*8, which means 64 bits here....Otherwise it may cause an overflow.
template<class T> void Set(T val, std::size_t pos, std::size_t len) { assert(len <= sizeof(T) * 8); SetBits((BYTE*) &val, pos, len); }
So how can I input the value of X[i] with big number larger than 64 bits?
Thank you!!
I want to input a big number with a bitlength larger than 64 as the value of X[i] in otmain.cpp, using Set() function :
`
uint32_t bitlength=128;
//......
uint64_t matValue0=50;
uint64_t matValue1=60;
`
It seems that the value of Set() function has a limit of no more than sizeof(T)*8, which means 64 bits here....Otherwise it may cause an overflow.
template<class T> void Set(T val, std::size_t pos, std::size_t len) { assert(len <= sizeof(T) * 8); SetBits((BYTE*) &val, pos, len); }So how can I input the value of X[i] with big number larger than 64 bits?
Thank you!!