Move the common code into a helper function that returns the EDDSA parameters (pkey type, nid, keysize, sigsize).