/* Obtains a bitmask of the resources for which an key algorithm is available.  */
bool XcpProtectGetPrivileges(uint8_t *resourcePtr)
/* Obtains a bitmask of the resources for which an key algorithm is available.  */
bool XcpProtectGetPrivileges(uint8_t *resourcePtr)
{
  bool result = false;
  assert(resourcePtr != NULL);
  if (resourcePtr != NULL)
  {
    if (xcpProtectLibGetPrivileges != NULL)
    {
      if (xcpProtectLibGetPrivileges(resourcePtr) == 0)
      {
        result = true;
      }
    }
  }
  return result;
}