Added support for CURVE security