Abstract It is known that secure computation can be done by using a deck of physical cards. This area called card-based cryptography. Shinagawa et al. (in: Provable security—9th international conference, ProvSec 2015, Kanazawa, Japan, 2015) proposed regular n -sided polygon cards enable to compute functions over $${\mathbb {Z}}/n{\mathbb {Z}}$$ <mml:math xmlns:mml="http://www.w3.org/1998/Math/M...