Add QR and discrete log