Org.BouncyCastle.Crypto.Engines.XteaEngine.setKey C# (CSharp) Méthode

setKey() private méthode

private setKey ( byte key ) : void
key byte
Résultat void
		private void setKey(
			byte[] key)
		{
			int i, j;
			for (i = j = 0; i < 4; i++,j+=4)
			{
				_S[i] = Pack.BE_To_UInt32(key, j);
			}

			for (i = j = 0; i < rounds; i++)
			{
				_sum0[i] = ((uint)j + _S[j & 3]);
				j += delta;
				_sum1[i] = ((uint)j + _S[j >> 11 & 3]);
			}
		}