free sharedSecret after use to avoid memory leak (ARC doesn't manage malloc/free calls)