/* If HmacMdContext is NULL, then return FALSE. If NewHmacMdContext is NULL, then return FALSE. */
STATIC BOOLEAN HmacMdDuplicate(IN CONST VOID *HmacMdContext, OUT VOID *NewHmacMdContext)
/* If HmacMdContext is NULL, then return FALSE. If NewHmacMdContext is NULL, then return FALSE. */
STATIC BOOLEAN HmacMdDuplicate(IN CONST VOID *HmacMdContext, OUT VOID *NewHmacMdContext)
{
  if ((HmacMdContext == NULL) || (NewHmacMdContext == NULL)) {
    return FALSE;
  }
  if (HMAC_CTX_copy ((HMAC_CTX *)NewHmacMdContext, (HMAC_CTX *)HmacMdContext) != 1) {
    return FALSE;
  }
  return TRUE;
}