/* If Sm3Context is NULL, then return FALSE. If HashValue is NULL, then return FALSE. */
BOOLEAN EFIAPI Sm3Final(IN OUT VOID *Sm3Context, OUT UINT8 *HashValue)
/* If Sm3Context is NULL, then return FALSE. If HashValue is NULL, then return FALSE. */
BOOLEAN EFIAPI Sm3Final(IN OUT VOID *Sm3Context, OUT UINT8 *HashValue)
{
  if ((Sm3Context == NULL) || (HashValue == NULL)) {
    return FALSE;
  }
  ossl_sm3_final (HashValue, (SM3_CTX *)Sm3Context);
  return TRUE;
}