Updated cinterface in preparation for getting sha computation count from hardware