Пример #1
0
        /// <summary>Initializes a new instance of the <see cref="AesCbcHmacDecryptor"/> class.</summary>
        public AesCbcHmacDecryptor(EncryptionAlgorithm encryptionAlgorithm, AesDecryptor decryptor)
        {
            Debug.Assert(encryptionAlgorithm != null);
            Debug.Assert(encryptionAlgorithm !.Category == EncryptionType.AesHmac);
            Debug.Assert(encryptionAlgorithm !.SignatureAlgorithm != null);
            Debug.Assert(decryptor != null);

            _encryptionAlgorithm = encryptionAlgorithm;
            _decryptor           = decryptor;
        }