public static void generateSecretKey(IBB84ProtocolAgent master, IBB84ProtocolAgent slave, int size) { IBB84Protocol protocol = generateBB84Protocol(); protocol.AgentMaster = master; protocol.AgentSlave = slave; generateSecretKey(protocol, size); }
public static void generateSecretKey(IBB84ProtocolAgent master, IBB84ProtocolAgent slave, IClassicChannel ClassicChannel, IQuantumChannel quantumChannel, int size) { IBB84Protocol protocol = generateBB84Protocol(ClassicChannel, quantumChannel); protocol.Master = master; protocol.Slave = slave; generateSecretKey(protocol, size); }
public QuantumSecuredProtocolAgent(string agentName, IChannelStationDual agentStation) : base(agentName, agentStation) { _transmitBuffer = ""; _receiveBuffer = ""; _agentbb84 = BB84ProtocolFactory.generateBB84Agent(agentName, agentStation); _agentburst = BurstProtocolFactory.generateBurstAgent(agentName, agentStation); }
public BB84ProtocolAbstract() : base() { _agentmaster = null; _agentslave = null; _agenteavesdropper = null; _configuration = new BB84ProtocolConfiguration(this.GetType().Name); }
public AbstractBB84Protocol(IClassicChannel ClassicChannel, IQuantumChannel QuantumChannel) : base() { _master = null; _slave = null; _eavesdropper = null; //_ClassicChannel = FactoryClassicChannel.generateP2PChannel(); //_quantumChannel = FactoryQuantumChannel.generateP2PChannel(); _classicChannel = ClassicChannel; _quantumChannel = QuantumChannel; _configuration = new BB84ProtocolConfiguration(this.GetType().Name); }
private void deassociateChannels(IBB84ProtocolAgent agent) { if (agent != null) { agent.ClassicChannel = null; agent.QuantumChannel = null; } }