/* If Sha384Context is NULL, then return FALSE. If HashValue is NULL, then return FALSE. */
BOOLEAN EFIAPI Sha384Final(IN OUT VOID *Sha384Context, OUT UINT8 *HashValue)
/* If Sha384Context is NULL, then return FALSE. If HashValue is NULL, then return FALSE. */
BOOLEAN EFIAPI Sha384Final(IN OUT VOID *Sha384Context, OUT UINT8 *HashValue)
{
  INT32  Ret;
  if ((Sha384Context == NULL) || (HashValue == NULL)) {
    return FALSE;
  }
  Ret = mbedtls_sha512_finish_ret (Sha384Context, HashValue);
  mbedtls_sha512_free (Sha384Context);
  if (Ret != 0) {
    return FALSE;
  }
  return TRUE;
}