Beispiel #1
0
        public AuthorizationCipher(CipherSource source, short version, byte[] nonce, byte[] cryptogram)
        {
            if (version < 1)
            {
                throw new ArgumentOutOfRangeException("version");
            }

            if (nonce == null || nonce.Length == 0)
            {
                throw new ArgumentNullException("nonce");
            }

            if (cryptogram == null || cryptogram.Length == 0)
            {
                throw new ArgumentNullException("cryptogram");
            }

            this.Source     = source;
            this.Version    = version;
            this.Nonce      = nonce;
            this.Cryptogram = cryptogram;
        }
Beispiel #2
0
		public AuthorizationCipher(CipherSource source, short version, byte[] nonce, byte[] cryptogram)
		{
			if (version < 1)
			{
				throw new ArgumentOutOfRangeException("version");
			}

			if (nonce == null || nonce.Length == 0)
			{
				throw new ArgumentNullException("nonce");
			}

			if (cryptogram == null || cryptogram.Length == 0)
			{
				throw new ArgumentNullException("cryptogram");
			}

			this.Source = source;
			this.Version = version;
			this.Nonce = nonce;
			this.Cryptogram = cryptogram;
		}