Ported to OM 23_12

Is this the right way to do this or is it possible to use object manager for CryptObject. We ask this, because there is CryptType parameter in constructor. Any feedback is welcomed on this matter.