Copy the MD context.
Note that need to call the CRYPT_EAL_MdFreeCtx interface to release the memory after the duplication is complete.