starting openssl functions