Reworked the ECC changes to better fit into the Libgcrypt API.