RSA Security 5.2.2 manual BDestroyAlgorithmObject &secretReconstructer

Models: 5.2.2

1 376
Download 376 pages 13.91 Kb
Page 333
Image 333

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