C sha256 algorithm implemented. returns hashed array size and pointer to result array