Secret Sharing

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)

Step 6: Destroy

Remember to destroy all objects and free up any allocated memory when you are done:

B_DestroyAlgorithmObject (&secretReconstructer);

C h a p t e r 8 S e c r e t S h a r i n g O p e r a t i o n s

3 1 1

Page 333
Image 333
RSA Security 5.2.2 manual BDestroyAlgorithmObject &secretReconstructer