A SERVICE OF

logo

Chapter 8 Secret Sharing Operations 311
Secret Sharing
Step 6: Destroy
Remember to destroy all objects and free up any allocated memory when you are
done:
unsigned char getSecret[SECRET_SIZE]
unsigned int getSecretLen;
if ((status = B_DecryptFinal
(secretReconstructer, getSecret, &getSecretLen, SECRET_SIZE,
(B_ALGORITHM_OBJ)NULL_PTR,
(A_SURRENDER_CTX *)NULL_PTR)) != 0)
B_DestroyAlgorithmObject (&secretReconstructer);