key exponentiation