changed to PolarSSL style shared secret