Lib: Drop usage of deprecated function "cipher_free_ctx" and added usage of function "cipher_init", that will be required in future releases.