Support the latest PolarSSL

Fixed cipher_reset according to PolarSSL 1.3 migration guide