A SERVICE OF

logo

Chapter 4 Details of Crypto-C Functions 303
B_DestroyAlgorithmObject
B_DestroyAlgorithmObject
Description
B_DestroyAlgorithmObject destroys
algorithmObject
, zeroizing any sensitive
information, freeing the memory the algorithm object occupied, and setting
algorithmObject
to (B_ALGORITHM_OBJ)NULL_PTR. If
algorithmObject
is already
(
B_ALGORITHM_OBJ)NULL_PTR or is not a valid algorithm object, no action is taken. See
B_CreateAlgorithmObject.
After this routine is called, all the pointers to information blocks returned by calls to
B_GetAlgorithmInfo will no longer be valid, since the memory associated with those
blocks will have been zeroed and freed.
Return value
There is no return value.
void B_DestroyAlgorithmObject (
B_ALGORITHM_OBJ *algorithmObject /* pointer to algorithm object */
);