Use MathAdapter in private/public keys