コード例 #1
0
        public static void generateSecretKey(IProtocolAgentBB84 master, IProtocolAgentBB84 slave, int size)
        {
            IProtocolBB84 protocol = generateBB84Protocol();
            protocol.AgentMaster = master;
            protocol.AgentSlave = slave;

            generateSecretKey(protocol, size);
        }
コード例 #2
0
        public ProtocolBB84Abstract()
            : base()
        {
            _agentmaster = null;
            _agentslave = null;
            _agenteavesdropper = null;

            _configuration = new ConfigurationProtocolBB84(this.GetType().Name);
        }