ecc: Wrong flag and elements_enc fix.
* cipher/ecc.c (ecc_generate): Fix wrong flag and elements_enc.