The same as https://github.com/osu-crypto/libOTe/pull/169 but applied to the Dot protocol.
The same as #169 but applied to the Dot protocol.