Exemplo n.º 1
0
        public MasterSecretCalculator(
            ICipherSuitesProvider cipherSuitesProvider,

            RandomConfig randomConfig,
            CipherSuiteConfig cipherSuiteConfig,

            KeyConfig keyConfig,
            AEADCipherConfig aeadConfig,
            BlockCipherConfig blockConfig)
        {
            _cipherSuitesProvider = cipherSuitesProvider;

            _randomConfig      = randomConfig;
            _cipherSuiteConfig = cipherSuiteConfig;

            _keyConfig   = keyConfig;
            _aeadConfig  = aeadConfig;
            _blockConfig = blockConfig;
        }
Exemplo n.º 2
0
        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;
        }