Example #1
0
 public ECPointFormatsExtension(
     EndConfig endConfig,
     ECPointFormatsConfig ecPointFormatsConfig)
 {
     _endConfig            = endConfig;
     _ecPointFormatsConfig = ecPointFormatsConfig;
 }
Example #2
0
        public InitialServerState(
            IServiceProvider serviceProvider,

            EndConfig endConfig)
        {
            _serviceProvider = serviceProvider;

            _endConfig = endConfig;
        }
        public SupportedGroupsExtension(
            NamedCurvesRegistry namedCurvesRegistry,

            SupportedGroupsConfig supportedGroupsConfig,
            EndConfig endConfig)
        {
            _namedCurvesRegistry = namedCurvesRegistry;

            _supportedGroupsConfig = supportedGroupsConfig;
            _endConfig             = endConfig;
        }
        public HandshakeFinishedService(
            ICipherSuitesProvider cipherSuitesProvider,

            CipherSuiteConfig cipherSuiteConfig,
            EndConfig endConfig,
            HandshakeConfig handshakeConfig,
            KeyConfig keyConfig)
        {
            _cipherSuitesProvider = cipherSuitesProvider;
            _cipherSuiteConfig    = cipherSuiteConfig;
            _endConfig            = endConfig;
            _handshakeConfig      = handshakeConfig;
            _keyConfig            = keyConfig;
        }
        private HandleCertificateState(
            IServiceProvider serviceProvider,

            EndConfig endConfig,
            CertificateConfig certificateConfig,

            CertificateMessage handshake)
        {
            _serviceProvider = serviceProvider;

            _endConfig         = endConfig;
            _certificateConfig = certificateConfig;

            _handshake = handshake;
        }
Example #6
0
    void Win()
    {
        m_isWin = true;
        EndConfig end = new EndConfig();

        for (int i = 0; i < ConfigManager.Instance.EndConfigData.Count; i++)
        {
            if (Attribute.Like(LevelAttribute, ConfigManager.Instance.EndConfigData[i + 1]))
            {
                end = ConfigManager.Instance.EndConfigData[i + 1];
            }
        }
        Debug.Log(end.Id);
        Debug.Log(LevelAttribute.Love + "," + LevelAttribute.Responsibility + "," + LevelAttribute.Stress);
        UIManager.Instance.Open("GameOver", true, end.Text);
    }
Example #7
0
    public static bool Like(Attribute attribute, EndConfig end)
    {
        if (!LikeHelp((int)attribute.Love, end.Symbol[0], (int)end.Value.x))
        {
            return(false);
        }
        if (!LikeHelp((int)attribute.Responsibility, end.Symbol[1], (int)end.Value.y))
        {
            return(false);
        }
        if (!LikeHelp((int)attribute.Stress, end.Symbol[2], (int)end.Value.z))
        {
            return(false);
        }

        return(true);
    }
Example #8
0
        public SignatureAlgorithmsExtension(
            ICipherSuitesProvider cipherSuiteProvider,
            CipherSuitesRegistry cipherSuitesRegistry,

            HashAlgorithmRegistry hashAlgorithmRegistry,
            SignatureAlgorithmsRegistry signatureAlgorithmsRegistry,

            EndConfig endConfig,
            Config config)
        {
            _cipherSuiteProvider  = cipherSuiteProvider;
            _cipherSuitesRegistry = cipherSuitesRegistry;

            _hashAlgorithmRegistry       = hashAlgorithmRegistry;
            _signatureAlgorithmsRegistry = signatureAlgorithmsRegistry;

            _endConfig = endConfig;
            _config    = config;
        }
Example #9
0
        public CipherStrategy(
            ICipherSuitesProvider cipherSuitesProvider,

            Connection connection,

            EndConfig endConfig,
            SequenceConfig sequenceConfig,
            BlockCipherConfig blockCipherConfig,
            CipherSuiteConfig cipherSuiteConfig)
        {
            _cipherSuitesProvider = cipherSuitesProvider;

            _connection = connection;

            _endConfig         = endConfig;
            _sequenceConfig    = sequenceConfig;
            _blockCipherConfig = blockCipherConfig;
            _cipherSuiteConfig = cipherSuiteConfig;
        }
        public AEADCipherStrategy(
            IRandom random,
            ICipherSuitesProvider cipherSuitesProvider,

            Connection connection,

            CipherSuiteConfig cipherSuiteConfig,
            SequenceConfig sequenceConfig,
            EndConfig endConfig,
            AEADCipherConfig aeadConfig)
        {
            _random = random;
            _cipherSuitesProvider = cipherSuitesProvider;

            _connection = connection;

            _cipherSuiteConfig = cipherSuiteConfig;
            _sequenceConfig    = sequenceConfig;
            _endConfig         = endConfig;
            _aeadConfig        = aeadConfig;
        }
Example #11
0
 public async Task Close()
 {
     await Task.Run(() => EndConfig?.Invoke(false));
 }
Example #12
0
        public async Task Save()
        {
            await grimoireBusiness.SaveConfig(config);

            await Task.Run(() => EndConfig?.Invoke(true));
        }