/* If this interface is not supported, then return FALSE. */
BOOLEAN EFIAPI Sm3HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
/* If this interface is not supported, then return FALSE. */
BOOLEAN EFIAPI Sm3HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
{
  SM3_CTX  Ctx;
  if (HashValue == NULL) {
    return FALSE;
  }
  if ((Data == NULL) && (DataSize != 0)) {
    return FALSE;
  }
  ossl_sm3_init (&Ctx);
  ossl_sm3_update (&Ctx, Data, DataSize);
  ossl_sm3_final (HashValue, &Ctx);
  return TRUE;
}