0

I have the following method:

BIGNUM[] allocateBigNumArray(int size){
    BIGNUM array[size];
    return array;
}

That is called from this one:

  int MPIReceiveBigNum(BIGNUM **numbers, int size) {
     numbers=allocateBigNumArray(size);
  }

What I try to achieve is to allocate an N-sized array of BIGNUM and return it by reference in a similar manner such as OPENSSL, MPI does.

So my question is Should in MPIReceiveBigNum the numbers be of type BIGNUM**?

Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164

0 Answers0