C++ OT extension implementation