public unsafe EncryptionMediator( InternalManifest manifest, CiphertextElectionContext context, EncryptionDevice device) { var status = NativeInterface.EncryptionMediator.New( manifest.Handle, context.Handle, device.Handle, out Handle); if (status != Status.ELECTIONGUARD_STATUS_SUCCESS) { Console.WriteLine($"EncryptionMediator New Error Status: {status}"); } }
protected override bool Free() { if (IsClosed) { return(true); } var status = EncryptionDevice.Free(this); if (status != Status.ELECTIONGUARD_STATUS_SUCCESS) { Console.WriteLine($"EncryptionDevice Error Free: {status}"); return(false); } return(true); }